Currently I'm using Python Websockets as a server and using Pure JS as the client. I want to be able to read an image in python, convert it into a data type like Base64 which is transferred to the client in JS, and decode that image into a readable format that I can use canvas for.
Asked
Active
Viewed 103 times
1
-
[Python Image to Binary](https://stackoverflow.com/questions/54784597/how-to-read-the-file-and-convert-it-to-a-binary-image-in-python) then send the string to JS through the websockets – darklightcode Sep 02 '21 at 11:40
-
@darklightcode What functions do I use for JS to decode it? – Joy Singh Sep 02 '21 at 19:40