I currently have a program running that sends an OpenCV to my Node server by sending the matrix values along with the number of rows and columns. I want to base64 encode this image on the Node server so I can view the image on the front end. I tried doing a .toString('base64') on the matrices values but this didnt work. My question is related to this question OpenCV cv::Mat to std::ifstream for base64 encoding but instead of doing this in C++ Id like to do it on Node.
Heres what the matrices values look like when comma separated.