hi
i have a problem in code.
look at the lines given below
string target;
FileUpload1.FileContent.Seek(0, SeekOrigin.Begin);
FileUpload1.PostedFile.InputStream.Read(pic, 0, len);
where FileUpload is a tag in asp.net use to upload a file. the string target has assigned a jpeg file. now i want to use the string target in place of Fileupload can somebody tells me how to use it, or any alternative for that?
thnx
Assign Seek(0, SeekOrigin.Begin);
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 27, 2011, 12:54 AM EDT
You have to set the stream's position to the beginning in order to read it:
saifullah khanRank #4,887 · 320 reputationPosted Oct 27, 2011, 1:11 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Oct 27, 2011, 10:34 AM EDT