久久久久久久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 超時)
主站蜘蛛池模板: 亚洲精品一二三 | 日日操日日干 | 97伦理电影| 亚洲天堂免费在线 | 日韩精品一区二区三区中文在线 | 婷婷开心激情综合五月天 | 91精品国产综合久久久久蜜臀 | 久草视| 成人啊啊啊 | 日日夜夜精品视频 | 免费的一级视频 | 国产高清免费 | hitomi一区二区三区精品 | 国产精品久久久久久久岛一牛影视 | 欧美性一区二区三区 | 国产精品欧美一区二区三区不卡 | 久久久久亚洲精品 | 欧美成人免费在线 | 亚洲精品一区在线观看 | 龙珠z国语版在线观看 | 免费看国产一级特黄aaaa大片 | 精品乱人伦一区二区三区 | 亚洲精品电影网在线观看 | 久久九七 | 一区二区三区视频在线观看 | 国产精品一区二区久久久久 | 亚洲国产精品久久久 | www国产成人免费观看视频,深夜成人网 | www.久久.com| 中文字幕韩在线第一页 | 免费一级片 | 国产视频二区在线观看 | 黄色片网此| 亚洲伊人久久综合 | 欧美影院 | 91精品国产91久久久久福利 | 日本精品一区二区三区四区 | 深夜福利亚洲 | 亚洲一区二区三区在线 | 国产精品久久久久久久久久 | 精品福利在线视频 |