Reputation: 24474
My app currently requests a JSON file with some text and other data from my server. I want to add functionality so that it also downloads a very small image (like an icon) through the same file [without creating an additional request]. Is it possible to do so, and how would I go about it (base64?)
Upvotes: 1
Views: 1715
Reputation: 64700
Should be eminently reasonable: look at http://developer.android.com/reference/android/util/Base64.html. All you'd need to do is:
Voila! You have a Bitmap you can use.
Let me know how that works out.
Upvotes: 1