I'm making a chat applicatin using socket.io. I want user to be able to send image and this image will be uploaded to cloudinary then saved to mongodb. First i get base64 string of image but this base64 text could not send via socket.io. So i converted base64 to buffer then sent this via socket.io but now i dont know what to do. Do you have any tips? Why base64 text could not sent via socket.io?
MY CODE WHEN I TRIED TO SEND AS BASE 64
socket.emit("send message", here will be the result of file reader)