I used my other method instead of using ByteArrayResource directly, in order to reduce session size. I therefore presume that I was using ByteArrayResource incorrectly for that reduction to happen!
Martin Grigorov-4 wrote: > > On Thu, Sep 15, 2011 at 5:13 PM, Ian Marshall > <ianmarshall...@gmail.com> wrote: >> I don't know why I said that ByteArrayResource was abstract. Sorry about >> that; I got it mixed up with another class. >> >> I need to keep my byte array wrapped in a LoadableDetachableModel, in >> order >> to prevent the array being stored in the page and session, so I do not >> supply an IResource to the NonCachingImage component constructor; I use >> NonCachingImage(String id, IModel<?> myLDM) instead. > With the dynamic nature of ByteArrayResource you also can load the > byte[] on demand without storing it. >> >> After looking at what my use of the Wicket and Java classes did, which, >> despite all the streams and content type, was just to copy an image byte >> array, I shall now do a direct copy and see what happens. >> >> Thank you very much for your pointers, Martin; in my view, two minds do >> indeed make three. >> >> Ian >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Creating-a-resource-from-a-byte-array-and-its-content-type-tp3815188p3815697.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Creating-a-resource-from-a-byte-array-and-its-content-type-tp3815188p3815727.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org