This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to download a file from database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "How to download a file from database" Watch "How to download a file from database" New topic
Author

How to download a file from database

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
i have inserted a .doc into ms access database using com.oreilly.servlet.MultipartRequest.Now how can i download it.Can anyone plz help me with the code.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Please provide more information with your questions.

Are you able to get the file out of the database? If you can get it in, you should be able to extract it. To send it to the client, you can adapt the code here
visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122


Using this code i have inserted the data into the access database.when i gave the select command i got a number format for CV field.i want to download it to text format.could u plz help me

[added code tags]
[ September 08, 2005: Message edited by: Jeanne Boyarsky ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Moving to the JDBC forum.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

Visu,
Which line throws the exception? Does it work if you do the select without doing the insert first?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
When i retrieve the data i am getting an output of this sort

Name : viswanathCV : 5B00420040003100640031003000610035006300
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to download a file from database
 
Similar Threads
Using struts 1.2 how to upload a file into database and download it
JDBC
Applet upload/download image to/from database via Servlet
downloading database from server
Displaying file content in JSF