Search code examples
mysqlpngpchart

Saving pChart image to mysql


I need to save the png that pchart creates to my mysql database.

Is there a function that will retrieve the binary data of the png the is created?

This is what i tried to add to the pChart library but it just returns one.

 function getPicture()
{
    return $this->Picture;
}

Thanks


Solution

  • It's not very difficult, this is has been asked and answered on stack overflow:

    How can I store and retrieve images from a MySQL database using PHP?