loading binary image data into memory

rixdelei rixdelei at hotmail.com
Tue Apr 12 16:25:53 EDT 2005


tx vm guys, helped a lot

"rixdelei" <rixdelei at hotmail.com> escribió en el mensaje 
news:d3f6bo$2thb$1 at news.wplus.net...
>
> Hi there!
> Tried successfully downloading data into memory from internet using the 
> urllib module like this:
> ...
> import urllib
> import cStringIO
>
> url_file = urllib.urlopen(url)
> img = cStringIO.StringIO(url_file.read())
> ...
> Was wondering HOW could I accomplish the same results using the ftplib 
> module
> -> retrbinary( command, callback[, maxblocksize[, rest]])
> WITHOUT saving any information to the disk;
>
> Will appreciate your comments,
> TIA+BRGDS
> 





More information about the Python-list mailing list