Author: SehaxX | Posted on: 2/2/2010 3:02:20 PM | Views : 300

Hi guys,
I need help in editing data that are stored in database as image. I have that problem when i load my edit form( i use formview) the content is loaded as string "System.Byte[]". So is there a way to load it in some component. When I try to save my image and don't edit my file the string System.Byte[] is saved into the database.



protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e) { FileUpload fu = (FileUpload)FormView1.FindControl("imageUpload"); if (fu.HasFile) { e.NewValues[3] = fu.FileBytes; } else { e.Cancel = true; } }









...

Go to the complete details ...