Binary blobs to jpeg
Grant Edwards
grante at visi.com
Mon Jul 16 15:23:05 EDT 2007
On 2007-07-16, jayharvard1 at gmail.com <jayharvard1 at gmail.com> wrote:
>> Have you tried to open the file in "wb" mode?
>
> The data is coming from a record set selection from the Access
> database. I guess I could write the data to a temp file and
> open that file handle with the "wb" mode. But, no, I haven't
> tried that.
I think you missed the point.
When you want to write the binary data to a file, you must open
the destination file using "wb" mode. It's binary data, not
text data, so you have to open the output file in binary mode.
--
Grant Edwards grante Yow! Is my fallout shelter
at termite proof?
visi.com
More information about the Python-list
mailing list