-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Attachments not working in electron renderer with IndexedDb adapter #1371
Comments
I think we should start with updating the electron example. Then this problem can be reproduced there and be fixed. |
Ah, yes. Sorry, I missed the electron example somehow. I'll see if I can reproduce it there. |
Electron has an Uint8Array instead of a blob. I added a check for this which will transform it to a blob in that case. Please check if that fixes your problem and open another issue for the problem with |
Thanks. The fix works for me. |
Case
bug
Issue
I've got an error when trying to read an attachment in electron renderer process, with
IndexedDB
adapter.Throws:
Versions (from
process.versions
):I managed to get it working for me by commenting out this if block. But then, I got a new error, still related to attachments, when trying to import a database dump with
importDump
.Info
Code
In the following code, the commented line will throw when run in electron renderer thread.
The same code runs fine in a real Chrome.
The same code runs fine in electron with memory adapter.
I've put the code in a minimal electron app for reproduction: https://github.com/rixo/test-rxdb-electron-attachments. Run
npm ci && npm start
to test in electron.The text was updated successfully, but these errors were encountered: