Re: store .png file in a script

2010-06-06 Thread Adam Tauno Williams
Just base64 encode the file, store it as a string in the file, and decode it to a byte-stream when you need the image. Everything required to do that is in the standard library. >Would you please let me know that how can I >store a .png or .gif or .jpg file, in a python script? -- http://mail

Re: store .png file in a script

2010-06-06 Thread Ian Kelly
On Sun, Jun 6, 2010 at 8:28 AM, Navid Parvini wrote: > > Dear All, > > Would you please let me know that how can I store a .png or .gif or .jpg > file, in a python script? > > Thank you in advance. > > Navid Encode it in base64 and store it in a triple-quoted string literal: import base64 png_

store .png file in a script

2010-06-06 Thread Navid Parvini
Dear All, Would you please let me know that how can I store a .png or .gif or .jpg file, in a python script? Thank you in advance. Navid -- http://mail.python.org/mailman/listinfo/python-list