Android的 - 如何下载图像,并将其作为新的资源?图像、如何下载、资源、并将其

2023-09-04 09:07:41 作者:又丑又矮又穷又贱还龌

我想从远程服务器下载图片,并把它作为资源。 可能吗 ? 我怎样才能做到这一点?

I want to download image from distant server and use it as resource. Is it possible ? How can I do this ?

推荐答案

是的,你不能下载它作为你的SD卡或数据库资源file..you可以下载并存储图像,并从那里加载它...

Yes you cannot download it as a resource file..you can download and store images on your SDCard or database and load it from there...

要检查如何将图像以SD卡是指下载此链接

To check how to download images to SDCard refer to this link

http://snippets.dzone.com/posts/show/8685#related

您可以稍后从你的SD卡这样的

You can later load it from your SDCard like this

http://android-er.blogspot.com/2010/01/how-to-display-jpg-in-sdcard-on.html

这是你如何从乌尔数据库存储和检索图像

This is how you store and retrieve images from ur DB

http://www.helloandroid.com/tutorials/store-imagesfiles-database