aspose file tools*
The moose likes JDBC and the fly likes Inserting Text File in Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Inserting Text File in Database" Watch "Inserting Text File in Database" New topic
Author

Inserting Text File in Database

Gopinath Reddy
Greenhorn

Joined: Feb 26, 2004
Posts: 15
hi all
i want to insert a text file in database(i am using oracle 8i) in java.i want to know how to insert the file in database pls tell me how if possible pls give any sample code. pls tell me how to read a text file from database also.
regards
Gopinath
Rajan Punchouty
Greenhorn

Joined: Mar 15, 2004
Posts: 21
You want to store large text in database or some document in form of say pdf or word document in database??
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Jesus Christ,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Gopinath Reddy
Greenhorn

Joined: Feb 26, 2004
Posts: 15
Thanx for your mail Mr. Rajan
I want to store Large Text file(Only Text File). I dont want to save Pdf or Word File. I want to store only text file in to database. After storing the file i have to read the file from database for display.
expecting your reply
Kiran Kumar
Ranch Hand

Joined: May 18, 2001
Posts: 107
Hi,
Do check out this URL for sample Code of inserting files into Oracle DB.
http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/index.html


Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
Gopinath Reddy
Greenhorn

Joined: Feb 26, 2004
Posts: 15
Hello Mr.Kiran Kumar.
Thanx for your reply i searched for the URL Given by u. But i cant find the code. i searched the site for long time but i cant find the proper link. Pls if you dont mind pls tell the complete URL.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

This has nothing to do with Servlets so I am moving it to JDBC.


GenRocket - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting Text File in Database
 
Similar Threads
How do I transfer a text file from server to client?
reading file from server?
Image insertion
inserting values
How to insert data from file excel into DB?