Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JDBC and Relational Databases and the fly likes Retrieving blob object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Retrieving blob object" Watch "Retrieving blob object" New topic
Author

Retrieving blob object

sovan chatt
Ranch Hand

Joined: Aug 09, 2010
Posts: 43

In an html page I'm giving the file id..and when I click the 'SEARCH ' button this servlet gets called.. But weirdly whenever I click the "SEARCH" button I am getting a security warning about file download!!
Abhishek Ralhan
Ranch Hand

Joined: Aug 01, 2010
Posts: 40

That is what the above code will do..
Do you want to display the search results instead??


-Abhishek
I came to this world on a Learner's License
sovan chatt
Ranch Hand

Joined: Aug 09, 2010
Posts: 43
@Abhishek Ralhan I want to display the image that I stored as a blob object in the database...
Abhishek Ralhan
Ranch Hand

Joined: Aug 01, 2010
Posts: 40

Hi Sovan,

THis is what I got when i Googled,

http://fdegrelle.over-blog.com/article-992927.html

http://www.theserverside.com/discussions/thread.tss?thread_id=5444

please see and help yourself..
Michael Angstadt
Ranch Hand

Joined: Jun 17, 2009
Posts: 274

Like Abhishek's links suggest, try calling this servlet from an img tag:


SCJP 6 || SCWCD 5
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Retrieving blob object