image from URL

Walter Dörwald walter at
Thu Oct 11 14:16:58 CEST 2001

Oleg Broytmann wrote:

> On Thu, Oct 11, 2001 at 06:01:48AM -0500, Randy Heiland wrote:
>>    fp =, "rb")
>>TypeError: open() argument 1 must be (encoded string without NULL bytes), not
>    Please continue to answer to newsgroup.
>    So you have a minor problem - Image expects filename. So, save
> to a file, and pass its filename to Image.

or use urllib.urlretrieve instead of urllib.urlopen

    Walter Dörwald

More information about the Python-list mailing list