Using azure mobile services how do I download a blob from a private container? -
i using azure mobile services store images web application. have managed upload images private container. i've followed logic in introductory guide (http://code.msdn.microsoft.com/windowsapps/upload-file-to-windows-c9169190), i.e. when uploading file database sas generated node script called when inserting record table.
one of reasons use approach mobile apps storage key not stored within application source itself.
conforming idea struggling find example of how download images.
perhaps should update read function same table , have return sas can used accessed image.
does sound reasonable or better approaches? assistance appreciated.
it sounds me on right track. if storing image in private container , want mobile device read yes, want produce sas allows reading , device. device code can make call directly against blob storage using sas url retrieve image.
this applies if want container private. if container public returning url (like have in article link to) should fine.
it depends on how private care image be. example, let's have container created per user. if container has shared access signature policy on far off expiration date technically still needs url sas view it, can create sas , store sample. mobile app can given url when reads data service , blob directly without having create additional sas. in opinion option works if images aren't going around long, or don't care if sniffs url network traffic can access it.
if want secure , not know how long images around, should go stated approach of getting sas read when app reads related table data. sas can have short expiry on , mobile device can cache result.
Comments
Post a Comment