Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- downloading blobs from mysql
February 6, 2006, 12:30 pm
rate this thread
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-Disposition: attachment; filename=$name");
and then I do a:
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.
Re: downloading blobs from mysql
Oh. Your subject line said *downloading from* MySQL. not INSERTing into
just out of curiosity, if there is an internal limit on the size of a
string, say 64K, and I can't echo the content all at once, How would I
handle outputting a BLOB'd large file such as a PDF?
or is it that I just can't do it with PHP? do I use pack() somehow?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum