Hi, I am trying to use the Blob API for storing images in couchdb. I followed the docs on https://developer.couchbase.com/documentation/mobile/2.0/guides/couchbase-lite/native-api/attachment/index.html for 2.0DB21 but couldn’t save the image. Then I used a different image (A PNG instead of JPG) and it got saved. I tried with different sizes and everytime JPG images were not getting saved (or maybe problem was with retrieving the imge).
Also in Blob class, getContent() method which should return the byte array is always returning null. getContentStream() is working fine. For JPG images, I was getting an error while converting it to Bitmap using BitmapFactory.