You are here: Re: downloading blobs from mysql « All PHP « IT news, forums, messages
Re: downloading blobs from mysql

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация