November 1st, 2000, 12:49 AM
Is it possible to store jpegs into a MySQL database, so it can be loaded when PHP requests it?? If not, which database (for Win/Linux) can?
November 1st, 2000, 03:22 AM
November 1st, 2000, 01:52 PM
You can use MySQL but its much better to use the MySQL database to store the paths to the images rather then the actual images
PHP/MySQL Enabled Hosting/Dedicated Servers, Reseller Accounts
November 1st, 2000, 09:32 PM
Thank you both! Can anybody tell me how to store it? Using SQL queries in php? or is it another way than storing just chars and strings
November 2nd, 2000, 02:50 AM
Just do a search on here or phpbuilder.com. This question has been answers many many times. There are tutorials on both sites telling you how to do it also.
I agree with Carpe Diem, of course, just store the path to the file in mysql. Why go through the extra database overhead to retrieve a file when php has functions designed to do it for you?
November 2nd, 2000, 09:11 AM
i will tell u the logic alone ....
i have done this using PERL ...
But no idea with PHP ...
1. Open the GIF IMAGE ... using File open
2. Store the content of the image in one valiable by iteration ...
3. Then Connect to the Database ..
4. SET SQL ...
5. Add to Database...
Still have problems?
November 3rd, 2000, 08:00 PM
Thank you all! will give it a try