Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: uploading images into cgi's

by dingus (Friar)
on Dec 16, 2002 at 12:37 UTC ( [id://220184]=note: print w/replies, xml ) Need Help??


in reply to uploading images into cgi's

You need to print out the appropriate content header so that its an image. i.e.
my $image = $query->param('image'); $image =~ m/^.*(\\|\/)(.*)/; print header('image/gif'); while (<$image>) { print STDOUT $_; }

Dingus


Enter any 47-digit prime number to continue.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://220184]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-29 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found