Dear Cory or any cgi-app reader:

Cory Trese wrote:
Hello,


------------------------------------------------
remaining not help, in my
ie6-xp I still can not see that picture it still is small red cross.

if you do have experience and pretty sure the code is no wrong, then it
probably is httpd of apache's problem

No, this is not a problem with Apache.  In my Apache mime.types file

like mime_magic.conf?
I can not find jpg word in it, would you mind to point out where?


, you
find this line:

image/jpeg			jpeg jpg jpe

Which means that your code is wrong, not the apache httpd server.

You must fix


print("Content-type:  Image/jpg\n\n");

To say


print("Content-type:  image/jpeg\n\n");

I modify and tried again im my apache 1.3.26 and perl 5.8 on linux 2.4.20(progeny-debian)
/usr/bin/perl /usr/lib/cgi-bin/showphoto.pl > mytest.jpg /* I did not know how to do this in window xp, if any one can tell me , I can switch platform to xp to test , using Internet Explorer 6
*/
then on the URL of netscape 7, I type /home/fsshl/mytest.jpg

it showed
The image "file:///home/fsshl/mytest.jpg" cannot be displayed, because it contains errors

please help


but thanks your help anyway,

and hope to see more hints on this
-----------------------

binmode( INFILE  );
-----------------------

This method arranges for the file handle to be treated as a binary file (as
opposed to a text file) for operating systems with distinguish between the
two.


my $img = <INFILE>;
close(INFILE);

#binmode STDOUT;

print $img;
exit;
I think that's what you want though I cannot test it at the moment.

-cm


Sincere Eric
www.linuxspice.com
linux/window pc for sale

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Cory Trese
Lead Web Application Developer

O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0800 ext. 3038
Fax: (937) 865-5858
E-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Sincere Eric
www.linuxspice.com
linux pc for sale


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to