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 how to read a text file from a database table 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 read a text file from a database table" Watch "how to read a text file from a database table" New topic
Author

how to read a text file from a database table

parag Chatterjee
Greenhorn

Joined: Aug 02, 2002
Posts: 28
Can anybody help me out how to read a text file from a databse table using JDBC .
I need to know
1. what will be the query to extract the file?
2. what will be the jdbc snippet of code
3.
parag Chatterjee
Greenhorn

Joined: Aug 02, 2002
Posts: 28
I also need to know how to store the file in local disc
Mahesh swami
Greenhorn

Joined: Aug 13, 2002
Posts: 26
U can use,rs.getObject() or rs.getBinaryStream() and then read from the stream.
parag Chatterjee
Greenhorn

Joined: Aug 02, 2002
Posts: 28
Thanks a lot.
I had already used it with rs.getAsciiStream()
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to read a text file from a database table
 
Similar Threads
How to read text file in memory card from MIDlet?
DBF Alter Table
read text file and save data into database
Reading XML Files from the IFS
Read character from the tiff image file