-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Why no BlobItem? #803
Comments
The question is more "Why would we need a
|
@mgautierfr So it's straight to write a string, how to straightly write a blob (like a png content for example)? Do I need to create a a new dedicated contentProvider? |
What do you means by "write" a string ?
[*] There is just a trap, you have to use the version "4" of the constructor (in this doc) and not the version "5" as the png content may contain If you don't want to put your content in a string, yes, you have to create a |
@mgautierfr Putting a blob in a string is a hack. A string is not (only) a char*. Actually we, with @kelvinhammond are a bit lost on node-libzim because this is unclear. We have tried to put blob in in the |
This is probably because your create the string with |
If you have a data and a size, you can simply create a contentProvider on a string using: |
Searching how to write blobs, i wonder why there is no
BlobItem
andBlobProvider
?! https://libzim.readthedocs.io/en/latest/api/classzim_1_1writer_1_1ContentProvider.html#exhale-class-classzim-1-1writer-1-1contentproviderThe text was updated successfully, but these errors were encountered: