Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone 7 正在将图像从Windows Azure检索到Windows Phone 7_Windows Phone 7_Azure Storage_Azure Storage Blobs - Fatal编程技术网

Windows phone 7 正在将图像从Windows Azure检索到Windows Phone 7

Windows phone 7 正在将图像从Windows Azure检索到Windows Phone 7,windows-phone-7,azure-storage,azure-storage-blobs,Windows Phone 7,Azure Storage,Azure Storage Blobs,我成功地将一张图像从照相机卷上传到我的Windows Azure Blob存储中,现在我想从存储中检索到Windows Phone 7。这取决于你想做什么 要将图像显示为应用程序的一部分,请执行以下操作: 将图像元素添加到XAML的某处: <Image x:Name="MyImage" Width="100" Height="125"/> 将映像的源设置为BLOB存储中映像的URL myImage.Source = new BitmapImage(new Uri(imageUrl))

我成功地将一张图像从照相机卷上传到我的Windows Azure Blob存储中,现在我想从存储中检索到Windows Phone 7。

这取决于你想做什么

要将图像显示为应用程序的一部分,请执行以下操作:

将图像元素添加到XAML的某处:

<Image x:Name="MyImage" Width="100" Height="125"/>
将映像的源设置为BLOB存储中映像的URL

myImage.Source = new BitmapImage(new Uri(imageUrl));
或者,要下载图像并对其进行处理,请执行以下操作:


用于下载图像。你会得到一条小溪。您对流所做的操作取决于您下载图像后对图像所做的操作。

我是否需要为此检索或上传代码的附加组件创建一个新的C代码?在不了解有关您的项目以及图像下载与图像上传之间的关系的详细信息的情况下,很难说下载代码应该放在哪里。我遵循以下步骤:
myImage.Source = new BitmapImage(new Uri(imageUrl));