开发者

How to save image loaded through url into sqlite database has a binary format

开发者 https://www.devze.com 2023-01-10 23:41 出处:网络
friend\'s, I need to know how to save image loading through url has a original image in sqlite database.how can i convert image url into binary format and to 开发者_运维百科retrieve original image fro

friend's, I need to know how to save image loading through url has a original image in sqlite database.how can i convert image url into binary format and to 开发者_运维百科retrieve original image from database.

Thanks in advance,


You should be able to use

getContentResolver().openOutputStream()

For more information look at: http://developer.android.com/guide/topics/providers/content-providers.html

An example at: http://www.tutorialforandroid.com/2009/10/how-to-insert-image-data-to-sqlite.html

0

精彩评论

暂无评论...
验证码 换一张
取 消