Database save files

Hi,

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?

Thanks,

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
it
as a file in the future, then you should just store it as a file for
later
use. There are a lot of gems that can help you with this sort of thing.
See: http://ruby-toolbox.com/categories/rails_file_uploads.html.

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
http://groups.google.com/group/rubyonrails-talk?hl=en.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs