项目发布之后,图片保存到服务器(成为网络图片):
读取方法如下面所示:
wpf读取网络图片:
private void ViewImage(string fileUri)
{
BitmapImage bitImage = new BitmapImage();
bitImage.BeginInit();
bitImage.UriSource = new Uri(fileUri, UriKind.Absolute);
bitImage.DecodePixelWidth = 300;
bitImage.EndInit();
imgView.Source = bitImage;
}