Add functions to store blob, get blob, directly assign blob to html element (.NET 6 Compatible)#54
Open
Tailslide wants to merge 24 commits into
Open
Add functions to store blob, get blob, directly assign blob to html element (.NET 6 Compatible)#54Tailslide wants to merge 24 commits into
Tailslide wants to merge 24 commits into
Conversation
Very fast but still have to base64 encode values read back.
Working Add method that returns blobs in .NET shared memory bufffer. Very fast but still have to base64 encode values read back.
…/DnetIndexedDb into SharedMemoryBlobReturn
|
Why isn't this merged? |
Author
The author is showing no commits to github for like 9 months it's possible this got abandoned. https://github.com/Tailslide/DnetIndexedDb/tree/newpublish |
|
@Tailslide do you plan to add an issue tracker/discussions for that repository? |
Author
@sveins12 Sure I just added them but I hope @amuste returns at some point so we can merge things back together |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There is also a new WASM test project where you can play with the new functions
Implements Issue #45
Add a binary blob to the store
string AddBlobItem<TEntity>(string objectStoreName, TEntity item, string mimeType, string key = "")Update binary blob in the store
string UpdateBlobByKey<TEntity>(string objectStoreName, TEntity item, string mimeType, string key)Get marshalled base 64 encoded blob from the store (slow!)
ValueTask<string> GetBlobByKey(string objectStoreName, key)Get blob from the store (fast, .NET 6+ ONLY)
ValueTask<byte[]> GetBlobByKey(string objectStoreName, key, int maxBytes)Assign blob directly to HTML element without marshalling into .NET (fast)
ValueTask<string> AssignBlobToElement(string objectStoreName, string key, string elementId, string attribute)