Show image from web ?

dealsmonkey

Active Member
Licensed User
Longtime User
Hi again,

First off, must say I am loving b4a. I have created more in the past 48 hours than weeks with eclipse :sign0060:

My webservice returns an image url that I want to show in a listview. Is it possible to do this, I have tried bitmap.initialize but no joy.

Thanks again in advance

Neil
 

TomK

Member
Licensed User
Longtime User
Any particular reason you would rather show it in a listview than a webview?

Just curious really.... for me, if it were a single image, I would just make life easy on myself and use a webview.
 
Upvote 0

dealsmonkey

Active Member
Licensed User
Longtime User
Any particular reason you would rather show it in a listview than a webview?

Just curious really.... for me, if it were a single image, I would just make life easy on myself and use a webview.

Hi Tom

The webservice returns a list of items, one of which is the image URL, others are text values. I assumed the listview was the best for this ?

Neil
 
Upvote 0

TomK

Member
Licensed User
Longtime User
It might be Neil, I guess I just figured if you needed to view them(it) from a URL, make your life easy and simply view it in a webview. I honestly don't know if you can use a URL as a bitmap for the listview, but my instincts would tell me no.
 
Upvote 0

dealsmonkey

Active Member
Licensed User
Longtime User
If you like you can download the image manually and then show it with the Http library.

Thanks for the suggestion Erel. I have now changed to a scrollview and shown the image with a webview.loadHtml. This works for me, so now to work out how to capture event presses !!

Neil
 
Upvote 0

ChrShe

Member
Licensed User
Longtime User
Thanks for the suggestion Erel. I have now changed to a scrollview and shown the image with a webview.loadHtml. This works for me, so now to work out how to capture event presses !!

Neil

Hi Neil,

I'm doing something similar and am having a similar problem with the ListView. :)
Am I correct in assuming that when using the ScrollView, instead of a Bitmap, you're using a WebView and loading your images into it?

Thanks,
Chris
 
Upvote 0
Top