是否有可能使用的Dropbox,谷歌驱动器,SkyDrive中,等作为服务器的空间? [英] Is it possible to use Dropbox, Google Drive, Skydrive, etc. as a server space?

查看:206
本文介绍了是否有可能使用的Dropbox,谷歌驱动器,SkyDrive中,等作为服务器的空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个应用程序,网络连接到服务器来收集信息。为了节省钱从一个大CORP租用服务器空间,我在想,如果有这些免费的服务(Dropbox的,谷歌驱动器,SkyDrive中微软,亚马逊云计算等),可以潜在地作为服务器的空间?

I'm creating an app that connects online to a server to collect information. To save money from renting server space from a big corp, I was wondering if any of these free services (Dropbox, Google Drive, Microsoft Skydrive, Amazon Cloud, etc.) could be potentially used as server space?

我pretty的多希望有一个空间或云,人们可以连接到收集数据。例如:我有一个天气应用程序,并有我的服务器上的文件和我根据天气更新文件。我希望他们能够打开的应用程序,连接到我的服务器来收集救了我的服务器上的气象数据。这真的不会有太大的数字空间,所以我也不想支付bookoo块钱时,我可能会使用一个免费的服务,像Dropbox的。

I pretty much want a "space" or "cloud" where people can connect to to collect data. Example: I have a weather app, and there is files on my server and I update the files according to the weather. I would like them to be able to open the app and connect to my server to gather the weather data saved on my server. It really won't be much digital space, so I didn't want to pay bookoo bucks when I could potentially use a free service like Dropbox.

推荐答案

您不能在任何这些服务执行远程code(即我所知道的),但你可以肯定的文件保存到他们。例如,你可以写出来的文本文件(CSV?XML?JSON?),以这些位置。

You can't execute remote code on any of those services (that I'm aware of), but you could certainly save files to them. For example, you could write out text files (CSV? XML? JSON?) to those locations.

取是如何将它一看的Dropbox SDK 了解详细信息为您的iOS或Android项目。这是pretty的简单。

Take a look at the Dropbox SDK for details on how to integrate it to your iOS or Android project. It's pretty simple.

下面是一个基本的code样本上传文件:

Here's a basic code sample for uploading a file:

NSString *localPath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"];
NSString *filename = @"Info.plist";
NSString *destDir = @"/";
[[self restClient] uploadFile:filename toPath:destDir withParentRev:nil fromPath:localPath];

这篇关于是否有可能使用的Dropbox,谷歌驱动器,SkyDrive中,等作为服务器的空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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