Meaningless Drivel is fun!*
The moose likes I/O and Streams and the fly likes Downloading a binary file from DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Downloading a binary file from DB" Watch "Downloading a binary file from DB" New topic
Author

Downloading a binary file from DB

King chin
Greenhorn

Joined: Jun 06, 2008
Posts: 1
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

Joined: Oct 29, 2001
Posts: 8718
    
    6

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Downloading a binary file from DB
 
Similar Threads
File Download issue...
Download in Excel format
how to download or view the "Excel FILE "i n IE browser
file downloading from the server
file download