Binary To File

Robert Rawlins - Think Blue robert.rawlins at thinkbluemedia.co.uk
Thu Apr 12 09:52:04 EDT 2007


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? Like binary2file() or
something along those lines?

 

Thanks,

 

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070412/319ce55b/attachment.html>


More information about the Python-list mailing list