• 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: 12375
40
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: 13078
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!