Loading image from URL with PIL

rgb122 at my-deja.com rgb122 at my-deja.com
Tue Apr 4 17:00:17 CEST 2000


> fp = urllib.urlopen(myurl)
> im = Image.open(fp)

That gives me an exception:

Traceback (innermost last):
  File "<interactive input>", line 1, in ?
  File "D:\Program Files\Python\Lib\PIL\Image.py", line 878, in open
    fp.seek(0)
AttributeError: seek

-Rob


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list