Hi, I am using spring 3. I need your help in a isue.
I am trying to display an image which in MS-SQL db with datatype image. In the controller, I am retrieving as byteArray, but now question is how to display it.
image retrieval from sql server using java our clients have a sql server database in which one of the table column of image data type holds a image.I am not able to retrieve the image.I have tried retrieving only certain no of bytes, but not able to see the image.If any body knows about this issue please reply thread
make sure that it is fully uploaded image in the database not partially.
As you said you are able to get few byte, make sure that complete image is in database.
I also had the same problem but resolved by some help from google. Here is what I did: I created a servlet which will fetch the image from mysql database as below:
Then in my JSP page I called
This will display the image in a JSP page. Hope you find this as useful.
Post by:autobot
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards