I have written a code for Image capture through Camera and on button click upload same image on Server through API.
I tried converting MediaFile.Source to byte[] but couldn't find the Image Format because of this I'm getting invalid file format on server after upload.
Please suggest or give best solution to resolve this issue.