title: Bitmap is null when tried to fetch image from frame affective
body: <p>I have integrated affectiva library and trying to fetch emotions using camera stream.
  I tried to fetch the bitmap from the frame returned but it always returns null.Below is the code.</p>
  
  <pre><code>  byte[] imageBytes = ((Frame.ByteArrayFrame) frame).getByteArray();
  </code></pre>
  
  <p>We have some 518 kb of data but when converted to image it returns null.</p>
  
  <pre><code> Bitmap bitmap = BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length);
      previewImage.setImageBitmap(bitmap);
  </code></pre>
  
  <p>I even tried the below code but again null bitmap</p>
  
  <pre><code>Bitmap bmp=frame.getOriginalBitmapFrame();
  </code></pre>
  
  <p>Could you please help me to fetch bitmap from the frame?</p>