How do I store an image that I've created with the GD directly into mySQL without storing it as a file?
I'm using the following code to show the Image:
--------------
header('Content-type:image/PNG');
imagePNG($img);
--------------
if I use $imgdata = imagePNG($img); I'm just getting '1' (=true) as result. If I use $imgdata = $img; then imgdata will just contain 'Resource id #97'
How do I get the binary data of the image?
thanks
Philippo
I'm using the following code to show the Image:
--------------
header('Content-type:image/PNG');
imagePNG($img);
--------------
if I use $imgdata = imagePNG($img); I'm just getting '1' (=true) as result. If I use $imgdata = $img; then imgdata will just contain 'Resource id #97'
How do I get the binary data of the image?
thanks
Philippo