将小缩略图从 iPhone 应用程序上传到 Google App Engine

发布于 2024-10-10 13:07:42 字数 273 浏览 0 评论 0原文

在我的 iPhone 应用程序中,它将允许用户从相机或照片库获取照片,该应用程序会将图片大小调整为几个小缩略图(例如 64x64),然后将请求发送到网络服务(在 Google 应用程序上运行) Engine)以获取上传/存储在 Google App Engine 上的缩略图。随后,这些图像将作为响应(以 JSON 格式)发送给其他客户端 - 想想 Facebook iPhone 应用程序提要视图上的用户个人资料图像。

问题是——它可以实现吗?有人尝试做同样的事情吗?将图像存储在 Amazon S3 上会更好吗?

in my iPhone app, it will allow user to abtain a photo from Camera or photo gallery, the app will resize the picture into couple small thumbnail images (64x64 eg) and then send request(s) to the web service (runs on Google App Engine) to get the thumbnail images uploaded/stored on Google App Engine. Later on, the images would be send as response (in JSON format) to other clients - think about the user profile images on Facebook iPhone app feed view.

Question is - is it achieveable? has anyone tried to do the same thing? will it better to have the images stored on Amazon S3 instead?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尴尬癌患者 2024-10-17 13:07:42

只要您知道如何正确验证设备并将图像发送到 Google 服务,这绝对是可以实现的。

It's absolutely achievable, as long as you know how to properly authenticate the device and send the images to the Google service.

未央 2024-10-17 13:07:42

如前所述 - 绝对可行。以下是 Python 快速教程的链接(Java 也有类似的内容):http://code.google.com/appengine/docs/python/images/usingimages.html

最酷的部分是这么小的静态图像可以直接存储在数据存储区中(作为 BlobProperty)。较大的文件必须进入 blobstore 并单独检索。

As stated earlier - absolutely doable. Here's a link to a quick tutorial in Python (there is also similar stuff for Java): http://code.google.com/appengine/docs/python/images/usingimages.html

The cool part is that static image this small can be stored in the datastore directly (as BlobProperty). Larger files have to go into the blobstore and retrieved separately.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文