Jagatpal Singh

Jagatpal Singh

  • 1.5k
  • 339
  • 85.3k

How to send image bytes to web api

Nov 14 2019 10:04 AM
Hello Team,
 
How i can send/post captured image from android device to web api? Below is the code where i am getting image file with path:-
 
var file = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions
{
SaveToAlbum = true,
CompressionQuality = 75,
CustomPhotoSize = 50,
PhotoSize = PhotoSize.MaxWidthHeight,
MaxWidthHeight = 2000,
DefaultCamera = CameraDevice.Front
});
 
string imagePath=file.Path;
 
Please suggest? 
 

Answers (1)