saifullah khan

saifullah khan

  • NA
  • 335
  • 295k

assign Seek(0, SeekOrigin.Begin);

Oct 27 2011 3:16 AM
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

Answers (3)