如何在azure中创建或使用本地文件夹 [英] How to create or use local folder in azure

查看:82
本文介绍了如何在azure中创建或使用本地文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从SFTP服务器下载文件,下载的文件存储到本地文件夹说D:\ Data\tempData.csv

我必须读取数据来自本地文件并在我的应用程序中使用以进行其他数据操作。



此作业是使用Azure Web作业中的Web挂钩调度程序创建的。



我无法将文件下载到azure然后从那里读取。



有人可以帮我使用临时数据的位置相当于天蓝环境中本地系统中的D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\然后从那里阅读。



先谢谢。



我试过的:



尝试使用SSH.NET DLL将文件从SFTP下载到本地文件夹

再次从本地文件夹读取到我的应用程序

尝试查看BLOB存储使用情况h未获批准Tech Arch。

I have a required to download a file from SFTP server and the file downloaded is stored to local folder say "D:\Data\tempData.csv"
I have to read the data from local file and consume in my application for other data manipulation.

This job is created using web hooks scheduler in Azure Web Jobs.

I am unable to download file to azure and then read from there.

Can some one help me to use a location for temp data which is equivalent to "D:\Data\tempData.csv" in local system in the azure environment.

Suggest a place in azure where can I download file and then to read from there.

Thanks in Advance.

What I have tried:

Tried using SSH.NET dll to download file from SFTP to local folder
Again to read from local folder to my application
Tried looking at BLOB storage usage, which was not approved Tech Arch.

推荐答案

在Azure环境中,Web作业存储在其本地文件夹中,其中称为D:\\ \\ homeD:\ local是Web钩子使用的本地文件夹。我需要使用一个文件夹临时使用从SFTP服务器下载文件,并再次从该本地临时位置文件中读取文件并在我的应用程序中使用它。



我用D:\local\Temp作为临时文件夹,在检查文件夹存在后由代码创建,然后在创建文件夹后代码将下载文件从服务器和商店到这个位置,然后从同一位置读取并从该临时文件夹中删除文件。





感谢Afzal &安培;所有支持的人。
In Azure Environment, the "Web-Jobs" are stored in its local folder where known as "D:\home" and "D:\local" is the local folder used by the Web-hooks. I was in need to use a folder for temporary usage of downloading a file from SFTP server and again read the file from that local temporary location file and consume it in my application.

I have used the "D:\local\Temp" as the temporary folder which is created by the code after checking the folder existence, then after creating the folder the code will download a file from server and store to this location and then read from the same location and delete the file from that temporary folder.


Thanks for Afzal & all those who supported.


这篇关于如何在azure中创建或使用本地文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆