Reputation: 8975
Firstly,I captured image using Phonegap 3.0 which gives me BASE64 encoded String and then I have converted BASE64 string into MultipartFile object using How to convert byte array to MultipartFile link.
scalePhoto(ORIGINAL_LONG_EDGE,(new BASE64DecodedMultipartFile(Base64.decodeBase64(base64EncodedString).getBytes())
Check link for above class.
I am getting
Invalid JPEG file structure: missing SOS marker.
How can i resolve that?
Upvotes: 0
Views: 3969
Reputation: 10697
Obviously something gets lost during the conversion or the inverse conversion.
Upvotes: 1