Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Storing files in a database

by gmax (Abbot)
on Aug 11, 2003 at 09:34 UTC ( #282799=note: print w/replies, xml ) Need Help??

in reply to Storing files in a database

Personally, I had good results storing binary files in a database. See some technical advice at
Handling huge BLOB fields with DBI and MySQL.

Notice that you don't have to store the file as one whole field, but you can split it into easy-to-manage chunks. That node explains how to store and retrieve files that way.

About using the file system instead of a database, in the same thread there is an exchange of opinions, where both sides are evaluated. In addition to what is stated there, I would say that storing in a database is advisable if you plan to replicate the database to some other machine. Since MySQL has a built-in replication engine, you should consider this fact as well.

 _  _ _  _  
(_|| | |(_|><

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://282799]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-12-06 21:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found