Binary blobs to jpeg

jayharvard at gmail.com jayharvard at gmail.com
Mon Jul 16 19:54:16 EDT 2007


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

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




More information about the Python-list mailing list