Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 pondering the Monastery: (5)
As of 2024-04-26 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found