【发布时间】:2018-10-30 11:12:02
【问题描述】:
我正在使用 Azure 存储 blob 来存储图像,并尝试在我的 Xamrin.form 应用程序中显示它。我在github上找到了一个简单的教程和代码。
我已按照步骤成功实施,并在 azure storage blob 上创建了一个帐户。
问题是:我可以看到文件名但看不到“图像”
这是错误:
read started: <Thread Pool> #9
[0:] HTTP Request: Could not retrieve https://xxxxxx.blob.core.windows.net/yyyy/kakashi.jpg, status code NotFound
[0:] ImageLoaderSourceHandler: Could not retrieve image or image data was invalid: Uri: https://lxxxxxx.blob.core.windows.net/yyyy/kakashi.jpg
Thread finished: <Thread Pool> #4
教程如下: click to see
这里是 Github: click to see
当我将 Urlof 图片放入时出现此错误 (https://lxxxxxx.blob.core.windows.net/yyyy/kakashi.jpg ) 在我的浏览器上:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>ResourceNotFound</Code>
<Message>
The specified resource does not exist. RequestId:97933c69-a01e-014f-6669-f0502e000000 Time:2018-05-20T18:33:28.4774584Z
</Message>
</Error>
【问题讨论】:
-
如果您的浏览器无法获取图像,那么 xamarin 似乎与您的问题完全不相关。请考虑使用MVCE 编辑它。
标签: azure xamarin.forms azure-sql-database azure-storage azure-blob-storage