简体   繁体   中英

Azure WebJob temp folder

Is there an Azure WebJobs preferred mechanism to obtain a local storage folder/path for processing my blob's data (a sqlite db)? I can get the stream, but need to write it to disk so that Sqlite can open a connection to it.

I know RoleEnvironment.GetLocalResource is meant to be used with WebRoles... is there an equivalent for WebJobs?

You can use your temporary directory, you can find it as an environment variable called TEMP , usually it'll be under C:\\DWASFiles\\Sites{sitename}\\Temp .

One thing to note is that the maximum size allowed there is 500MB for free/shared sites ( see documentation ), for standard it's much higher (~200GB which is shared between sites in that instance).

Also maybe trivial but the temporary directory is temporary (will probably be removed when the site is recycled) and one instance cannot see another's temporary directory.

对于大小调整,免费层和共享层获得1GB空间,基本站点获得10GB,标准站点获得50GB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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