Binary blobs to jpeg

Grant Edwards grante at
Mon Jul 16 21:23:05 CEST 2007

On 2007-07-16, jayharvard1 at <jayharvard1 at> 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?

More information about the Python-list mailing list