在Java Script中读取加密文件。 [英] Reading encrypted files in Java Script.

查看:92
本文介绍了在Java Script中读取加密文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想以加密的形式(以某种文件的形式)存储数据,之后我希望在Java Script中读取加密数据,并希望将该加密缓冲区传递给一些Active X组件。


我的第一个问题我应该如何在java Script中读取/加载文件并阅读其内容。?

也可以用javascript解析数据?


问候

Wanni。

Hi All,
I want to store data in a encypted form (in form of some file) and later on i want to read encrypted data in Java Script and want to pass that encrypted buffer to some Active X component.

My first question how should i read/load a file in java Script and read its contents.?
Also is it possible to parse data in javascript?

Regards
Wanni.

推荐答案

如果文件打开客户的机器你运气不好(Javascript不允许文件系统访问)。要访问服务器上的文件,您可以使用AJAX。但是如果你做服务器端的东西,也许你根本不需要Javascript for ActiveX(除了ActiveX只能在IE中工作)。


问候
if the file is on the client''s machine you''re out of luck (Javascript isn''t allowed file system access). to access a file on the server you can use AJAX. but if you do server side stuff, maybe you don''t need Javascript at all for ActiveX (besides the fact that ActiveX only works in IE).

regards


感谢您的回复。

是的,我的加密文件驻留在服务器上,这意味着我必须使用AJAX来读取该文件的内容。


其实我的目的是发送加密数据到ActiceX的功能。所以其他可能性我认为我可以直接在ActiveX中访问加密文件内容。因此,为了实现这一点,我必须获得ActiceX中的Web页面URL,并且通过该URL我可以获得文件存在的路径,之后我可以直接在ActiveX中访问该文件的内容。

这可以用于ActiveX吗?


问候,

wanni。
Thanks for your response.
Yeah my encrypted file resides on server, that means i have to use AJAX for reading contents of that file.

Actually my purpose is to send encrypted Data to ActiceX functions. So other possibility i am thinking that i can access encrypted file contents directly in ActiveX. So in order to achieve this i have to get the Web Page URLin ActiceX and through that URL i can get the path where file is present and after that i can access the contents of that file directly in ActiveX.

Can this is possible in ActiveX?

Regards,
wanni.


@wanni


遗憾的是我无法告诉你,因为
  • 我没有IE
  • 不支持ActiveX
  • 在我看来,IE浏览器是最糟糕的浏览器


这篇关于在Java Script中读取加密文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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