On 10/05/2010 11:11 PM, hid...@gmail.com wrote:
Hello, how i can save a binary file, i read in the manual in the IO area
but doesn' t show how to save it.
Here is the code what i am using:
s = open('/home/hidura/test.jpeg', 'wb')
s.write(str.encode(formFields[5]))
s.close()

So where's the problem? That code should work. Anyway, you want to have a look at with-statements.

Jonas
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to