in reply to downloading files from mySQL
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: downloading files from mySQL
by gmacfadden (Sexton) on Nov 01, 2006 at 18:36 UTC | |
|
Re^2: downloading files from mySQL
by gmacfadden (Sexton) on Nov 03, 2006 at 19:53 UTC | |
by Joost (Canon) on Nov 05, 2006 at 14:59 UTC |