Good morning!
I'm working with CraftAR API for image recognition, in windev emulator everything works fine, but when installing my app to my device, the API returns an error code which says that the parameter TOKEN is missing, I guess this has to do with how android manages the strings or something. Anyone has an idea how to solve this? Here is my code:
sImage is string = ""
IF InTestMode() = False THEN
sImage = AlbumPicker(albumImage)
IF sImage = "" THEN
RETURN
END
ELSE
sImage = "C:/Torreon.jpeg"
END
HTTPCreateForm("FORM")
HTTPAddParameter("FORM","token",StringToUTF8("*******"))
HTTPAddFile("FORM","image",sImage)
HTTPSendForm("FORM","[search.craftar.net];)
Info(UTF8ToAnsi(HTTPGetResult()))
I'm working with CraftAR API for image recognition, in windev emulator everything works fine, but when installing my app to my device, the API returns an error code which says that the parameter TOKEN is missing, I guess this has to do with how android manages the strings or something. Anyone has an idea how to solve this? Here is my code:
sImage is string = ""
IF InTestMode() = False THEN
sImage = AlbumPicker(albumImage)
IF sImage = "" THEN
RETURN
END
ELSE
sImage = "C:/Torreon.jpeg"
END
HTTPCreateForm("FORM")
HTTPAddParameter("FORM","token",StringToUTF8("*******"))
HTTPAddFile("FORM","image",sImage)
HTTPSendForm("FORM","[search.craftar.net];)
Info(UTF8ToAnsi(HTTPGetResult()))