SHOWING iMAGE ON WEBPAGE
-
I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.
-
I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.
Hi, We tried so hard to get this thing work. But, image didnt show up directly on the page from database. So we found a work around, if thats acceptable to you. In the database with Image column we maintained two other columns namely ImageID and Image location on webserver. In your case, after selecting the image in drop down, Save the image from database to the Image location and then Pass the image location into the Image control during Page load. It should work. I hope it helps. Good Luck....:) Pankaj
-
I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.
Well, I haven't really tried this but in theory it sounds workable. Open up a filestream into a image file(.bmp, .jpg, etc) then you read the image from the database into a filestream in the write function Your page can then pick up the image in the location you specified in the filestream Nick Seng (the programmer formerly known as Notorious SMC)
God, I pity me! - Phoncible P. Bone
-
I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.
Read this.... http://aspalliance.com/das/insertimage.aspx http://aspalliance.com/das/readimage.aspx When you save an image, save with a friendly description, thus user can select ur image in dropdownlist, and retrieve the corresponding image from db.
-
Read this.... http://aspalliance.com/das/insertimage.aspx http://aspalliance.com/das/readimage.aspx When you save an image, save with a friendly description, thus user can select ur image in dropdownlist, and retrieve the corresponding image from db.