<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hi </div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; ">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?</div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; ">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.</div><div style="color:
 rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; ">For example </div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; ">$image=$map->draw(); </div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "> </div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial,
 helvetica, sans-serif; background-color: transparent; font-style: normal; ">$image is Object. How can I get the binary data of  image<span style="font-size: 10pt; ">?</span><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br></div><div style="color: rgb(0, 0, 0); font-size: 13.333333969116211px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; ">Please help</div></div></body></html>