PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed Need Money Easy and Quick?

Re: Swing better than Awt?

 List
Subject: Re: Swing better than Awt?
Poster: Richard Maher
Date: Sat, 24 Mar 2007 10:24:49 +0800
Related Postings: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
Hi Lew,

Thanks for the reply.

"Lew" wrote in message news:rvKdnXd0oMEj2pnbnZ2dnUVZ_h_inZ2d@comcast.com...
> If you are running a servlet engine you can have a servlet stream the image,
> and use that servlet as the img tag's src.

Is the magic in the URL? Can I see the whole tag? Or does the http request not change and it's the server that let's you specify a DSO other than a file to satisfy the GET?

Cheers Richard Maher

"Lew" wrote in message news:rvKdnXd0oMEj2pnbnZ2dnUVZ_h_inZ2d@comcast.com...
> Richard Maher wrote:
> >> PPS. If I was holding a series of say employee photographs/images as
> >> blobs
> >> in a database, can anyone tell me how I would get one of them up into a
> >> web-browser without first having to export it to a .jpeg/.bmp/.gif
> >> file? I
> >> must have missed something? I know http servers/browsers are optimized to
> >> have seperate threads for uploading images but nonetheless, what's the
> >> alternative? Can I pass an BufferedImage back from an applet to
> >> Javascript?
> >> (And then what would it do with it without a SRC="#something"?)
>
> Arne Vajhøj wrote:
> > You can do a IMG tag with SRC pointing to a server side script that
> > sends the image from the database to the browser with the correct
> > content type.
> >
> > Or you can use an applet that retrieves the images via socket
> > and displays it within the applet.
>
> If you are running a servlet engine you can have a servlet stream the image,
> and use that servlet as the img tag's src.
>
> I recently implemented such a thing after googling around for some code.
>
> -- Lew

 

Page2Go2.com is not responsible for content of this message.