Unity camera plugin save image data as bytes

  1. Encode the photo to the byte array
  2. store the imgData in the byte array in the active case
  1. Create a new Texture2D
  2. Use the LoadImage method to load an image into a texture, in this case I am using the byte array set up in step 1
  3. assigning the reconstructed image as the image texture in the panel.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store