Vb.net 用base64编码的PDF,如何解码?

Vb.net 用base64编码的PDF,如何解码?,vb.net,pdf,encoding,base64,decode,Vb.net,Pdf,Encoding,Base64,Decode,我有一个base64格式的编码PDF Dim pdf As String = "" pdf = x.SIOrderPDF(apiKey, UserHash, tablicaZlecen, "pl").pdf 'this method returns a string pdf encoded in base64 这是我的问题,如何解码 我想这就是你所需要的: 为了遵守本答案评论中的要求,我还将上述链接中的所有代码复制到此处: Dim crypt As New ChilkatCrypt2 cry

我有一个base64格式的编码PDF

Dim pdf As String = ""
pdf = x.SIOrderPDF(apiKey, UserHash, tablicaZlecen, "pl").pdf  'this method returns a string pdf encoded in base64

这是我的问题,如何解码

我想这就是你所需要的:

为了遵守本答案评论中的要求,我还将上述链接中的所有代码复制到此处:

Dim crypt As New ChilkatCrypt2
crypt.CryptAlgorithm = "none"
crypt.EncodingMode = "base64"
Dim strBase64 As String
strBase64 = crypt.EncryptStringENC(s)

Text1.Text = Text1.Text & strBase64 & vbCrLf

Dim decoded As String
decoded = crypt.DecryptStringENC(strBase64)

请不要只提供链接答案。As链接可能在将来的任何时候都无法访问。