Re: Binary blobs to jpeg

2007-07-17 Thread jayharvard
On Jul 16, 7:54 pm, [EMAIL PROTECTED] wrote: > On Jul 16, 3:23 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > > > > > > > On 2007-07-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > >> Have you tried to open the file in "wb" mode? > > > > The data is coming from a record set selection from th

Re: Binary blobs to jpeg

2007-07-16 Thread jayharvard
On Jul 16, 3:23 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-07-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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

Re: Binary blobs to jpeg

2007-07-16 Thread Grant Edwards
On 2007-07-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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

Re: Binary blobs to jpeg

2007-07-16 Thread jayharvard1
> Have you tried to open the file in "wb" mode? > > HTH, > > -- > Carsten Haesehttp://informixdb.sourceforge.net 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 t

Re: Binary blobs to jpeg

2007-07-16 Thread Carsten Haese
On Mon, 2007-07-16 at 18:57 +, [EMAIL PROTECTED] wrote: > Hello All. > I'm trying to create jpegs out of data that is stored in a binary blob > format in an RDBMS (MS Access). I've tried writing the jpeg directly: > > while not rs.EOF: > op = file(imgdir + "\\" + pic,"w") > print >>