View Full Version : image uploading
hosdank
08-22-2008, 08:35 PM
I am uploading some image content to a table with the type of long blob. Some of my images are too big for this type, any idea what I could use. Thanks :)
thetestingsite
08-23-2008, 12:23 AM
Instead of uploading to a database, upload directly to the server and store the location instead.
Hope this helps.
hosdank
08-23-2008, 02:17 PM
I could do that if worst came to worst, but is there any other bigger type I could use? Thanks anyway :)
djr33
08-23-2008, 08:51 PM
If you don't want it accessible another way, you can put it in a limited-access folder, like one outside the root directory of your site. That way visitors can't access the images directly, and you can grab them with PHP.
The GD (image library) functions should be enough to make that work easily.
Putting images directly into the database will be hard and consume a lot of server resources. There is no point.
hosdank
08-24-2008, 02:34 PM
Thanks :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.