Board logo

Subject: DecodeBase64好像有错误 [Print This Page]

Author: eric    Time: 2009-8-10 17:38     Subject: DecodeBase64好像有错误

Decodebase64好像有错误
我用encodebase64对indata编码 再用 base64decode解码为out.data 两个相差一个字节。

Attachment: [Base64测试] Base64Test.zip (2009-8-10 17:38, 47.03 K) / Download count 417
http://bbs.cnpack.org/attachment.php?aid=673
Author: Passion    Time: 2009-8-10 18:21

文件内容暂时看不出什么问题。
能否将测试代码贴上来看看?
Author: eric    Time: 2009-8-12 16:33

用cnbase64对in.data 编码,再解码出来 的文件比in.data差了一个字节,可以参见out.data
Author: Passion    Time: 2009-8-13 18:19

CnBase64的代码中所提供的函数并不直接操作文件,因此文件内容看不出来问题,烦请贴上您调用并且保存文件的具体代码?




Welcome to CnPack Forum (http://bbs.cnpack.org/) Powered by Discuz! 5.0.0