Yesterday, at about to do a picture upload function, taking into account the number of logical questions, want to realize the use of Ajax, this page can not Jump and uploaded. Hands can start to do when found in each form obtained from the picture elements are known as the contents of a string picture, rather than access to its binary stream, the company should not because of the Internet, so their捣鼓for a long time, did not try out or eventually use js implementation of the pop-up window.
Internet search last night and the next, it is said that Rails's Ajax Can not upload binary files are streaming and can only upload binary text. This reminds me of long ago, just at a time when Hibernate learn, save a new object can be inserted, updated at a time when the operation with a sql statement to update the methods, so I think it can use this method to write sql insert statement Ultimately, this is not the







