React Native
React Native
Decode Base64 to Zip File
See more Base64 Examples
Shows how to decode a baes64 string that is the encoded representation of the bytes that make up a .zip archive. Decodes the base64 and writes the .zip file.Chilkat React Native Downloads
import { BinData } from '@chilkat/react-native'
function chilkatExample() {
const b64 = 'UEsDBBQA ... AAALgQAAAAA';
const zipData = new BinData();
zipData.appendEncoded(b64, 'base64');
try {
zipData.writeFile('qa_output/out.zip');
} catch {
console.log('failed to write Zip file.');
return;
}
}