Placing an image in an object, sending the object over rpc and then using hibernate
问题 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?? 回答1: 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: Capture non