PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Ed Barlow <sqltech at tiac dot net>
Subject: Re: GIF - straight to the browser
Date: Sep 10 1997 4:17PM

Are you are saying i can inline an image in the html directly...  No
multiple hits to retrieve a page... something like

Content-type: text/html

Html Stuff
Content-type: image/gif

Gif Stuff

More Html Stuff


Provided i code it right.  I looked in depth at this a while ago and
thought it impossible...

Cheers
Ed

Doug Fairclough wrote:
> 
> thats incorrect, i've done it before.  try taking a look at rfc2068.
> 
> On Tue, 9 Sep 1997, Ed Barlow wrote:
> 
> > You can NOT do it
> >
> > I think the next version of the html spec will support it.
> >
> > Cheers
> > Ed
> >
> > floyd@interactive.net wrote:
> > >
> > > I'm generating GIFs using the GD perl module (its very nice).
> > > I want to bring the GIFs directly back to the browser, instead
> > > of using an IMG tag in an HTML page.
> > >
> > > Content-type: image/gif does not work for me.  If you load a GIF
> > > into your browser (eg http://www.xxx.yyy/abcd.gif) and view source,
> > > you will see GIF87a followed by what i believe to be the source
> > > of the GIF file.
> > >
> > > As a test, i wrote a simple CGI perl script and browsed it:
> > >
> > > #!/usr/bin/perl
> > > #print "Content-type: image/gif"
> > > open(X," > > while () { print; }
> > > close(X);
> > > exit;
> > >
> > > this did not work - server 500 Server Error - malformed headed.
> > > this is the same error i get when i added:
> > >         print "Content-type: image/gif\n\n";
> > >
> > > However, if i change that line to:
> > >         print "Content-type: text/html";
> > >
> > > and browse the script, then view source, the source looks EXACTLY the
> > > same as just browsing the image and viewing source.
> > >
> > > Any thoughts out there?
> > >
> > > Christian Floyd Bevacqua
> >