File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Retrieving blob object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
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: 273

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


SCJP 6 || SCWCD 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieving blob object