I want send CommonsMultipartFile from ajax call to server when user select the file. File can not be directly send through JSON as it gives the error mentioned here(JsonMappingException: Can not construct instance of CommonsMultipartFile).
Is there any way to encode this (CommonsMultipartFile) in the client side (JSP page) to generate string?