1
Answer

How to send image bytes to web api

Jagatpal Singh

Jagatpal Singh

5y
1.2k
1
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)