On 03/10/2011 03:17 PM, Thiago H. de Paula Figueiredo wrote:
On Thu, 10 Mar 2011 16:37:29 -0300, Rich M <rich...@moremagic.com> wrote:
Hi,
Hi!
I had read this thread
http://tapestry.1045711.n5.nabble.com/How-to-display-Blob-byte-array-image-td2436148.html
along with other information regarding uploading/displaying images. I
think I'm a bit confused as to what my ImageStreamResponse is or
should be achieving. I had thought using that I might be able to
display the image itself in the TML, but it seems I'd need the URL
instead. If I had the URL in any case then what purpose does the
ImageStreamResponse serve?
None. When you have the image in some public URL, inside or outside
your application, you don't need a StreamResponse for it. Just use its
URL. StreamResponse is used when you have the content generated on the
fly, available as an InputStream or in memory.
Okay, that makes sense. Is there a way to use the StreamResponse instead
of the URL then to display an image in the browser? My application will
be able to more reliably serve the images via the StreamResponse rather
than the URL so I'd like to consider that approach, or at least know if
how to do it for curiosity sake.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org