I am using gwt rpc and hibernate on the back end. I have an object in which one of the field is an image. I have to place the image in the object, send the file over rpc and saving it back to database using hibernate.
Does anyone of you have an idea about this??
It can’t be done exactly as described. In javascript, you can’t capture the binary contents of a file into the javascript VM. You have to use file upload to send it to the server. Your flow needs to be something like:
The image field needs to be annotated
@GwtTransientto be transient in GWT, not transferred in the ajax requests, but still persisted by hibernate.