2014-06-16 2 views
0

저는 C#에서 LiveSDK를 사용하고 있습니다. 이 링크를 Image (Source 속성) 컨트롤에 직접 넣으려면 지정된 이미지 파일에 대한 URL (예 : https://onedrive.live.com/embed?cid=1ED5694B634A1579&resid=1ED5694B634A1579%21685&authkey=ANQwPScWiCxbILY)을 가져 오는 방법이 있습니까? OneDrive 파일에서 Stream을 다운로드하고 BitmapImage로 설정하여 Image 컨트롤에 저장하려고합니다.OneDrive에서 이미지 URL 가져 오기

OneDrive 웹 앱에서 선택한 파일의 URL을 만들 수 있지만 SDK에 이러한 기능이 있는지 여부는 알 수 없습니다.

답변

1

OneDrive에서 이미지를 가져오고 사용하는 방법을 보여주는 MSDN 샘플 페이지의 좋은 예가 있습니다.

Photo Sky SampleThis sample demonstrates how to use the LiveSDK for pulling images from SkyDrive. In this sample you will learn how to use LiveSDK and request consent from the user to access his SkyDrive files and display the images in a Metro style application.

출처 : PhotoSky - SkyDrive Sample

관련 문제