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![]()
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![]()
Last edited by hosdank; 08-22-2008 at 08:44 PM.
Instead of uploading to a database, upload directly to the server and store the location instead.
Hope this helps.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
hosdank (08-23-2008)
I could do that if worst came to worst, but is there any other bigger type I could use? Thanks anyway![]()
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.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
hosdank (08-24-2008)
Thanks![]()
Bookmarks