Binary blobs to jpeg

jayharvard at jayharvard at
Tue Jul 17 01:54:16 CEST 2007

On Jul 16, 3:23 pm, Grant Edwards <gra... at> wrote:
> On 2007-07-16, jayharva... at <jayharva... 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?

I did miss the point. I will give that a shot. Thanks Carsten and Grant

More information about the Python-list mailing list