Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting Text File in Database

 
Gopinath Reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to store large text in database or some document in form of say pdf or word document in database??
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Gopinath Reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gopinath Reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with Servlets so I am moving it to JDBC.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic