Bookmark Topic Watch Topic
  • New Topic

Displaying image with data type as longblob

 
Loh Peggie
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hey guys
Recently my tutot gave me a war file that upload image into the database whereby the datatype he make use of is called"Longblob"
And I always had been making use of varchar as my datatype for image and I wrote this code in order to display images from the database.

Do you guys know how to change this piece of code from varchar to longblob in order to display images?
I had tried the blob and the image end upl displaying in binary. But the image I need one is real image



Can I change this rs.getString into code that can retrieve blob images from the database?

Thansk

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic