locked
passing arguments to BackgroundUploadAsync() method

    Question

  • hi,

    I am using live sdk v5.2 for uploading files to skydrive in my app. For uploading i am using LiveConnectCLient.BackgroundUploadAsync() method. It requires four parameters- file path, file name, IInputStream object of the file and Overwrite Option. 

    Can u please help me with passing the IInputStream object of the file?? I am picking the files to upload using filepicker and i am picking multiple files at a time and storing it in IReadOnlyList. I dono how to convert the file objects in the IReadOnlyList to IInputStream.

    Thanks in advance!!

    Tuesday, August 06, 2013 12:56 PM

Answers