我正在尝试创建新的MyImage实体,如如何使用Google App Engine上传和存储图像中所列出的。
现在我没有使用任何表单。我有一个从画廊获取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 创建 Bitmap。
如何从 Bitmap 在客户端中创建 Blob?
我需要添加哪些 JAR 文件到我的 Android 项目中?
这是使用 Blob 的正确方式吗?
我的主要目标是将从 Android 上传的图像保存在 GAE datastore 中,我是否正确地使用了这些工具或者有更好的方法?谢谢。