in reply to Re: CGI-Perl:: Location for saving the GD output
in thread CGI-Perl:: Location for saving the GD output
I tried the third one.. and is giving output but not as image.. its all Greek and Latin..
Below are the lines of code, where I am generating the image..and just to try with your piece of code, I am trying with this.my $png_data = $im->png; #open (DISPLAY,"| display -") || die; print $query->p("$tag : Free energy curve of forward strand and shu +ffle sequence"); #open (DISPLAY,">/var/www/html/upload/$tag.jpg") ||error ($query, "C +ant open GRAPH:") ; open (DISPLAY,">/tmp/upload/$tag.jpg") ||error ($query, "Cant open +GRAPH:") ; binmode DISPLAY; print DISPLAY $png_data; close DISPLAY;
What u say ?? pl help!!open (I, '<', "/tmp/upload/$tag.jpg"); #print $query->header(-content_type => "image/png"); print while <I>; close I; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: CGI-Perl:: Location for saving the GD output
by shmem (Chancellor) on Sep 10, 2006 at 22:19 UTC | |
by cool (Scribe) on Sep 11, 2006 at 06:38 UTC | |
by shmem (Chancellor) on Sep 11, 2006 at 07:53 UTC | |
by cool (Scribe) on Sep 11, 2006 at 09:12 UTC | |
by gellyfish (Monsignor) on Sep 11, 2006 at 09:17 UTC |