struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <maurizio.cucchi...@gmail.com>
Subject Re: Putting an Image (in Bytes) on the session
Date Mon, 15 Nov 2010 17:34:49 GMT
You're right, it smells like a wrong approach :). Storing image's bytes is a
space consuming practice.

Anyway, Could you explain what do you need?


2010/11/15 Greg Akins <angrygreg@gmail.com>

> This seems like maybe I'm approaching it wrong.. but wondering if it's
> possible.
>
> I'm wondering if I can put an image, in the form of a byte array, or
> stream, that I can read with either a struts tag, jstl, or el
>
> Thinking in my action
>
> session.put("image", image.getBytes());
>
> and in the .jsp
>
> ${image}
>
> Thoughts on this, or other ways to do something similar?
>
> --
> 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-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Maurizio Cucchiara

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message