Anyway, here's a reasonable start:
I have no idea what LWP has to do with any of this, though.# .. get data from blob into $blob_field. print "Content-type: application/octet-stream\n"; # or use the right c +ontent-type for the field if you know it print "Content-disposition: attachment; filename=somefile.ext\n\n"; binmode STDOUT; print $blob_field;
update: ah it appears you want a "file-download field" in your form. There is no such thing as such in HTML. My code above will work fine if you link to it though - it will (or rather, should) cause the browser to open a "save as..." file selector and save the content to that file. You can only send one file per request this way, so your best bet is to create a list of links for each blob field. In other words, the script above should be called as a CGI for each field.
In reply to Re: downloading files from mySQL
by Joost
in thread downloading files from mySQL
by gmacfadden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |