On Mon, Nov 15, 2010 at 12:49 PM, Jesse Hill <jesse_h...@us.ibm.com> wrote:
>
> Also, is there a particular reason why the data needs to go in the session 
> instead of just adding a getImage() method to your action that will return 
> the data that you need?
>

You're right.  I don't need it in the session.  But that wasn't the big problem.

The problem I was having was returning the image bytes from an "in
page" mechanism rather than relying on a dedicated "image" servlet
that writes directly to the response output.

I ended up writing a BufferedOutputStream onto the request and then
embedding a <c:out value="${data}/> in an <Img/> tag  like <img
id="${caption}" src="data:image/gif;base64,${data}" alt="Image">


--
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to