in reply to Graphviz output straight to browser
However, the documentation does show a completely different way of outputting the image (besides print). Out of curiosity, what happens if you use one of the other output constructs recommended:
...immediately following your binmode call?$g->as_jpeg(\*STDOUT);
As a last resort, comment out your "print "content-type: image/jpeg\n\n";", and instead, output a 'text/html' header at the top of the program. Then put a 'print "Just completed add_node('london'....";' after each GraphViz method call to see which call in particular is causing the "hang".
Update: Ugh, how could I have missed seeing that the shebang line is wrong? I didn't even look at it. PodMaster++ for spotting it.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Graphviz output straight to browser
by tperdue (Sexton) on Oct 26, 2003 at 13:34 UTC |