Database save files


How to save a text file to database by mysql.

Does it should separate the text file content
to lots of record table by myself?

If a graph file also should convert to binary data
and record on lots of tables in the database?

When I want to download those file which on database, I should combine
all tables and convert them out?


How to save a text file to database by mysql.

If you’ve already got the information as a file and you’re going to need
as a file in the future, then you should just store it as a file for
use. There are a lot of gems that can help you with this sort of thing.
See: Category: File Uploads - The Ruby Toolbox.

Look up mysqldump
On Oct 3, 2011 8:49 AM, “CC Chen” [email protected] wrote:

You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at