Re: Download a byteArray (jpg image) to browser

2012-02-24 Thread Dave Newton
+1; those pesky locals not being properties. On Fri, Feb 24, 2012 at 9:22 AM, Johannes Geppert wrote: > The Problem is followinmg Line: > >ByteArrayInputStream fileInputStream = new > ByteArrayInputStream(imagePhoto.getPhotoImage()); > > this should be > >this.fileInputSt

Re: Download a byteArray (jpg image) to browser

2012-02-24 Thread Johannes Geppert
The Problem is followinmg Line: ByteArrayInputStream fileInputStream = new ByteArrayInputStream(imagePhoto.getPhotoImage()); this should be this.fileInputStream = new ByteArrayInputStream(imagePhoto.getPhotoImage()); Johannes - web: http://www.jgeppert.com twitter:

Re: Download a byteArray (jpg image) to browser

2012-02-24 Thread John W. Himpel
Johannes; Thanks for your response. I have attached: DownloadAction.java struts.xml tiles-def.xml web.xml If you need anything else, please let me know. John On Thu, 2012-02-23 at 23:13 -0800, Johannes Geppert wrote: > Hi John, > > can you share the Code of your Action and the configuration f

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.ht

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