0

My Xamarin.IOS app gets build error: "cannot convert type byte[] to UIKit.UIImage"

My code:

ImageView_camera.Image =         Camera_Socket_Client.packet_frame_state.buffer;

The buffer contains a frame sent by socket from a UWP Windows app, which got the frame from a USB camera from a Logitech HD 1080p webcam.

I want to show live image from webcam at IPAD.

1 Answer 1

3
UIImage.LoadFromData(NSData.FromArray(myByteArray));
Sign up to request clarification or add additional context in comments.

1 Comment

Yep. And my missing step has been to first convert data to PNG, then upload to IOS. In progress...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.