long time ago i made sample scripts
but last mounth ago delete by admin zend.com from codesnippet sample on
zend.com
hopely this help http://phpklik.dhs.org/tgam/
On Tuesday 27 February 2001 16:27, you wrote:
> > It exlpains you how to upload a file (on the file system though). You
>
> can
>
> > easily change the desination, by modifying the 'upload' function and
>
> write
>
> > it to a MySQL db. The important thing is that you set a table with a
>
> BLOB
>
> > field (tinyblob -> 255 bytes; blob -> 65535 bytes, mediumblob ->16777215
> > bytes and longblob -> [ ...]).
> >
> > I am not sure though of this second part but you can easily try to
>
> INSERT
>
> > the content of the file in there.
>
> You can INSERT the image data into a blob field, but before you do that
> you MUST encode it.
> Use base64_encode() to encode the uploaded stuff and then base64_decode()
> to convert it back to normal when retreiving it.
> This method adds additional volume to the data - approximately 1/3 more
> data (because of the nature of this method) but it definitely works and is
> safe, so it it's the way to go.
>
>
> Happy hacking.
> Ellert.