2
내가 JSON 데이터를 가져 오는하고
는 다시 예를 들어 이미지가져 오는 이미지, 무단 액세스 예외 오류
를 가져올 수있는 링크가있다 거기에 텍스트 상자에 값을 표시했습니다.
public string link = ClassName.variableName;
link
지금 값 http//abc.com/images/1.jpg
를 보유 : 내가 할 수 있도록
BitMapImage MyImage = new BitMapImage(new Uri (link, UriKind.RelativeOrAbsolute));
image1.source = MyImage;
그러나 나는 그것이 "Unauthorized access exception unhandled"오류를 보여준다. 크로스 체크하기 위해 새 프로젝트를 열었고 데이터를 가져 오는 대신 이미지 소스에 직접 링크를 제공하고 이미지가 표시되었습니다.
BitMapImage MyImage = new BitMapImage(new Uri ("http//abc.com/images/1.jpg", UriKind.RelativeOrAbsolute));
image1.source = MyImage;
여기에 문제가 없습니다. 이미지가 표시됩니다.