1. 程式人生 > >[c++]base64編解碼 and image

[c++]base64編解碼 and image

 

 

 

                                                //½«Í¼ÏñתΪbase64¸ñʽ
                                                vector<uchar> vecImg;                               //Mat ͼƬÊý¾Ýת»»Îªvector<uchar>  
                                                vector<int
> vecCompression_params; vecCompression_params.push_back(CV_IMWRITE_JPEG_QUALITY); vecCompression_params.push_back(90); imencode(".jpg", out_roi_resize, vecImg, vecCompression_params); vector
<int>().swap(vecCompression_params); std::string imgbase64 = base64_encode(vecImg.data(), vecImg.size()); //ʵÏÖͼƬµÄbase64±àÂë

 

 

1.

https://blog.csdn.net/sky04/article/details/6881649

2.

https://blog.csdn.net/wushuangge/article/details/80104152

3.

https://blog.csdn.net/tt_ren/article/details/53227900