Need to update images to my application based on image count difference from blob storage to my applications image folder
jueves, 19 de abril de 2012 9:07
In my mvc application i am storing images in images folder.
Dynamically i can update images to my application images folder .
in azure when ever instance recycles what ever we update in azure VM we will lose,so i want to store images in blob storage as well.
when ever role recycles i need to compare the count of images in application with blob storage if any difference then update images folder with blob storage.
thanks in advance.
Todas las respuestas
jueves, 19 de abril de 2012 9:31
If you want to do that only once when role recyle then I think a startup task should do this otherwise you might need some background thread doing this synchronzation for you. For synchronization part this might be useful
jueves, 19 de abril de 2012 12:27
thank you for your respose
how can i achive using startup tasks.
since i am new to azure can you elebroate bit please
how can i handle updating images based on differenece of image count from blob to app images.if their is a difference how can i update those images to app images folder.
if you share a piece of code it will be very help full
jueves, 19 de abril de 2012 12:31
This is how define startup tasks http://msdn.microsoft.com/en-us/library/windowsazure/gg456327.aspx
The link which I shared earlier has code which you can reuse http://code.msdn.microsoft.com/windowsazure/Synchronizing-Files-to-a14ecf57
- Marcado como respuesta Arwind - MSFTModerator miércoles, 25 de abril de 2012 5:52