Regarding sending files to clients I have not worked with .tiff files personally, but I guess you would have to tell the client how the data is encoded.
Perhaps something in the line of
undef $/; # Slurp whole file into scalar, # otherwise only to first \n my $file = "ms.tif"; open(READ, $file) || die "Yada yada"; binmode(READ); my $buffer = <READ>; close(READ); binmode(STDOUT); print "Content-Type: image/tiff\n"; print "Content-Transfer-Encoding: binary\n" # Was base64 print "Content-Disposition: attachment; filename=ms.tif\n"; print "Content-Length: ", -s $file, "\n\n" #Show progress bar print $buffer;
This is untested code and I may be barking up the wrong alley tree.
I see that you binmode(READ) but what about STDOUT ??
Update: Stubborn me, codeexample is now updated and tested on IE6.0
The only annoying issue left is that the you get the Open/Save dialog twice.
---
... chromium crusted tweezers gleaming in the moonlighty night --FZ
In reply to Re: Downloading images to client PCs
by guha
in thread Downloading images to client PCs
by MrCromeDome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |