Sample code for 30+ languages & platforms
Lianja

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

Lianja
llSuccess = .F.

lcB64 = "UEsDBBQA ... AAALgQAAAAA"

loZipData = createobject("CkBinData")
llSuccess = loZipData.AppendEncoded(lcB64,"base64")
llSuccess = loZipData.WriteFile("qa_output/out.zip")
if (llSuccess <> .T.) then
    ? "failed to write Zip file."
    release loZipData
    return
endif



release loZipData