【发布时间】:2012-05-24 00:04:25
【问题描述】:
我正在尝试完全按照How to upload and store an image with google app engine 中列出的方式创建新的 MyImage。
现在我没有使用任何表单。我有从图库中获取 Uri 的 Android 应用:
m_galleryIntent = new Intent();
m_galleryIntent.setType("image/*");
m_galleryIntent.setAction(Intent.ACTION_GET_CONTENT);
m_profileButton.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
startActivityForResult(Intent.createChooser(m_galleryIntent, "Select Picture"),1);
}
});
我正在使用 Uri 创建位图。
如何从位图在我的客户端中创建 Blob?
我必须将哪些 jars 添加到我的 android 项目中?
这是使用 Blob 的正确方法吗?
我的主要目标是在 GAE 数据存储中保存从 android 上传的图像,是正确使用此工具还是更好的方法?
就这样。
【问题讨论】:
-
这实际上与您的另一个问题相同,How to stream Bitmap from Android to Google App Engine Servlet?。请勿重复发布。
标签: java android google-app-engine