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
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_
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