Re: [Resolved] Download a byteArray (jpg image) to browser

2012-02-24 Thread John W. Himpel
); > > 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

Re: Download a byteArray (jpg image) to browser

2012-02-24 Thread Dave Newton
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

Re: Download a byteArray (jpg image) to browser

2012-02-24 Thread Johannes Geppert
: 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

Re: Download a byteArray (jpg image) to browser

2012-02-24 Thread John W. Himpel
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

Re: Download a byteArray (jpg image) to browser

2012-02-23 Thread Johannes Geppert
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

Re: Download a byteArray (jpg image) to browser

2012-02-23 Thread John W. Himpel
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

Re: Download a byteArray (jpg image) to browser

2012-02-23 Thread Dave Newton
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

Download a byteArray (jpg image) to browser

2012-02-23 Thread John W. Himpel
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