Upload File to Windows Azure Blob Storage using Windows Azure Mobile Services

This demonstrates how to store your files such as images, videos, docs or any binary data off device in the cloud using Windows Azure Blob Storage. In this example we focus on capturing and uploading images, with the same approach you can upload any binary data to Blob Storage.

C# (1.7 MB)
 
 
 
 
 
(9)
4,405 times
Add to favorites
1/6/2014
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • doubts
    1 Posts | Last post July 11, 2014
    • I don´t show this option:
      http://i1.code.msdn.s-msft.com/windowsapps/upload-file-to-windows-c9169190/image/file/106561/1/import-subscription-menu.png
      
      for create tables. How you got it? 
      
      I followed this:
      http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-windows-store-dotnet-upload-data-blob-storage/
      
      and worked.
  • Does it work for windows phone 8 apps??
    1 Posts | Last post May 01, 2014
    • Does it work for windows phone 8 apps??
  • Error: Could not find MobileServicesManagedClient
    2 Posts | Last post January 06, 2014
    • I can't run the app because the compiler can't find MobileServicesManagedClient.  Why is it so difficult to get the libraries in Windows 8?  Most of the apps here can't run because Visual Studio can't find the referenced assemblies.
    • hi deskcheck,
      
      please try the latest version of the sample
      
      kind regards,
      nick 
  • ImageUrl has undefined value in string / Blob storage return 403
    2 Posts | Last post January 06, 2014
    • All the fields in the Picture table look ok except for imageurl.
      
      the value for the imageurl field in the picture table =
      
      https://sikestorage.blob.core.windows.net/sikestorage-1/undefined?se=2013-11-02T21%3A41%3A43Z&sr=b&sp=w&sig=vRChOBlxRFkWe196s3qPuJVzqsKUCTG1CUukddqF3ME%3D
      
      
      I can run the sample and I see that records are being inserted into my database, but upon calling the blob helper function I get a 403 error.
      
      But records get inserted into the table without errors.
      
      
      the error I get is in the 
      
       private async void UploadPicture(object sender, RoutedEventArgs e)
      
      function.
      
      
      
      An exception of type 'Microsoft.WindowsAzure.Storage.WrappedStorageException' occurred in mscorlib.dll but was not handled in user code
      
      Additional information: <?xml version="1.0" encoding="utf-16"?>
      
      <!--An exception has occurred. For more information please deserialize this message via RequestResult.TranslateFromExceptionMessage.-->
      
      <RequestResult>
      
        <HTTPStatusCode>403</HTTPStatusCode>
      
        <HttpStatusMessage>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.</HttpStatusMessage>
      
        <ServiceRequestID>b2ddd45e-0075-452e-ac2e-0b4f6e82aa2a</ServiceRequestID>
      
      
      Just wondering if anyone else is having this bug???
      
      
      
      
    • Hi Sike, please try the latest uploaded version of the sample
      kind regards,
      nick
  • Upload an image from the browser
    1 Posts | Last post April 26, 2013
    • You have an example of uploading an image to the blob storage using c# win 8 App. How can we use the same Mobile Service and Blob Storage through a Browser? Any sample code would be appreciated. Also are there any extra settings needed on the Azure side to accomplish this? 
      
      Thanks!
  • migrate to WP8
    1 Posts | Last post April 26, 2013
    • Hi, is it possible to migrate this app into Windows Phone 8? as in implement this project into Windows Phone 8.. what are the changes needed? i need some advice thanks :)
      
      sorry for my bad english
  • Azure Media Services
    1 Posts | Last post January 28, 2013
    • Hi
      Could your example be modified to show similarly how to upload and retrieve from Azure Media Services?
      Thanks
  • how delete blob??
    1 Posts | Last post January 25, 2013
    • delete blob sample plz.
      very hard T.T
  • i have a question
    2 Posts | Last post January 17, 2013
    • AlbumDetailPage.xaml 27line
      
      d:DataContext="{Binding AllGroups[0], Source={d:DesignInstance Type=data:AlbumDataSource, IsDesignTimeCreatable=True}}">
      
      
      d:DataContext="{Binding
      
      Does not exist MyPictures.Data 
      
      However, this app execution.
      
      What is problem???
    • oh! The problem is solved.
      
      MyPictures.Data  --> MyPictures.DataModel
      
      gogogo
      
  • Error
    1 Posts | Last post January 14, 2013
    • Hi, its giving me this error as I try to run it. "Error: The value specified for 'id' must be a number." do perhaps know what the problem is?