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
Loading
Suthish NairPosted Oct 27, 2011, 2:34 PM
saifullah khanPosted Oct 27, 2011, 5:11 AM
Hemant KumarPosted Oct 27, 2011, 4:54 AM
You have to set the stream's position to the beginning in order to read it: