On 8-dec-05, at 00:16, JR Boyens wrote:
He's talking about a generated image, not one on the file system.
The principle is the same, as long as the info is available as bytes
or as a stream. Using a file was the easiest way to show how to
stream binary data straight through.
Generally in this case you just take the stream you have and use
getOutputStream() and push the two together.
You'll need to write a separate element for it because browsers
expect only image content.
The reason for that is that the <img> tag sits in the HTML attribute
and that the image source is fetched through another request. You
can't couple both in one request, unless you start doing tricks that
aren't supported on all browsers. (http://rifers.org/blogs/gbevin/
2005/4/11/embedding_images_inside_html)
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users