簡體   English   中英

如何使用 ASP.NET CORE 3 在 Linux (Debian) 上保存圖像

[英]How to save image on Linux (Debian) using ASP.NET CORE 3

我將不得不完成這個新任務,使用 ASP.NET Core 3 將圖像保存在 Linux (Debian) 服務器上。知道怎么做。 最佳實踐是什么? 歡迎任何建議。

謝謝

如果您提到的 blob 是 azure blob storage,您可以根據需要查看以下解決方案。

1 .如果你想使用 asp.net 核心將圖像保存到 azure blob 存儲 -> 然后從 blob 存儲,將其保存到 linux 文件系統。

You can first install this nuget package Microsoft.Azure.Storage.Blob to your asp.net core, and refer to this link for saving images to azure blob storage via code( Note that this code is for this older package WindowsAzure.Storage , you need to稍作修改)。 當圖像存儲在 azure blob 存儲中時,您可以使用blobfuse到 map blob 存儲到您的 linux 服務器。

2 .If you just want to directly save images from asp.net core to linux server, then you should setup a ftp server in the linux server, then directly save images to that linux via ftp.

希望能幫助到你。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM