Chilkat2-Python
Chilkat2-Python
Transition from Crypt2.Decode to BinData.AppendEncoded
Provides instructions for replacing deprecated Decode method calls with AppendEncoded.Chilkat Chilkat2-Python Downloads
import chilkat2
success = False
crypt2 = chilkat2.Crypt2()
# ...
# ...
encoding = "base64"
# ------------------------------------------------------------------------
# The Decode method is deprecated:
# byteData is a memoryview
byteData = crypt2.Decode("ENCODED_DATA...",encoding)
# ------------------------------------------------------------------------
# Do the equivalent using BinData.AppendEncoded.
bd = chilkat2.BinData()
success = bd.AppendEncoded("ENCODED_DATA...",encoding)
# byteData is a memoryview
byteData = bd.GetData()