in reply to uploading images into cgi's
To effectively address this problem, an alternate content type header, appropriate to the image data type which follows, such as image/gif, needs to be sent in place of the current header information. The appropriate content type header can be determined through use of the File::MMagic module (or the CGI::Upload module which encompasses File::MMagic in conjunction with CGI.pm to facilitate an easy interface for handling uploads).
It may be worth posting a larger snippet of your code if you would like further suggestions about how to address this problem.
perl -le 'print+unpack("N",pack("B32","00000000000000000000000111111100"))'
|
|---|