Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Blob Documentation to include example for getBlobContent #38

Open
biozal opened this issue Jun 21, 2024 · 0 comments
Open

Update Blob Documentation to include example for getBlobContent #38

biozal opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@biozal
Copy link
Contributor

biozal commented Jun 21, 2024

Per the email I sent out, the blob documentation is missing the code example and explanation on how to get the blob's content from a given document.

Review the code that decodes a blob attachment that is text here:
https://github.com/Couchbase-Ecosystem/cbl-ionic/blob/main/example/src/pages/documents/GetDocument.tsx#L34

The blob for text is encoded here:
https://github.com/Couchbase-Ecosystem/cbl-ionic/blob/main/example/src/pages/documents/EditDocument.tsx#L74

Also the original documentation shows an example of doing this via images - although it uses some hack window root scope example that we shouldn't be including in our code, but the text example below the code is good:
https://ionic.io/docs/couchbase-lite/usage#blobs

@biozal biozal converted this from a draft issue Jun 21, 2024
@biozal biozal added the documentation Improvements or additions to documentation label Jun 21, 2024
@azaddhirajkumar azaddhirajkumar moved this from Ready to In progress in Couchbase Lite Ionic Jun 24, 2024
@azaddhirajkumar azaddhirajkumar moved this from In progress to In review in Couchbase Lite Ionic Jun 24, 2024
@biozal biozal moved this from In review to Done in Couchbase Lite Ionic Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done
Development

No branches or pull requests

2 participants