Hi all
in the following code I want to type the image path in Base64 format, How can I do that :
the image path has to be either URL or Base64
in the following code I want to type the image path in Base64 format, How can I do that :
B4X:
File.Copy(File.DirAssets,"t.jpg",File.DirInternal,"t.jpg")
Dim base As String = Base64EncodeDecodeImage.Base64ImageToString(File.DirInternal,"t.jpg")
Sleep(300)
Dim job1 As HttpJob
job1.Initialize("",Me)
Log(base)
job1.Download("https://api.luxand.cloud/photo/verify/30417? \")
job1.GetRequest.SetHeader("token","-------")
job1.GetRequest.SetHeader("photo",base) ' Here is the problem
Wait For (job1) JobDone(job1 As HttpJob)
ProgressDialogHide
Dim res As String
res = job1.GetString
Log(res)
the image path has to be either URL or Base64