B4J Question [solved]Loading webimage in Imageview

Peter Lewis

Well-Known Member
Licensed User
Longtime User
Hi All

I was trying to use Webview for this purpose but then I stumbled across a post done by The MASTER which showed me a better way of doing it using imageview. This worked perfectly in one of the subs that I was loading a set amount of images - Well Done Erel


Now I wanted to add the same process to another Sub but I now get an error on the second one. In looking at the original page where I got the info, I see that one is marked good to use and the other one is marked bad. So I used the Good.

1588442991722.png


This is the error I get in the Compiler which is on the Init Line. The compiler compiles the first instance in a different sub perfectly
Compiling generated Java code. Error
B4J line: 35
job1.Initialize(\
Picked up _JAVA_OPTIONS: -Xmx1024m
src\b4j\quiz\result.java:156: error: cannot find symbol
_job1._initialize /*String*/ (null,ba,"",result.getObject());
^
symbol: method getObject()
location: variable result of type Object[]
1 error

Please can someone shed some light on why I am getting this error

Thank you
 
Why are you posting code as an image?

Make sure to reference jOkHttpUtils2 library and don't use HttpJob module.
The code was not mine so I did not want anyone to assume that. In Future I will copy it can put it between the Quote Function.

I am using the correct Library.

I also found out that the images do not appear under any other machine. The development machine it works well. Should I open another post for this ?

Thank you
 
Upvote 0
Sorry but I don't understand anything from this thread. How did you test it on other machine if there is a compilation issue?
I used the B4JPackager11 to run the program on other machines. Now I ran the other machine sin debug mode and see that there is a possible reason for the failure to load the picture files. I did not run the compiled version on the Dev machine but rather through the dev environment in Release mode (That works)
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

So I am thinking of instead of the URL I am trying to load as SSL , rather make it non SSL. I do not know if that would help

Thank you
 
Upvote 0
If you solved the question in the first post then explain what you did. Any other information or question are not relevant to this thread.

Ok, What I have done is a workaround which is to make that sub that you wrote a public sub and use it from the second module, hence it is a workaround that does work. I do not prefer making too many public subs. The issue of 2 modules have this code and not working is still an issue that does not work
 
Upvote 0
Back
Top