Getting the following error in B4j same code in B4A has no error:
The picture loads just fine.
B4X:
Jan 16, 2021 11:49:18 PM com.sun.javafx.tk.quantum.PrismImageLoader2$PrismLoadListener imageLoadWarning
WARNING: null
I am retrieving a picture using HttpJob.
B4X:
Dim H As HttpJob
H.Initialize("H", Me)
Dim FN As String = "XXXXXXXXXX.jpg"
Dim FDir As String = "\\XXXX\yyyy\dwg"
H.Download2($"http://${XXXXXXXXXX/getfile"$, Array As String("FileName", FDir & "\" & FN, "Dir", FDir))
Wait For (H) JobDone(j As HttpJob)
If j.Success Then
TravPic.ResizeMode = "FIT" '"FILL_NO_DISTORTIONS"
TravPic.Bitmap = j.GetBitmap <<ERROR IS ON THIS LINE
.
.
Edit: Sorry I didn't answer the first part of your question. Travpic is a B4XImageView that is on the MainPage Layout and declared private in Class Globals.
I would have to give you the server as well and you would have to configure it and set up a path in the code to a file. I am actually working on something to upload and share. I well post here when I get that done.