Spring Data Rest Jpa insert @Lob field -


i have spring data rest service, expose resource like:

@entity public class resource{     private string name;     @lob     private byte[] data;      private string contenttype; } 

how should json insert resource of type?

afaik, sdr not handle multipart requests or responses yet, can json.

you can run sdr @ same time regular spring mvc servlet (it's 1 line of code in config).

i suggest using regular spring mvc controller file upload/download, , sdr rest (pun intended).


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -