Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: deleting a file after loading

by davorg (Chancellor)
on Nov 28, 2000 at 20:14 UTC ( [id://43688]=note: print w/replies, xml ) Need Help??


in reply to deleting a file after loading

Sounds like passing the image directly to the page is the best way to go here. When you got ASCII, were you sending the right Content-Type header?

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: deleting a file after loading
by belize (Deacon) on Nov 28, 2000 at 20:20 UTC
    I was using the Content-type: image/gif header. But the image is being displayed within an HTML page which uses the Content-type: text/HTML header.

    When I create the image by accessing a CGI (i.e. <IMG SRC="test.cgi?blah&Blah">, the image comes out fine. But when I access the image using a sub routine (i.e. <IMG SRC="&test"> I get ASCII text.

    I prefer to access via a sub routine because I am accessing a database with variables and the image is drawn using the variables. I am having trouble passing all the variables to an external CGI, but it is easy using a sub routine.

    I'm sure my Perl ignorance is making this much more difficult than it should be.

    You can see what i'm doing at http://www.belizeexplorer.com and using the search function at top. None of hte other links currently work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found