I have a script that sends a .gif to a requesting webpage. It works fine when the script resides on a unix server but when the script sits on a windows server the .gif is garbled.
Here is the script:
print "Content-type: image/gif\n\n";
open(INGIF, "$image"
;
binmode(INGIF);
print <INGIF>;
close(INGIF);
Assume that the $image path to the .gif im sending works because it is sending the image, only the colour information is totally messed up.
the html that calls the image looks like this:
<img src=" >
any ideas???
Here is the script:
print "Content-type: image/gif\n\n";
open(INGIF, "$image"
binmode(INGIF);
print <INGIF>;
close(INGIF);
Assume that the $image path to the .gif im sending works because it is sending the image, only the colour information is totally messed up.
the html that calls the image looks like this:
<img src=" >
any ideas???