This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloading a binary file from DB

 
King chin
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to download a binary file from the DB and prompt the user to save or open it i.e the "File download" dialog box that shows up when we try to download a file in many websites.

I understand that is done by the browser but may be wrong. So can you please tell me once I get the Inputstream from the DB using JDBC where should I write it so that it shows up the "File download" dialog box in a browser.

Thanks
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch.
Are you writing a servlet and want to prompt a user to save a file? If so, have a look at this article.
If not, you'll have to be more specific.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic