image handling
-
hi everybody today i come here with a new doubt; in one registration form, i have used a html filefield control to browse an photograph of the user and i have converted this image into binary and stored inthe database. but after that i need to retrieve that binary data and dispaly that in an imagecontrol in the next form. anybody know any method to assign this binary data to the image control. please share some ideas. thanks in advance. sebastian
-
hi everybody today i come here with a new doubt; in one registration form, i have used a html filefield control to browse an photograph of the user and i have converted this image into binary and stored inthe database. but after that i need to retrieve that binary data and dispaly that in an imagecontrol in the next form. anybody know any method to assign this binary data to the image control. please share some ideas. thanks in advance. sebastian
You can create another apx page and in the page load of this new aspx you can write this. byte[] image = null; image =(byte[])objDV[0]["imgImage1"];// Taking it from dataview/dataset/dtable Response.ContentType = objDV[0]["strImage1ContentType"].ToString(); Response.BinaryWrite(image); Assume this new aspx page name is ImageLoad.aspx In your page where you are taking an Image control, call the method from aspx page. and in code behind you will have protected string GetLogoURL(object objLogo) { return "ImgLoad.aspx" } Let me know if this worked for you.
"Walking on water and developing Software on a specification is easy, if both are frozen..."
-
hi everybody today i come here with a new doubt; in one registration form, i have used a html filefield control to browse an photograph of the user and i have converted this image into binary and stored inthe database. but after that i need to retrieve that binary data and dispaly that in an imagecontrol in the next form. anybody know any method to assign this binary data to the image control. please share some ideas. thanks in advance. sebastian
Visit link below for an example http://www.programmingknowledge.com/ImageUpload.aspx[^]
-
Visit link below for an example http://www.programmingknowledge.com/ImageUpload.aspx[^]
thank u very much