Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storage Table - REST and JavaScript

Maybe the question is stupid but I do it anyway :)

I would like to write into a azure storage table by client side (JavaScript), is that possible?

like image 833
Salvatore Di Fazio Avatar asked Feb 21 '26 13:02

Salvatore Di Fazio


2 Answers

Right now my workaround is to write services in Java/Jersey that talk to Azure table services. Jersey supports CORS so I can access the services through javascript easily.

The big problem with accessing any REST service from Javascript is security. It should be okay for public services though.

like image 108
rjha94 Avatar answered Feb 23 '26 01:02

rjha94


At the BUILD conference, Windows Azure Storage announced support for JSON and CORS coming by the end of 2013. This will make it easy to access your table storage account directly from JavaScript code to read and write data.

Source: http://blogs.msdn.com/b/windowsazurestorage/archive/2013/06/28/windows-azure-storage-build-talk-what-s-coming-best-practices-and-internals.aspx

In the meantime, you can create a small web service that you call from your JavaScript code to access your table storage account.

like image 32
Mike Fisher Avatar answered Feb 23 '26 02:02

Mike Fisher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!