Recordset from Images

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cuhlcannon
Forum Members
Forum Members
Posts: 30
Joined: Wed Jun 22, 2005 8:02 am

Recordset from Images

Post 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.
cuhlcannon
Forum Members
Forum Members
Posts: 30
Joined: Wed Jun 22, 2005 8:02 am

Re: Recordset from Images

Post 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?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Recordset from Images

Post 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.
Post Reply

Return to “CMSMS Core”