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.
/////
item.add(new Image("imgItem", new Resource() {
@Override
public IResourceStream getResourceStream() {
return new AbstractResourceStream() {
public InputStream getInputStream() throws
ResourceStreamNotFoundException {
return
blob.getBinaryInputStream();
}
public void close() throws IOException {
// close input stream
}
};
}
}) );
////
can anybody give me any suggestion,
Thanks.....
--
View this message in context:
http://www.nabble.com/hi%2C-i-want-to-upload-a-image-from-wicket-and-store-it-into-dabase%2C-how-can-i-display-it--tp20054038p20054038.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]