Two Laptop Bag
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "Inserting Text File in Database" Watch "Inserting Text File in Database" New topic

Inserting Text File in Database

Gopinath Reddy

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.
Rajan Punchouty

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

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

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
Do check out this URL for sample Code of inserting files into Oracle DB.

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

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: 15302

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

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Inserting Text File in Database
It's not a secret anymore!