繁体   English   中英

Azure网站将文件写入网络驱动器

[英]Azure Website Writing file to a network Drive

我有一个当前在本地IIS计算机上运行的服务,该服务将使用以下代码将文件写入指定的目录:

//Creating the filepath that is needed
string FilePath = FolderPath.Replace("'", "") 
                + FileName.Replace("'", "").Replace(" ", "")
                  .ToString();

//Writing the file to the correct path
File.WriteAllBytes(FilePath, fileTransferDump.FileBinary);

当我切换到Azure网站时,如何使系统写入要写入的文件路径。

基本上,我如何使Azure网站写入网络共享。 这只是一个普通的Azure网站。

Azure网站无法使用传统的Windows文件共享写入离线资源。 最好的选择是将所有这些逻辑包装在自定义库中,该库将这些文件写入重定向到Azure Blob存储。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM