I am trying to deliver an image to a client PC for whatever they may wish to do with it. After completing my purchasing process, I want to send the image to them to save or print. I have tried several methods of doing so (thank you, Super Search!) but can't seem to get either of them to work for me.
I have tried the following methods of doing this:
andmy $file = "\\\\cromedome\\images\\182.TIF"; print $request->header(-type=>'image/tif', -attachment=>$file);
When the CGI executes, I get a dialog to "Open" or "Save As". Open lets me select my image viewer, but whatever data is being delivered to it is not my image.my $file = "\\\\cromedome\\images\\182.TIF"; my $buffer; open TIF, $file or die "Cant open image"; read TIF, $buffer, -s(TIF); print $request->header(-type=>"image/tif"), $buffer;
One other trick: I'd like the file delivered in such a way (perhaps with a .TIF extension?) so Windows will know to pop open the default image viewer when I select open.
FWIW, clients will be using IE 5.5 and above, and likely Windows 2k. That's what I've been testing this with. Any insight is appreciated :)
Thanks!
MrCromeDome
In reply to Delivering an image to a client browser/PC by MrCromeDome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |