in reply to Re^3: CGI-Perl:: Location for saving the GD output
in thread CGI-Perl:: Location for saving the GD output
hi Shmem,
I tried as following...
But it prints only some arbitory characters, not an image!!#!/usr/bin/perl -w use CGI; my $query = new CGI; $query->header(); $query->start_html(); print "Content-type:image/x-png\n\n"; open (I, '<', "/tmp/upload/EMBOSS_001.png"); binmode I; print while <I>; close I; $query->endform(); $query->end_html();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: CGI-Perl:: Location for saving the GD output
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 |
In Section
Seekers of Perl Wisdom