File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving blob object

 
sovan chatt
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 40
Chrome Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is what the above code will do..
Do you want to display the search results instead??
 
sovan chatt
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Abhishek Ralhan I want to display the image that I stored as a blob object in the database...
 
Abhishek Ralhan
Ranch Hand
Posts: 40
Chrome Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 277
Eclipse IDE Java PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like Abhishek's links suggest, try calling this servlet from an img tag:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic