From:                   Elaine -HFB- Ashton <[EMAIL PROTECTED]>
> siren jones [[EMAIL PROTECTED]] quoth:
> *>Is it possible to use LWP::Simple to retrieve a binary file (i.e. a
> .netCDF *>file)?  Using the following code I can retrieve what I'm
> guessing are parts *>of the file.  That is, what is retrieved is
> always 3871 bytes even though *>the file is actually much larger. 
> Worse, I can not read the .netcdf file *>once it is retrieved.   Any
> ideas why this may be the case?  Or better yet, *>how to grab a binary
> data file off the web?
> 
> I don't know what a .netCDF file is but I have no trouble getting
> .jpg, ..gif, .tar.gz, etc. files with LWP::Simple. 

But you seem to be using Unix.

binmode(FILEHANDLE);

is a NOOP (NO OPeration) under Unix, since Unix uses one 
character newlines, but it gets important when using Windows.

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to