Is is possible to use file upload to cache a small text file in memory only and the use a textreader to read in that text file and manipulate it? The textfile that is being uploaded is not needed permanently and does not have to be saved to any location.
guyinkalamaz...
Participant
897 Points
296 Posts
Using FileUpload
May 28, 2009 04:54 PM|LINK
Is is possible to use file upload to cache a small text file in memory only and the use a textreader to read in that text file and manipulate it? The textfile that is being uploaded is not needed permanently and does not have to be saved to any location.
Thanks
Segundo
Star
10892 Points
1567 Posts
Re: Using FileUpload
May 28, 2009 06:27 PM|LINK
Hi,
you can get the stream of the file uploaded doing this:
Steam ImageStream = FileUpload1.PostedFile.InputStream;
Any doubt, post your comment.
Blog: http://www.neuronasoft.net
guyinkalamaz...
Participant
897 Points
296 Posts
Re: Using FileUpload
May 28, 2009 07:24 PM|LINK
Thank you - that worked just fine!