);
>
> this should be
>
> this.fileInputStream = new
> ByteArrayInputStream(imagePhoto.getPhotoImage());
>
> Johannes
>
> -
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
> --
> View this message in context:
> http://struts
gt; this should be
>
>this.fileInputStream = new
> ByteArrayInputStream(imagePhoto.getPhotoImage());
>
> Johannes
>
> -
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Download-a-byteAr
: http://twitter.com/jogep
--
View this message in context:
http://struts.1045723.n5.nabble.com/Download-a-byteArray-jpg-image-to-browser-tp5509528p5512933.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To
iguration for this Action?
>
> Johannes
>
> -
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Download-a-byteArray-jpg-image-to-browser-tp5509528p5511883.html
> Sent from
Hi John,
can you share the Code of your Action and the configuration for this Action?
Johannes
-
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep
--
View this message in context:
http://struts.1045723.n5.nabble.com/Download-a-byteArray-jpg-image-to-browser-tp5509528p5511883
Dave,
Thanks for the suggestion, but either that doesn't work or I'm doing
something quite wrong (A wise person would bet on the latter).
I have attached a snipped version of my Action.java. When I run it, I
get the following error message:
[ERROR]~2012-02-23-22.18.52.412UTC~EDJ~Can not find a
Use a ByteArrayInputStream [1]?
Dave
[1]
http://docs.oracle.com/javase/6/docs/api/java/io/ByteArrayInputStream.html
On Thu, Feb 23, 2012 at 4:23 PM, John W. Himpel wrote:
> Good afternoon,
>
> I have retrieved a jpg image as a byteArray from a database but I don't
> know how to put the content
Good afternoon,
I have retrieved a jpg image as a byteArray from a database but I don't
know how to put the contents of the byteArray into a FileInputStream to
be sent back to the browser. I am using the Struts 2 StreamResult for
the data transfer to the browser (Question: Am I trying to put a sq
8 matches
Mail list logo