I am working with images in c++, i have a program that capture a image the result data is this
then when a write the image in other folder I get this result:
CFileException ex;
CFile file;
file.Open((LPCTSTR)"test", CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate, &ex);
file.Write(image.puc_image, lenOfImage)
when I open the file with the note.
so basically I want to manipulate the data that a write and convert to base 64 and then send to an API. but I never see all the data when a read the file. so the convention of base64 don't output correctly the data.
Aucun commentaire:
Enregistrer un commentaire