B4J Question SSL Error B4J

alirezahassan

Active Member
Licensed User
hi all,
i use these codes.
B4X:
Sub DownloadAndSetImage(Url As String, iv As ImageView)
    Log(Url)
    Dim j As HttpJob
    j.Initialize("", Me)
    j.Download(Url)
    Wait For (j) JobDone (j As HttpJob)
    If j.Success Then
        Try
            If iv.Parent.IsInitialized Then
                If iv.IsInitialized Then
                    Dim bits As Image = j.GetBitmap
                    iv.PrefHeight = (bits.Height * iv.Width)/bits.Width
                    iv.SetImage(bits)
                End If
            End If
        Catch
            Log(LastException)
        End Try
    End If
    j.Release
End Sub
and it load some picture but it has an error
 

behnam_tr

Active Member
Licensed User
Longtime User
hi dear
i tested and it is ok with https and http links
you should use a direct link and turn off VPN!!
 

Attachments

  • test.zip
    2.2 KB · Views: 135
Last edited:
Upvote 0

alirezahassan

Active Member
Licensed User
It's an SSL security problem
hi i want for the b4j
i tested and it is ok with https and http links
I get a SSL error for the second time. i think i should Delete previous photos to restart?
 
Upvote 0

alirezahassan

Active Member
Licensed User
hi all,
SSL related to CDN and hosting set up correctly.
Works well in Android version.
This sometimes gives this error when the CoustomListView items are reloaded
I also added the following line to make no mistake
B4X:
#PackagerProperty: IncludedModules = jdk.crypto.ec
what should i do?
 
Last edited:
Upvote 0

alirezahassan

Active Member
Licensed User
and some times give me this error
what should i do?
 
Upvote 0

alirezahassan

Active Member
Licensed User
You can try with:

Crtl-B

View attachment 119779
thanks for replying
it gives me an error for Retrofit Library
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…