Sample code for 30+ languages & platforms
Dart

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 Dart Downloads

Dart
import 'package:chilkat/chilkat.dart';

void main() {
  final b64 = 'UEsDBBQA ... AAALgQAAAAA';

  final zipData = CkBinData();
  zipData.appendEncoded(b64, 'base64');
  try {
    zipData.writeFile('qa_output/out.zip');
  } on ChilkatException {
    print('failed to write Zip file.');
    return;
  }
}