PHP Thumb » Help & Bugs » Help

How save converted image into MySQL (blob)

(2 posts)
  1. OrderByRand
    Member

    Welcome,

    I would ask two question.

    First, how can i convert image into string then save to MySQL.

    I have try following but without positive result. ( i think its foul of headers).

    ob_start();
    $thumb->show();
    $out = ob_get_clean();

    Second, how force to use output format ?
    I want store output images in JPG format.

    Please excuse my language

    Posted 9 months ago #
  2. To store an image in the database, I'd first write it to the file system in some temp location, then use file_get_contents to get the actual data to store in the DB.

    As far as forcing output type, check out: http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#SavingImages

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.