Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saving whole text file in database

 
premchand Singh
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing project for myself,
i am able to save raw datas as per my requirement, next i want to save the whole file in the database after editing.i am not sure how to do this??
can some body help me please.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12264
36
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure what you mean by "whole file in the database".

It is possible you could use something like a CLOB or BLOB, depending on the contents of your file, but without more details, I'm not sure there much more folks here can do for you.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I would create a separate file with a unique name and save that name in a database together with whatever information needed to later retrieve the file.

I know of no reason to store huge chunks of text in a database.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic