简体   繁体   English

如何从Java中受密码保护的文件夹中下载文件

[英]how can I download a file from a password protected folder in java

want to download a file from a online server and I don't want it to be acessible outside my application so I have protected the folder using the control panel , now I need to know how can I acccess and download that file in my java program ? 我想从在线服务器上下载文件,但我不希望它在我的应用程序外部访问,因此我已经使用控制面板保护了该文件夹,现在我需要知道如何访问该文件并将其下载到我的Java程序中? Its an android app that downloads a database. 它是一个可下载数据库的android应用。 My situation is that I have two databases, one for the free app and another for the paid version.And I dont want people downloading the paid version to the pc and using them on the free version app.Is there another easy way ? 我的情况是我有两个数据库,一个用于免费应用程序,另一个用于付费版本。我不希望人们将付费版本下载到PC上并在免费版本应用程序上使用它们,还有另外一种简单的方法吗?

Please see the Apache HttpClient Examples, Client authentication . 请参阅Apache HttpClient示例,客户端身份验证 Android ships with these libraries by default. Android默认随附这些库。

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

相关问题 如何使用Selenium框架从受用户名和密码保护的网站上下载文件? - How can I download a file from a site that is protected with a username and password, using the Selenium framework? 如何使用java从gcp存储桶下载文件夹? - How can i download folder from gcp bucket using java? 使用 java 应用程序在文件资源管理器中打开受密码保护的文件夹 - Open password protected folder in file explorer using java app 如何在Java中检查文件是否受密码保护/加密 - How to check if a file is password protected /encrypted or not in java 如何在Java中读取受密码保护的.xls文件? - How to read password protected .xls file in java? 如何在Java中打开受密码保护的docx文件? - How to open password protected docx file in java? 如何在Java中创建受密码保护的zip文件夹? - How to create a password-protected zip folder in Java? 如何通过https从受密码保护的URL下载目录? - How to download a directory from a password protected URL over https? 我如何解密从Java下载的SFTP文件中的密码 - How can I decrypt a password in SFTP file downloading from java 我可以使用Webdriver java在“多个”文件夹中下载单个文件吗? - Can I download a single file in Multiple folder using Webdriver java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM