aspose file tools
The moose likes JSP and the fly likes Displaying image with data type as longblob Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Displaying image with data type as longblob

Loh Peggie
Ranch Hand

Joined: Jul 09, 2009
Posts: 51
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

Joined: Jan 10, 2002
Posts: 56162
    
  13

Please do not post the same question more than once.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: jrebel
 
subject: Displaying image with data type as longblob
 
Similar Threads
Unable to find specific product
Displaying images dynamically from database
View the images as four per row instead of long row that is never ending
Problems when viewing specific description when search
Background image in different resolution