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

Posted by Barry on 02/06/06 14:30

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);

This all works fine, for small files. When I have larger file (50KB +),
the downloads stop short, resulting in incomplete downloads.


Why could this be happening.
Please help I'm getting very frustrated.

Thanks
Barry

 

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

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