Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BINMODE - Fileoutput works on unix but not windows

Status
Not open for further replies.

redgenie

Programmer
Aug 10, 2000
36
GB
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=&quot; >


any ideas???
 
Did you ever get this solved? I'm having the same problem.

Cheryl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top