Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^6: CGI-Perl:: Location for saving the GD output

by cool (Scribe)
on Sep 11, 2006 at 09:12 UTC ( #572307=note: print w/replies, xml ) Need Help??


in reply to Re^5: CGI-Perl:: Location for saving the GD output
in thread CGI-Perl:: Location for saving the GD output

Ya Shmem,

it is working finally..Thanks a lot :-) ; but if you remember I asked the question that I was not able to get (B). Where (B) was actually this png image and (A) was text output.

And with (A) and (B) together I am still getting Greek and Latin only.

Is it a problem of header, because to get both text as well as image.. which header should I use.. I tried every combination of

print "Content-type:text/html\r\n\r\n"; print "Content-type:image/x-png\r\n\r\n; but its printing the same arbitory symbols.. Or both the things can not be worked simultaneously??
  • Comment on Re^6: CGI-Perl:: Location for saving the GD output

Replies are listed 'Best First'.
Re^7: CGI-Perl:: Location for saving the GD output
by gellyfish (Monsignor) on Sep 11, 2006 at 09:17 UTC

    Obviously sending two Content-Type in a single response is not going to work. If you want to return an HTML document that includes your generated images then you need to send that separately and reference the images in the HTML - see for instance my earlier response.

    /J\

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-02-22 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (98 votes). Check out past polls.

    Notices?