Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving whole text file in database  RSS feed

 
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: 12558
49
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!