I have a native iOS application, in which I must consume a web service where I send a photo in base 64 to the backend in php with slim framework but I return the following error on the code 64 of the image:
recoverable error: Corrupt JPEG data: 233 extraneous bytes before marker 0x10
This is the conversion code to base64, it will be that I have an error:
let img : NSData = UIImageJPEGRepresentation(self.imgLugar.image!, 1)!
let base64Img = img.base64EncodedStringWithOptions(.Encoding64CharacterLineLength)