I am attempting to download an image and use it in ListView. Can't quite get there:
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?
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?