【问题标题】:PDF encoded in base64, how to decode it?以base64编码的PDF,如何解码?
【发布时间】:2014-08-25 07:19:43
【问题描述】:

我有一个 base64 编码的 PDF。

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

这是我的问题,如何解码?

【问题讨论】:

    标签: vb.net pdf encoding base64 decode


    【解决方案1】:

    我想这就是你所需要的:http://www.example-code.com/vb/base64-encode-decode.asp

    为了遵守这个答案的评论中写的要求,我还将上面链接中的所有代码复制到这里:

    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)
    

    【讨论】:

    • 请不要提供仅链接的答案。因为将来可能无法访问链接。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-13
    • 2017-05-17
    • 1970-01-01
    • 2015-10-09
    • 2015-06-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多