Downloaded Bitmap and ListView

pixelpop

Active Member
Licensed User
Longtime User
I am attempting to download an image and use it in ListView. Can't quite get there:

B4X:
Sub smImagesJobDone (Job As HttpJob)

   If Job.Success = True Then
      smImage = Job.GetBitmap
   End If
End Sub

Sub ...
...some processing...

ListView1.AddTwoLinesAndBitmap(hl_short, "", smImage)

End Sub

Of course, B4A wants the bitmap initialized, but Initialze expects a bitmap from a file and Initialize2 expects an InputStream, but ListView wants an bitmap. Is there a way to do this without writing the image to a file and then reading it back in ListView?
 

pixelpop

Active Member
Licensed User
Longtime User
I thought so, but it wasn't. Since my post, I have kept trying different things. If you would be kind enough, attached is my latest itteration. The remote source file is available for viewing, but here is a recap:

New Orleans imposes dusk-to-dawn curfew for Isaac - has a bitmap to download
Cat videos get their moment at Minn. film festival - has no bitmap to download, so uses a bitmap image in the Files repository
United says hardware issue caused outage - has no bitmap to download, so uses a bitmap image in the Files repository
In Arctic, Greenpeace picks new fight with old foe - has a bitmap to download
Fed survey: US economy grew during summer - has no bitmap to download, so uses a bitmap image in the Files repository
Republican convention is in full-throated roar - has a bitmap to download
Rapper Beanie Sigel faces weapon charges in Pan - has a bitmap to download
Official: Lindh, other Muslim inmates are defiant - has no bitmap to download, so uses a bitmap image in the Files repository
Levee in La. may be intentionally breached - has no bitmap to download, so uses a bitmap image in the Files repository
Kenyan police wounded in grenade attack - has a bitmap to download

If you caould take a look and see what I'm doing wrong, it would be a great help. Thanks.
 

Attachments

  • news_list.zip
    1.7 KB · Views: 266
Upvote 0

pixelpop

Active Member
Licensed User
Longtime User
Here you go, Erel. Thanks for taking a look at this or me.
 

Attachments

  • pixelpop_submission.zip
    88.4 KB · Views: 304
Upvote 0
Top