Author: christopheEU | Posted on: 5/26/2010 8:26:29 AM | Views : 272

hi all,
i'm a beginner with asp ent 2.0 and ajax 1.0
i have a web page with an input file for to stored the document selected (pdf, txt, doc, ...) in dabase as an image type
save is ok !
retrive too ;)
but i have some problem when i try to open the selected file and this selected file is EMPTY i have this error ;
Specified argument was out of the range of valid values.
Parameter name: offset
 
here is it my code, i stored the file name in the link button and when i click on the link button i do this :

 

 
Response.ClearContent(); byte[] imageContent = (byte[])(oneDoc.File); string fileinfo = "attachment;filename=" + oneDoc.FileName + "." + oneDoc.Extension; Response.AddHeader(&quo ...

Go to the complete details ...