From: "Andrea Bakker" on
Hi

I have images stored as blobs in a mysql database. How would I go about displaying this image in a quickform.

Thanks
Andrea
From: "Daniel O'Connor" on
oops, CC the list this time.

---------- Forwarded message ----------
From: Daniel O'Connor <daniel.oconnor(a)gmail.com>
Date: Wed, Nov 11, 2009 at 6:06 PM
Subject: Re: [PEAR] display blob in quickform
To: Andrea Bakker <abakker(a)telkomsa.net>


On Wed, Nov 11, 2009 at 6:55 PM, Andrea Bakker <abakker(a)telkomsa.net> wrote:
> Hi
>
> I have images stored as blobs in a mysql database. How would I go about displaying this image in a quickform.

I'd suggest a database might not be the best place long term for them to live.

Try
http://pear.php.net/package/HTML_QuickForm/docs/latest/HTML_QuickForm/HTML_QuickForm_html.html

and an <img> tag.
From: Alexey Borzov on
Hi,

Daniel O'Connor wrote:
> oops, CC the list this time.
>
> ---------- Forwarded message ----------
> From: Daniel O'Connor <daniel.oconnor(a)gmail.com>
> Date: Wed, Nov 11, 2009 at 6:06 PM
> Subject: Re: [PEAR] display blob in quickform
> To: Andrea Bakker <abakker(a)telkomsa.net>
>
>
> On Wed, Nov 11, 2009 at 6:55 PM, Andrea Bakker <abakker(a)telkomsa.net> wrote:
>> Hi
>>
>> I have images stored as blobs in a mysql database. How would I go about displaying this image in a quickform.
>
> I'd suggest a database might not be the best place long term for them to live.
>
> Try
> http://pear.php.net/package/HTML_QuickForm/docs/latest/HTML_QuickForm/HTML_QuickForm_html.html
>
> and an <img> tag.

A better idea is to use 'static' element.
http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-static.php