Hi,
I am using the following shell through a perl script to download an image from a location on the server and prompt the client to 'Save as' on their machine. The script is called on the click of a button. So far a file is created on the users machine but it is 0 bytes, can someone help me complete this please, what is missing?
-------------------------------------------------
#! /usr/local/bin/perl
$| =1;
print "Content-type: image/jpg\n";
print "Content-Disposition: attachment; filename=test.jpg\n";
print "Content-Description: image download\n\n";
chdir("/home/user/
------------------------------------------------
Thanks,
Zac
I am using the following shell through a perl script to download an image from a location on the server and prompt the client to 'Save as' on their machine. The script is called on the click of a button. So far a file is created on the users machine but it is 0 bytes, can someone help me complete this please, what is missing?
-------------------------------------------------
#! /usr/local/bin/perl
$| =1;
print "Content-type: image/jpg\n";
print "Content-Disposition: attachment; filename=test.jpg\n";
print "Content-Description: image download\n\n";
chdir("/home/user/
------------------------------------------------
Thanks,
Zac