【问题标题】:How to save image in database and upload from database to server? [closed]如何将图像保存在数据库中并从数据库上传到服务器? [关闭]
【发布时间】:2014-02-05 08:32:45
【问题描述】:

我正在从 camara 捕获图像并在图像视图中显示。我想将图像保存到数据库中并想上传到服务器。如何解决这个问题?

【问题讨论】:

    标签: android image android-camera image-uploading


    【解决方案1】:

    在Sqlite3数据库中创建字段类型为Blob的表

    调用可读数据库

    向表中插入记录

    【讨论】:

    • 但是在 sqlite 数据库中我们不能采用 blob 数据类型。
    【解决方案2】:

    我不知道你写了什么代码。只需按照下面的帖子。它会给你一个适当的解决方案

    Add Image from Gallery and Camera into SqLite Database

    example 可以帮助您。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-14
      • 2014-03-18
      • 2014-05-09
      • 2014-08-09
      • 2011-10-26
      • 2013-07-01
      相关资源
      最近更新 更多