Newbie: can I store flash file into Mysql DB

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
cuongvt
Forum Newbie
Posts: 11
Joined: Fri Aug 11, 2006 1:31 am

Newbie: can I store flash file into Mysql DB

Post by cuongvt »

technically can I store flash file into Mysql DB using PHP?
what point should I pay attention for that?
Thank you
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

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

Post by onion2k »

You can, but why would you want to?
cuongvt
Forum Newbie
Posts: 11
Joined: Fri Aug 11, 2006 1:31 am

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

Post 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
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

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

Post 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.
Post Reply