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..
my $png_data = $im->png;
#open (DISPLAY,"| display -") || die;
print $query->p("$tag : Free energy curve of forward strand and shu
#open (DISPLAY,">/var/www/html/upload/$tag.jpg") ||error ($query, "C
+ant open GRAPH:") ;
open (DISPLAY,">/tmp/upload/$tag.jpg") ||error ($query, "Cant open
print DISPLAY $png_data;
and just to try with your piece of code, I am trying with this.
open (I, '<', "/tmp/upload/$tag.jpg");
#print $query->header(-content_type => "image/png");
print while <I>;
What u say ?? pl help!!