Hello matplotlib users! I 'm using matplotlib for one week and I 'm excited. The only thing I couldn't do is to save image's contect straightway to SQL server. So I 'm searching for a function that store figure's image as binary data in a python variable in order to put the content of this variable inside an postgresql query.
For example: ....... matplotlib code ......... conn = psycopg2.connect(.......) curs = conn.cursor() image_data=###The matplotlib function I'm searching### sql = "update med_graphs set image=%s;" curs.execute(sql,image_data,)) conn.commit() I found only the figure.savefig() function that saves figure's image only as a filename in the filesystem and not in a local variable. Any help would very much appreciated! Panagiotis
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users