Page 1 of 1

Newbie: can I store flash file into Mysql DB

Posted: Wed Oct 29, 2008 5:19 am
by cuongvt
technically can I store flash file into Mysql DB using PHP?
what point should I pay attention for that?
Thank you

Re: Newbie: can I store flash file into Mysql DB

Posted: Wed Oct 29, 2008 6:02 am
by onion2k
You can, but why would you want to?

Re: Newbie: can I store flash file into Mysql DB

Posted: Wed Oct 29, 2008 6:13 am
by cuongvt
Simply that's what my end user want. And I against it because if store a great deal of files (even they are small in size),
I might suffer the pain of performance.
What about your opinion? What is merit of storing files into DB?
regards

Re: Newbie: can I store flash file into Mysql DB

Posted: Wed Oct 29, 2008 8:00 am
by panic!
Your file system is designed to store files, use it for that.

There's no harm however in having a database table that relates to those files on the file system with a column that stores the path of your flash file, that is how I would personally do it.


id name path
1 Funny Donkey /flash-files/donkey.swf
2 Black Cat /flash-files/black-cat.swf
3 Multimedia Player /somewhere-else/multimedia.swf
4 Cheeky /lol/cheeky.flv



I would of course have all the flash files in the same folder. and not have a full path, just have a file name.