110,571
社区成员
发帖
与我相关
我的任务
分享
FileStream fs = new FileStream(pdfpath,FileMode.Open,FileAccess.Read);
byte[] fileCount = new byte[fs.Length];
fs.Read(fileCount, 0, fileCount.Length);
fs.Close();
Decrypt(ref fileCount);
axFoxitPDFSDK1.OpenBuffer(fileCount, fileCount.Length, "");
private void Decrypt(ref byte[] context)
{
byte mis = 23;
for (int i = 0; i < context.Length; i++)
{
context[i] = (byte)(context[i] ^ mis);
}
}
这只是个解密方法而已,不用ref问题也还是一样,我试过GC强制垃圾回收,也还是一样