tx vm guys, helped a lot
"rixdelei" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
>
> 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)
>
Robert Kern wrote:
>> probably something like this: (untested)
>> def make_ftplib_callback(f):
>> def callback(block): f.write(block)
>> return callback
>> img = cStringIO.StringIO()
>> retrbinary( "get ???", make_ftplib_callback(img))
>
> Ummm, how about
>
> img = cStr
Jeff Epler wrote:
probably something like this: (untested)
def make_ftplib_callback(f):
def callback(block): f.write(block)
return callback
img = cStringIO.StringIO()
retrbinary( "get ???", make_ftplib_callback(img))
Ummm, how about
img = cStringIO.StringIO()
retrbinary(
probably something like this: (untested)
def make_ftplib_callback(f):
def callback(block): f.write(block)
return callback
img = cStringIO.StringIO()
retrbinary( "get ???", make_ftplib_callback(img))
Jeff
pgpaecaxnsqYB.pgp
Description: PGP signature
--
http://mail.pyt
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
modul