![]() |
Read picture dir and store pics to Mysql
Good day to you all,
I was looking into makeing a database of all my image and I was wondering if there is a way to read a recursive directory and store it into the database. I don't have a clue on how, even if I have search the web for a while. Thanks, take care and have a good one ! |
Quote:
Out of interest, why are you storing files in the database? Databases really are not meant for that sort of thing. |
I red a please that said it was doable so I just assume we add to do this for faster loading.
Should I just put le url of the image in the db ? How would I do this ? |
Quote:
I would just store the URL in the database. That is as simple as an insert statement in a varchar field. |
I've done something similar in the past but my code was lost lost. *sigh* I stored the filename and url in sql. There are plenty of examples online that you can update to your needs.
|
Quote:
If you insist on this method, look into the Mysql BLOB type. |
| All times are GMT. The time now is 07:39 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0