0

I have tried giving some id and just storing its title, path and the rest in a MySQL database. But This looks simple. Is there any robust way out there to do that. Thanks

Jos
  • 468
  • 1
  • 7
  • 20

1 Answers1

1

I'm not sure this is what you are looking for. But...

basically there is two way to deal with "binary large objects".

  • The first one is to store them is a so called BLOB column in your DB.
  • The second one, is, as you do it now, to store in the DB only "pointers" to the actual data on an external storage solution. Usually as "path" referencing files on your file-system..

Both solutions have pro and cons. Regarding performances, data migration, load balancing, and so on. This has already been discussed elsewhere on SO:

Community
  • 1
  • 1
Sylvain Leroux
  • 50,096
  • 7
  • 103
  • 125