Closed heimo88 closed 1 month ago
By the way, your project is excellent. tks!
Yes, if you are using C/C++ webui_set_file_handler
is const void *
, which mean you can return any raw binary data, just be sure to set the size
of your binary data.
If you are using a wrapper (Other than C/C++) then you should re-open issue in the wrapper's repo to make sure the wrapper also support binary.
Great, you're right. I'm using Lazarus, and in its wrapper, it uses Pansichar. I changed it to Pointer, and it worked. Thanks again.
I found that the
webui_set_file_handler
only return the strings, can I return a byte[] or stream for the images or other file like mp3 mp4 etc. ?