Re: Downloading a file through a filehandle

2006-09-12 Thread Mumia W.
On 09/11/2006 05:58 PM, Robin Sheat wrote: On Tuesday 12 September 2006 10:27, Rob Dixon wrote: [...] What may help is that LWP allows for a callback to be specified in the get() call, so that the downloaded data can be passed in chunks to a user-written subroutine as it arrives. Use

Downloading a file through a filehandle

2006-09-11 Thread Robin Sheat
Hi, I'd like to download a file using HTTP, however instead of getting the result as an in-memory string, or saved to a file, I'd like to be able to access the content like it was a file (this is because the content downloaded is being written directly to another program as it is downloaded). I

Re: Downloading a file through a filehandle

2006-09-11 Thread Rob Dixon
Robin Sheat wrote: Hi, I'd like to download a file using HTTP, however instead of getting the result as an in-memory string, or saved to a file, I'd like to be able to access the content like it was a file (this is because the content downloaded is being written directly to another program

Re: Downloading a file through a filehandle

2006-09-11 Thread Robin Sheat
On Tuesday 12 September 2006 08:17, Rob Dixon wrote: One you have downloaded the remote file to memory or to local file storage you can then open either of them and access them through a filehandle. Will that do? Tell us a little more and we may be able to help better. Imagine I'm downloading

Re: Downloading a file through a filehandle

2006-09-11 Thread Robin Sheat
On Tuesday 12 September 2006 05:48, Tom Phoenix wrote: If it's a large amount of data and you want to process it a line at a time, say, it should be easy to write your own buffer-handling code. Is that what you want to do? Yes, however I'm accessing the data via HTTP, and so I'd really like to

Re: Downloading a file through a filehandle

2006-09-11 Thread Rob Dixon
Robin Sheat wrote: On Tuesday 12 September 2006 08:17, Rob Dixon wrote: One you have downloaded the remote file to memory or to local file storage you can then open either of them and access them through a filehandle. Will that do? Tell us a little more and we may be able to help better.

Re: Downloading a file through a filehandle

2006-09-11 Thread Robin Sheat
On Tuesday 12 September 2006 10:27, Rob Dixon wrote: I think so Robin, thanks. But I'm still not clear whether you really need to retrieve the data through a filehandle; surely any suitable means of IPC will do? Well yes, any IPC thing would do. However, I figured that handles represent

Re: Downloading a file through a filehandle

2006-09-11 Thread Tom Phoenix
On 9/11/06, Robin Sheat [EMAIL PROTECTED] wrote: I'd like to download a file using HTTP, however instead of getting the result as an in-memory string, or saved to a file, I'd like to be able to access the content like it was a file (this is because the content downloaded is being written