0

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

Jed
  • 929
  • 2
  • 19
  • 32

2 Answers2

0

Most of the time the pChart library will be linked to a database in order to retrieve dynamic data.please take a look to this tutorial

jcho360
  • 3,724
  • 1
  • 15
  • 24
  • Hello I am not sure how this applies to what I am trying to do. pChart renders a png to file using the Render() function all i want to do is grab that data that gets rendered to file and put it into the db – Jed Jun 19 '12 at 08:53
0

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?

Community
  • 1
  • 1
Michael Fever
  • 845
  • 2
  • 8
  • 26