M
M
MyOnAsSalat2018-03-30 13:51:28
Android
MyOnAsSalat, 2018-03-30 13:51:28

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);

I used this code for the camera
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 question

Ask a Question

731 491 924 answers to any question