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...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.