Hi,

when i try to upload images i get following Error:
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte

. Everything works fine until i call Image.open(f), from PIL import Image.

x = web.input(bilder={})
b = Bilder()
b.set_image(x.bilder.file)
b.save()

...
class Bilder(Document):
...
def set_image(self, f):
  _i = Image.open(f, 'wb')
...


--
Mit freundlichen Grüßen

Patrick Erdmann

XMPP/Mail: patr...@perdmann.de

--
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to