Answered by:
iOS - Upload image to blob storage

Question
-
How do you upload an image to blob storage using the mobile services for iOS? I have not seen any good examples or tutorials on how to do this. I'm currently grabbing the table and inserting an item into this table which seems to work but not entirely sure how the image is actually uploaded.
- (void)addImage:(NSDictionary *)itemDict completion:(completionWithIndexBlock)completion { MSTable *activeUsersTable = [self.client getTable:@"ActiveUsers"]; [activeUsersTable insert:itemDict completion:^(NSDictionary *result, NSError *error) { NSLog(@"result = %@", result.description); NSLog(@"error = %@", error.description); completion(66); }]; }
Monday, March 25, 2013 4:14 PM
Answers
-
Hi,
Nick Harris has a great post that shows how to use blob storage (best for binary, images, videos etc) with Mobile Services: http://www.nickharris.net/2012/09/windows-8-how-to-upload-an-image-using-a-blob-storage-sas-generated-by-windows-azure-mobile-services/
The example client is Windows 8, but you should be able to fairly easily translate to the iOS client.
Let me know if you have any questions about the details - we should be able to help you map from C# / Win8 to Obj C and iOS.
http://twitter.com/joshtwist
- Proposed as answer by Josh Twist (MSFT) Tuesday, March 26, 2013 10:53 PM
- Marked as answer by Jeff SandersMicrosoft employee Thursday, April 18, 2013 6:27 PM
Tuesday, March 26, 2013 7:17 PM
All replies
-
Hi,
Nick Harris has a great post that shows how to use blob storage (best for binary, images, videos etc) with Mobile Services: http://www.nickharris.net/2012/09/windows-8-how-to-upload-an-image-using-a-blob-storage-sas-generated-by-windows-azure-mobile-services/
The example client is Windows 8, but you should be able to fairly easily translate to the iOS client.
Let me know if you have any questions about the details - we should be able to help you map from C# / Win8 to Obj C and iOS.
http://twitter.com/joshtwist
- Proposed as answer by Josh Twist (MSFT) Tuesday, March 26, 2013 10:53 PM
- Marked as answer by Jeff SandersMicrosoft employee Thursday, April 18, 2013 6:27 PM
Tuesday, March 26, 2013 7:17 PM -
The referred site http://www.nickharris.net/ is no more accessible.
Do you have any other reference? Especially any reference in the context of iOS would help.
Saturday, July 6, 2019 5:23 AM -
Apologies for the delay! Kindly take a look at these available samples/references and see if it helps with the approach:
https://github.com/Azure/azure-mobile-services/tree/master/docs/media
https://github.com/Azure/mobile-services-samples
Azure Mobile Apps Reference and Azure Mobile Services Reference
Tuesday, July 9, 2019 10:38 AM