Webastor - Programming Tips and Tricks

Programming language => C++ => Topic started by: Myles on November 17, 2016, 07:04:54 PM

Title: How can I get a code for b64 to image decoding in c++?
Post by: Myles on November 17, 2016, 07:04:54 PM
Hi everyone, I'd like to ask you a particular problem, how can i get a code for b64 to image decoding in c++? Thank you kindly for giving me your opinion Help.
Title: Re: A code for b64 to image decoding
Post by: Dean on April 30, 2017, 10:26:02 AM
Hi,

Put the image path in a File object, set the encoding to 'BINARY', use myFile.open('r') and retrieve the binary string in a variable: var s = myFile.read();

Then, use base64.js (or similar lib) to convert the string into B64.