BLOB安卓下载和上传到Windows Azure? [英] BLOB android download and uploading to windows azure?

查看:397
本文介绍了BLOB安卓下载和上传到Windows Azure?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我创建一个Android应用程序,我需要能够下载和从我的Andr​​oid应用程序上传斑点我的Windows Azure SQL数据库可有人向我解释,我该怎么办的这个基本的版本?

Hey I'm creating a android application where I need to be able to download and upload blobs to my windows azure sql database from my android app can somebody explain to me how I can do a basic version of this?

推荐答案

嗯,有两种方式,你可以用这个去。一种是简单地使用REST API来获取和放置数据。例如,上传一个blob:PUT https://myaccount.blob.core.windows。净/ myContainer中/ myblob 。要获得BLOB:GET https://myaccount.blob.core.windows.net/mycontainer / myblob (其中我的帐户和myContainer中由您在门户网站中配置)

Well, there's two ways you could go with this. One is to simply use the REST API to GET and PUT data. For example, to upload a blob: PUT https://myaccount.blob.core.windows.net/mycontainer/myblob. To get the blob: GET https://myaccount.blob.core.windows.net/mycontainer/myblob (where "myaccount" and "mycontainer" are configured by you in the portal)

您如何获取或将取决于你。

How you GET or PUT would be up to you.

另一种方法是使用本地的API,这是记录在这里:<一href=\"http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/\" rel=\"nofollow\">http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/

The other is to use the native API, which is documented here: http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/

在特别是如何的下载的一个blob:<一href=\"http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/#DownloadBlob\" rel=\"nofollow\">http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/#DownloadBlob以及如何的上传的一个blob:<一href=\"http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/#UploadBlob\" rel=\"nofollow\">http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/#UploadBlob

In particular, how to download a blob: http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/#DownloadBlob and how to upload a blob: http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/#UploadBlob

要开始使用Android和Azure的,这是一个很好的开始:

To get started with Android and Azure, this is a good place to start:

http://www.windowsazure.com/en-us /开发/移动/ Android的样本/

这篇关于BLOB安卓下载和上传到Windows Azure?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆