[mapserver-users] binary data of image

Andreas Douvalis anddreas2 at yahoo.gr
Wed Oct 10 09:37:31 PDT 2012


Hi 

How can I get (with php-mapscript) the binary data of one image that I created with draw dunction without to save the image to disk?

Actually, I want to  save the image to postgresql database in bytea field. Therefore, I want to get binary data of map image and insert it to pqsql table.

For example 

$image=$map->draw(); 
 
$image is Object. How can I get the binary data of  image?



Please help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121010/1a9358cd/attachment.html>


More information about the mapserver-users mailing list