hi, i want to upload a image from wicket and store it into dabase, how can i display it?

2008-10-19 Thread shrimpywu
hi, i want to upload a image from wicket and store it into dabase, how can i display it? in hibernate, i define the type as Blob to store the image, however, when i try to read it, get the input stream from blob it always complain that after serialzation, blog may not be asscessable. /

Re: hi, i want to upload a image from wicket and store it into dabase, how can i display it?

2008-10-19 Thread James Carman
I don't know that I would cache the image data. That will get stored in the session. Why use a DynamicImageResource if you're going to cache (store it in a member variable) the image data anyway? If the data comes from the database, then look it up when the resource is requested. On Sun, Oct

Re: hi, i want to upload a image from wicket and store it into dabase, how can i display it?

2008-10-19 Thread Nino Saturnino Martinez Vazquez Wael
James Carman wrote: I don't know that I would cache the image data. That will get stored in the session. Why use a DynamicImageResource if you're going to cache (store it in a member variable) the image data anyway? Well, sure.. And it's not cluster safe.. There are pros and cons to it...