This is very basic requirement but did not get any result after research. In Swift 3.0, by using below API, we have saved captured image.
UIImageWriteToSavedPhotosAlbum
UIImage
object have the image. Basic way to send image to server is convert the UIImage
to NSData. To perform this below two API are available.
UIImageJPEGRepresentation //NOTE - We must specify the compression parameter.
UIImagePNGRepresentation // We don't need to specify the compression parameter.
By default, image saved is in JPEG format, we want to send SAME image to server WITHOUT any compression.
So size of jpeg image in album and size of image on server must be exactly same.
How do I achieve this ?
Thank you for help.