Page 1 of 1
Recordset from Images
Posted: Sun Jul 17, 2005 9:54 am
by cuhlcannon
Is there any place in the db that images are stored when uploaded? I am thinking of making my own Image gallery, as the ones I have found in the forums just aren't modifyable enough. The problem is I can allow the user to upload and edit images, through the file/image manager, but can't get the information into the pages themselves. Alternatively, I will build upload pages with my own code, but it doesnt make sense to re-invent the wheel for administration purposes.
Re: Recordset from Images
Posted: Sun Jul 17, 2005 9:57 am
by cuhlcannon
Alternatively, is there any way to capture the information of the image that was uploaded, so it can be pulled into a recordset and into the pages?
Re: Recordset from Images
Posted: Sun Jul 17, 2005 12:51 pm
by Ted
Well, images could be stored in the database if you'd like. The blob data type does exist and ADODB does support it. I've never played with it myself, but I'm sure you could.
As far as getting and manipulating graphics, the gd library is what you'd use:
http://us3.php.net/manual/en/ref.image.php
If some of the things you write are generic enough, I'd be very interested in putting that code into the module API. Particularly with uploading of files in general, but also with image manipulation or storing/retrieving blobs.