-
Notifications
You must be signed in to change notification settings - Fork 10.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
Support byte-array transfer in JS Interop #21877
Comments
The error I get in the console is this:
|
Thanks for contacting us. byte arrays are not yet supported when doing interop. We will consider adding support for it in the future. |
And to clarify why, it's because JS interop uses JSON as the wire format, and JSON has no standard way to represent byte arrays. You can send/receive base64 encoded byte arrays today. We'll look into automatic handling of raw byte data in the future. |
@SteveSandersonMS when I use |
In that case I think your issue is unrelated, because there's nothing special or unusual about passing strings via JS interop - that has always worked. I suspect some other code on either the .NET side or the JS side is throwing, so I'd recommend looking at your server-side console output. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Thanks for contacting us. |
Describe the bug
I am using Quaggajs to read barcodes and want to the image data from the canvas, but when I do this the blazor client disconnects and the JsInterlop throws a canceled task exception. I assume it's because the data is too large?
To Reproduce
This is the code I am using
Further technical details
dotnet --info
Visual studio 2019 professional 16.4.2
The text was updated successfully, but these errors were encountered: