Re: Sending large file as attachment to clients

2008-03-25 Thread Joe Lewis
Subra A Narayanan wrote: Thanks for the replies guys. I will try ur suggestions once I get to work today. Just a few more questions: Check out the various filter/bucket brigade examples. This may do just what you want. I've used it to 'gate' the final sending for things ike throttling and ke

Re: Sending large file as attachment to clients

2008-03-25 Thread Subra A Narayanan
Thanks for the replies guys. I will try ur suggestions once I get to work today. Just a few more questions: > > > Check out the various filter/bucket brigade examples. This may do just > what you want. I've used it to 'gate' the final sending for things ike > throttling and keeping buggy telco bea

Re: Sending large file as attachment to clients

2008-03-24 Thread Dirk-Willem van Gulik
Subra A Narayanan wrote: I was wondering if there is a way to read and transmit chunks of data to the client. The module will read, lets say 10k of data at a time, transmit it, read the next chunk, transmit it.until the end is reached. Check out the various filter/bucket brigade examples.

Re: Sending large file as attachment to clients

2008-03-24 Thread Joe Lewis
Subra A Narayanan wrote: Thanks for ur reply Samuel! Maybe you can read part of the blob with a function like MySQL's SUBSTR. I can easily read small chunks of data from my datastore. I guess the problem that I am trying to solve here - how to send chunks of data as a HTTP response without

Re: Sending large file as attachment to clients

2008-03-24 Thread Subra A Narayanan
Thanks for ur reply Samuel! Maybe you can read part of the blob with a function like MySQL's SUBSTR. > I can easily read small chunks of data from my datastore. I guess the problem that I am trying to solve here - how to send chunks of data as a HTTP response without having to read in and store a

Re: Sending large file as attachment to clients

2008-03-24 Thread Samuel Gómez
Hello Subra. Maybe you can read part of the blob with a function like MySQL's SUBSTR. I've never tested that. When there are large files to store, I prefer to store it as a normal file in a directory, and record its path on the database (e.g. in a varchar field). Samuel Subra A Narayanan

Sending large file as attachment to clients

2008-03-24 Thread Subra A Narayanan
Hello folks, I have an apache module which receives request for data from clients, reads binary data from a datastore, loads the data in to memory and then sends out the response with the data in the request body. Here is the code snippet: ap_set_content_type(request, "application/octet-s