This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 15299
    
    6

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: http://aspose.com/file-tools
 
subject: Inserting Text File in Database