Closed Botsailer closed 1 year ago
on server side encode image data like below and pass the encoded data through socket.io or websocket or any preffered
var imgdata = fs.readFileSync('lol.jpg') const base64Data = imgdata.toString('base64');
set your wallpaper triggering logic accordingly just when calling the function pass encoded data to it
Thanks for the PR. I'll merge this for now I think it will be usefull.
on server side encode image data like below and pass the encoded data through socket.io or websocket or any preffered
var imgdata = fs.readFileSync('lol.jpg') const base64Data = imgdata.toString('base64');
set your wallpaper triggering logic accordingly just when calling the function pass encoded data to it