in reply to Getting an image but no body text
The problem is that I can open the image on a webpage, but all the body text vanishes. Looking in the source of the webpage, you can still see the body.
This is obvious since the following:
print $q->header(-type => 'image/png'); open IMAGE, $image or die "Cannot open $image $!\n"; binmode STDOUT; print <IMAGE>; close IMAGE;
Will print the appropriate header and send the data constituting the image, which is the reason why you will actually see it in a browser. And that code is called by
my $get_image = thumbs::get_thumbs($client_id);
in your main.pm.
I think you just want in your main.pm to print a src attribute set to an url that will actually call thumbs.pm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting an image but no body text
by jtsceioa (Initiate) on Oct 12, 2006 at 13:22 UTC |