title: c++ OpenCV : Convert mat to base64 and vice versa
body: <p>There is anyway to convert opencv mat object to base64.</p>
  
  <p>I was using the below url for base64 encoding and decoding: </p>
  
  <p><a href="http://www.adp-gmbh.ch/cpp/common/base64.html" rel="noreferrer">http://www.adp-gmbh.ch/cpp/common/base64.html</a></p>
  
  <p>Below is the code snippet:</p>
  
  <p>const unsigned char* inBuffer = reinterpret_cast(image.data);</p>