how to serve image files without disk use?
Tom Plunket
tomas at fancy.org
Fri Dec 29 03:22:56 EST 2006
Ray Schumacher wrote:
> But, how can I avoid disk writes? wx's *.SaveFile() needs a string
> file name (no objects).
> I'm going to investigate PIL's im.save(), as it appears to allow
> file-objects.
Take a look at the img2*.py files in wx.tools. They're sorta sketchy
imo, but they do the trick. encode_bitmaps.py, with the wx demo app, is
used to generate all of the bitmap data that's in Python files embedded
into the app, and following the chain of logic from there might yield
you something interesting.
Mind, I haven't tried it myself, but it's where I'd start looking.
Good luck,
-tom!
--
More information about the Python-list
mailing list