Sub DownloadImage(Link As String, iv As ImageView)
Dim j As HttpJob
j.Initialize("",Me)
j.Download2(Link, _
Array As String("key1", "value1", "key2", "value2"))
Wait For (j) JobDone (j As HttpJob)
If j.Success Then
iv.Bitmap=j.GetBitmap
End If
j.Release
End Sub
the second argument in DownloadImage is imageview but u gave it a string array.
inside the DownloadImage there is a dummy array that u would replace by function argument.
DownloadImage("https://website.com/1.x/",ImageView1)
Sub DownloadImage(Link As String, iv As ImageView)
Dim j As HttpJob
j.Initialize("",Me)
j.Download2(Link, _
Array As String("lang","en_US","ll", EditText2.Text & "," & EditText1.Text, "z",17,"size", 450 & "," & 450,"l","sat"))
Wait For (j) JobDone (j As HttpJob)
If j.Success Then
iv.Bitmap=j.GetBitmap
End If
j.Release
End Sub