DataFlex
DataFlex
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 DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
String sB64
Handle hoZipData
Move False To iSuccess
Move "UEsDBBQA ... AAALgQAAAAA" To sB64
Get Create (RefClass(cComChilkatBinData)) To hoZipData
If (Not(IsComObjectCreated(hoZipData))) Begin
Send CreateComObject of hoZipData
End
Get ComAppendEncoded Of hoZipData sB64 "base64" To iSuccess
Get ComWriteFile Of hoZipData "qa_output/out.zip" To iSuccess
If (iSuccess <> True) Begin
Showln "failed to write Zip file."
Procedure_Return
End
End_Procedure