CnPack Forum


 
Subject: DecodeBase64好像有错误
eric
新警察
Rank: 1



UID 41968
Digest Posts 0
Credits 7
Posts 2
点点分 7
Reading Access 10
Registered 2009-3-10
Status Offline
Post at 2009-8-10 17:38  Profile | Blog | P.M. 
DecodeBase64好像有错误

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


Attachment: [Base64测试] Base64Test.zip (2009-8-10 17:38, 47.03 K)
Download count 492
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-8-10 18:21  Profile | Blog | P.M. 
文件内容暂时看不出什么问题。
能否将测试代码贴上来看看?
Top
eric
新警察
Rank: 1



UID 41968
Digest Posts 0
Credits 7
Posts 2
点点分 7
Reading Access 10
Registered 2009-3-10
Status Offline
Post at 2009-8-12 16:33  Profile | Blog | P.M. 
用cnbase64对in.data 编码,再解码出来 的文件比in.data差了一个字节,可以参见out.data
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-8-13 18:19  Profile | Blog | P.M. 
CnBase64的代码中所提供的函数并不直接操作文件,因此文件内容看不出来问题,烦请贴上您调用并且保存文件的具体代码?
Top
 




All times are GMT++8, the time now is 2024-11-23 23:09

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008539 second(s), 10 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP