Couchbase-Ecosystem / cbl-ionic

Ionic Capacitor plugin for Couchbase Lite Enterprise >= (3.2)
https://cbl-ionic.dev/
Apache License 2.0
3 stars 1 forks source link

Document's getBlob() does not return the data of the blob if content_type is specified #26

Closed azaddhirajkumar closed 5 months ago

azaddhirajkumar commented 5 months ago

The getBlob() method of the Document class does not return the blob's data even if the content_type is set.

Screenshot 2024-06-13 at 8 19 26 PM
khanium commented 5 months ago

Team, we are hitting this issue. Is there any workaround?

biozal commented 5 months ago

This is fixed in 0.1.9 - @azaddhirajkumar can you please re-run your tests to validate. I updated the Example app Get Document and Editor pages to inject in multiple blobs on a single document and then the Get Document page will get the content if it's a text blob. Get should now properly return hello world for the text content on any document from the Editor page if you select a generated document that has a blob type. As long as you get blob content from the Javascript document's getBlob method, I've validated this works in both Android and iOS.

https://github.com/Couchbase-Ecosystem/cbl-ionic/assets/80424345/09ac8040-5524-4aaa-b0a7-3d469edfeb86

biozal commented 5 months ago

Fixed in 0.1.9