Answer the question
In order to leave comments, you need to log in
Xamarin how to get bytes from photo to send to server?
Hello, tell me how to get bytes from the intent of the picture from the camera and from the gallery to send to the server.
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
StartActivityForResult(intent, 0);
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
data.GetByteArrayExtra(); // не работает, требует в параметры какую-то строку name
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question