Accessing OneDrive from Azure Mobile Service

448 Views Asked by At

I'm developing a mobile app to share some content between users and I'm facing a weird problem.

Currently, what the app does is to allow the users to download some files from the web and store them on their OneDrive account.

The problem is that I need to download the file from the web first, and then upload it to OneDrive, and this means that I'm wasting double bandwidth for each file (OneDrive does not allow to upload a remote file).

The other required feature is to upload a file from OneDrive to my Azure storage, so, basically, I need my Azure service to work with both upload/download from/to OneDrive.

I can't find anything useful online, but I think I got a solution for the OneDrive-to-Azure scenario:

  • Get the file ID using the LiveSDK on my phone
  • Build a download link for the given file
  • Send the link to the Azure Mobile Service
  • Download the file in the Azure Storage

I've not tried it yet because I still got no access to Azure (I need to register for the trial), but I'm not sure that this may work, and even if it does I still need to figure out how to make the Azure-to-OneDrive stuff.

Do you guys have any clues? This thing is really driving me insane :\

0

There are 0 best solutions below