title: How to convert byte[] in Android to uint8_T array in C?
body: <p>I'm planning to take a picture by camera phone (Android) then pass it to C function through JNI. The C function is generated by MATLAB Coder.</p>
  <p>Here is the header of the generated C function:</p>
  <pre><code>real_T detection(const **uint8_T** OriginalImage[28755648])
  </code></pre>
  <p>Here is the data type of the image:</p>
  <pre><code> @Override
      public void onPictureTaken(**byte[] data**, Camera camera) {.....}
  </code></pre>
  <p>Question: How to convert byte[] to uint8_T array?
  I found <a href="https://stackoverflow.com/a/4083678/3020258">how to convert byte[] to jbyte *</a>.. but I don't know how to deal with uint8_T?</p>
  <p>I know only Java but not C.</p>
  <p>Regards,</p>