我可能在这里做了一些非常明显错误的事情。我在UploadFromStream()
中寻找UploadFromFile()
,Microsoft.WindowsAzure.Storage
。我只能找到UploadFromStreamAsync()
和UploadFromFileAsync()
。
来自评论:我使用的是Microsoft.WindowsAzure.Storage版本6.2.0。我正在尝试构建Windows IoT核心通用应用。很简单,我试图将图像从Raspberry Pi上传到Azure。
答案 0 :(得分:2)
Our Universal library uses an async paradigm, so you'll have to use the async APIs. This is as intended -- is there a problem you have with the Async methods?
The sync methods are for .NET 4.0+ (the desktop targets).