Re: Displaying Images Stored in DB on Openshift

2014-07-14 Thread Ernesto Reinaldo Barreiro
Hi, On Mon, Jul 14, 2014 at 10:38 PM, David Beer wrote: > Hi Martin > > Thanks for your reply. Attaching a debugger is really easy with OpenShift > and is what I did. I was able to see that storing the file was in fact > producing the wrong set of image bytes, hibernate postgresql issue. Once >

Re: Displaying Images Stored in DB on Openshift

2014-07-14 Thread David Beer
Hi Martin Thanks for your reply. Attaching a debugger is really easy with OpenShift and is what I did. I was able to see that storing the file was in fact producing the wrong set of image bytes, hibernate postgresql issue. Once fixed I was able to check the file and image properly. All seemed to w

Re: Displaying Images Stored in DB on Openshift

2014-07-14 Thread Martin Grigorov
Hi, Is it possible to attach remote debugger to OpenShift and see what happens ? If it is not possible then add some logging statements and see what is returned from the DB (byte[]) and whether Wicket creates a proper BufferedImage, whether it is written down in the resource's WriteCallback, etc.

Re: Displaying Images Stored in DB on Openshift

2014-07-13 Thread David Beer
Hi Guys After some more trial and error and research I have got the image to store properly and write back out a valid image using BufferedImage and ImageIO. However I am still not able to display the image. I just get the picture symbol and he link looks like . The code used is as follows: Buff

Displaying Images Stored in DB on Openshift

2014-07-07 Thread David Beer
Hi All I am developing and application that is running on openshift. The application is still in heavy development, using wicket 6.14 at the moment. I am running Wildlfy 8.1.0 and testing locally. The problem I am facing is simply that the images that I am storing are not being displayed on Opens