[Image-SIG] How to open image file via HTTP and save locally?
Chris Cogdon
chris at cogdon.org
Wed Apr 21 11:09:11 EDT 2004
On Apr 21, 2004, at 04:02, Anastasios Hatzis wrote:
> I want my Python script to read a remote image file on a web server
> (e.g. JPG) and then save it locally.
>
> I imported PIL 1.1.4 on my Python 2.3.2 (Windows XP) and everything
> works fine while I read locally stored image files, using the PIL.
>
> But I can't find an example or description, how to open an image file,
> if it is not local but on a remote Web server ...
> - neither in PIL handbook, Python website, nor in various mailing
> archives.
>
> Does anyone know how to solve this problem? If needed, I can provide
> the
> various source codes, which I tried, and didn't work.
Read the docs for the urllib module.
--
("`-/")_.-'"``-._ Chris Cogdon <chris at cogdon.org>
. . `; -._ )-;-,_`)
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.'
((,.-' ((,/ fL
More information about the Image-SIG
mailing list