Re: Binary To File

2007-04-12 Thread Gabriel Genellina
En Thu, 12 Apr 2007 20:16:28 -0300, Daniel Nogradi <[EMAIL PROTECTED]> escribió: >> Is there an easy way to take binary data and build it into a file? > > myblob = . # let's say you got it from your database somehow > myjpeg = open( 'image.jpg', 'w' ) > myjpeg.write( myblob ) > myjpeg.cl

Re: Binary To File

2007-04-12 Thread Grant Edwards
On 2007-04-12, Daniel Nogradi <[EMAIL PROTECTED]> wrote: >> Is there an easy way to take binary data and build it into a file? Generally >> this will be BLOB data drawn from a database, the data will be for jpg >> images, I want to take the blob data and build it into a physical .jpg file. >> >> >>

Re: Binary To File

2007-04-12 Thread Daniel Nogradi
> Is there an easy way to take binary data and build it into a file? Generally > this will be BLOB data drawn from a database, the data will be for jpg > images, I want to take the blob data and build it into a physical .jpg file. > > > > Is there a simple function for doing this in python? Like bi

Binary To File

2007-04-12 Thread Robert Rawlins - Think Blue
Hello Guys, Is there an easy way to take binary data and build it into a file? Generally this will be BLOB data drawn from a database, the data will be for jpg images, I want to take the blob data and build it into a physical .jpg file. Is there a simple function for doing this in python? L