针对Android源码显示图像 [英] displaying images from sqlite in android
本文介绍了针对Android源码显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是一个Android应用程序开发人员。我目前正在开发,需要我来显示存储在SQLite数据库的图像,任何人都可以指导我如何从SQLite数据库检索并显示图像的应用程序...
谢谢..
I am an android application developer. I am currently developing an application which requires of me to display an image stored in an sqlite database, Could anyone guide me on how to retrieve an image from a sqlite database and display it... Thanks..
推荐答案
我会首先:
db.rawQuery('SELECT imageBlob FROM Images WHERE imageID=?', new String[] {imageID});
然后结果保存到一个文件(该位,我不知道到底,是新的Android和所有)。
Then save the result to a file (for that bit, I don't know exactly, being new to Android and all).
这篇关于针对Android源码显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文