Replies: 2 comments 4 replies
-
I have already taught about this, but the inverse, sends binary data from UI to backend. Thankfully, the original developer of webui set the communication in binary mode since the beginning, so it's easy for us to add a new command in However, for now, this should be a new requested feature. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Implemented in C, soon will be added to the Golang wrapper. C unsigned char buffer[] = {0x41, 0x42, 0x43};
webui_send_raw(window, "my_js_function", buffer, 3); JS function my_js_function(buf){
// buf is a Uint8Array[0x41, 0x42, 0x43]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
is there some example available that shows how binary data is submitted to JavaScript using go backend? Specifically, I need a file opened by golang to be submitted as UInt8Array or Array of bytes. I want to avoid any conversation to string or json.
Beta Was this translation helpful? Give feedback.
All reactions