|
Posted by Jasen Betts on 02/06/06 21:03
["Followup-To:" header set to comp.lang.php.]
On 2006-02-06, Barry <b@b.com> wrote:
> Hi
>
> I am having trouble downloading documents saved in a blob.
>
> I get the correct data from the database.
> The original size saved in the table then equals the strlen of
> the file content retrieved from the db, so I'm pretty confident
> that I do get all of the data.
>
> I set the following headers:
>
> header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
> header("Content-type: $type");
> header("Content-length: $size");
> header("Content-Disposition: attachment; filename=$name");
>
> and then I do a:
>
> echo($content);
hopefully a blank line first.
>
> This all works fine, for small files. When I have larger file (50KB +),
> the downloads stop short, resulting in incomplete downloads.
does it do this for all browsers?
> Why could this be happening.
> Please help I'm getting very frustrated.
I've seen it cause by the socket being closed too soon, but that wasn't with
PHP.
Bye.
Jasen
Navigation:
[Reply to this message]
|