简体   繁体   English

在本地计算机上:如何使用Javascript和ActiveX下载和保存文件?

[英]On a local machine: How can I download and save a file using Javascript and ActiveX?

This is a binary file. 这是一个二进制文件。 I would like to download and save a file with Javascript. 我想使用Javascript下载并保存文件。 This is all happening on a local machine. 这都是在本地计算机上发生的。 Is this possible? 这可能吗? Thanks in advance! 提前致谢!

Do you mean silent save without user interaction? 您的意思是没有用户交互的静默保存吗? If yes, I'm afraid there will be no reliable way due to security reasons. 如果是,由于安全原因,恐怕没有可靠的方法。 Otherwise, you can use some ActiveX download component. 否则,您可以使用一些ActiveX下载组件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从url下载图像并将其保存到使用javascript的本地目录中? - How can i download image from the url and save it to a local directory using javascript? 我如何让用户使用javascript在其本地计算机上选择一个文件夹(而非文件)? - How can I have a user select a folder (not a file) on their local machine using javascript? 本地 JavaScript 可以在同一台本地机器上编辑/保存文件吗? 如何使用 jQuery? - Can local JavaScript edit/save files on same local machine? How using jQuery? 如何使用javascript和ActiveX打开,修改和保存文件? - How to open, modify and save a file with javascript and ActiveX? 如何使用activex和javascript创建文件或远程文件? - How can I create a file or a remote file with activex and javascript? 如何使用javascript中的Blob创建文件并将其保存在本地系统中? - How can i create a file and save it in local system using Blob in javascript? JavaScript 如何保存到本地文件? - How can JavaScript save to a local file? 使用 javascript 生成 .txt 文件而不使用 activex 和本地服务器 - Generate .txt file with javascript without using activex and local server 使用JavaScript / Jquery将文本文件下载/更新创建到本地客户端计算机中的特定位置 - Create text file download/update into a particular location in local client machine using JavaScript/Jquery 如何使用HTML和Javascript将文件上传到本地计算机中的特定位置 - How to upload a file to a specific location in the local machine using HTML and Javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM