MemoryStream或其他解决方案. [英] MemoryStream or other solution..

查看:106
本文介绍了MemoryStream或其他解决方案.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我有一个winform可以加密和解密文件...没关系,

但是问题是它将解密的文件保存到硬盘上,然后我就可以使用它了!
有什么方法可以重复使用解密后的文件而不将其保存在硬盘中(用户可以看到解密后的文件就是问题!)
例如,我可以将文件保存到内存(RAM)并将其作为流使用吗? 我已经搜索了很多,但是我发现只有memorystream(..).如果答案是肯定的,那我该如何使用它呢!!
我将不胜感激,
和我的英语不好对不起.

Hi friends,

I have a winform that encrypt and decrypt a file... it''s OK,

BUT the problem is it saves the decrypted file to the hard disk, and then i could use it !
Is there any way to reuse the decrypted file without saving it in hard disk ( that the user can see the decrypted file is the problem ! )
for example can i save the file to memory (RAM) and use it as an stream !?
i have searched alot, and i found just memorystream(..).if it''s the answer then how should i use it !!?
i''ll appreciate any help,
and sorry for my bad english.

推荐答案

http://www.dotnetperls.com/memorystream [ http://msdn.microsoft.com/zh-我们/library/system.io.memorystream%28v=vs.71%29.aspx [ http://blogs.msdn. com/b/tolong/archive/2007/11/15/read-write-xml-in-memory-stream.aspx [
http://www.c-sharpcorner.com/uploadfile/ashish1/memorystream10272005214644pm/memorystream.aspx[^]

http://www.dotnetperls.com/memorystream[^]

http://msdn.microsoft.com/en-us/library/system.io.memorystream%28v=vs.71%29.aspx[^]

http://blogs.msdn.com/b/tolong/archive/2007/11/15/read-write-xml-in-memory-stream.aspx[^]


这篇关于MemoryStream或其他解决方案.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆