久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

我們可以使用 C# 在 FTP 服務器中解壓縮文件嗎

Can we unzip file in FTP server using C#(我們可以使用 C# 在 FTP 服務器中解壓縮文件嗎)
本文介紹了我們可以使用 C# 在 FTP 服務器中解壓縮文件嗎的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我可以在 FTP 中提取 ZIP 文件并使用 C# 將此提取的文件放在同一位置嗎?

Can I extract the ZIP file in FTP and place this extracted file on the same location using C#?

推薦答案

不可能.

FTP 協議中沒有用于解壓縮服務器上文件的 API.

There's no API in the FTP protocol to un-ZIP a file on a server.

但是,除了 FTP 訪問之外,還具有 SSH 訪問的情況并不少見.如果是這種情況,您可以通過 SSH 連接并在服務器上執行 unzip shell 命令(或類似命令)來解壓文件.
請參閱 C# 發送簡單的 SSH 命令.

Though, it's not uncommon that one, in addition to an FTP access, have also an SSH access. If that's the case, you can connect with the SSH and execute the unzip shell command (or similar) on the server to decompress the files.
See C# send a simple SSH command.

如果需要,您可以使用 FTP 協議下載提取的文件(盡管如果您有 SSH 訪問權限,您也將擁有 SFTP 訪問權限.然后,使用 SFTP 而不是 FTP.).

If you need, you can then download the extracted files using the FTP protocol (Though if you have the SSH access, you will also have an SFTP access. Then, use the SFTP instead of the FTP.).

一些(極少數)FTP 服務器提供 API 以使用 SITE EXEC 命令(或類似命令)執行任意 shell(或其他)命令.但這真的非常罕見.你可以像上面的 SSH 一樣使用這個 API.

Some (very few) FTP servers offer an API to execute an arbitrary shell (or other) commands using the SITE EXEC command (or similar). But that's really very rare. You can use this API the same way as the SSH above.

如果您想在本地下載和解壓縮文件,您可以在內存中進行,而無需將 ZIP 文件存儲到物理(臨時)文件中.有關示例,請參閱如何將存儲在 FTP 服務器上的 ZIP 文件中的數據導入 C# 中的數據庫.

If you want to download and unzip the file locally, you can do it in-memory, without storing the ZIP file to physical (temporary) file. For an example, see How to import data from a ZIP file stored on FTP server to database in C#.

這篇關于我們可以使用 C# 在 FTP 服務器中解壓縮文件嗎的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進行身份驗證并跨請求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權不起作用)
ASP Core Azure Active Directory Login use roles(ASP Core Azure Active Directory 登錄使用角色)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護進程或服務器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問令牌和刷新令牌) - IT屋-程序員軟件開發技
.Net Core 2.0 - Get AAD access token to use with Microsoft Graph(.Net Core 2.0 - 獲取 AAD 訪問令牌以與 Microsoft Graph 一起使用)
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調用時 Azure KeyVault Active Directory AcquireTokenAsync 超時)
主站蜘蛛池模板: 涩涩视频网站在线观看 | 亚洲成人免费网址 | 国产亚洲区 | 天天操,夜夜爽 | 365夜爽爽欧美性午夜免费视频 | 中文字幕日韩欧美一区二区三区 | 欧美精品在线一区二区三区 | 视频在线一区 | 狠狠操电影 | 免费观看成人鲁鲁鲁鲁鲁视频 | 日本欧美国产在线 | 国产精品欧美一区二区三区不卡 | 日韩一区二区在线视频 | 精品视频一区二区三区四区 | 亚洲免费av一区 | 精品一区精品二区 | 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 国产视频1 | 欧美一区二 | 黄色毛片视频 | 亚洲国产精品99久久久久久久久 | 国产精品日产欧美久久久久 | 国产精品观看 | 国产成人精品一区二区三区视频 | 国产精品久久久久久久久久免费 | 99在线精品视频 | 欧美网站一区 | 国产精品人人做人人爽 | 亚洲欧美日韩在线不卡 | 成人av免费在线观看 | 久久久激情 | 国产成人精品一区二区三区视频 | 免费一区在线 | 狠狠综合久久av一区二区小说 | 欧美二区三区 | 在线婷婷 | 中文字幕亚洲一区二区va在线 | 一区二区三区小视频 | 亚洲国产乱码 | 久久www免费视频 | 美女在线视频一区二区三区 |