
Hi All,
I'm a rookie on coding and Automate, every month I need to input a lot invoice data into our financial system, it's boring and easy to make typing mistakes, so I try to build a desktop flow to get the necessary data from invoice images by using a third party OCR API, but I met 2 problems when input request body content on invoking web service:
1. How to urlencode the image Base64 in Automate Desktop?
This OCR API requires Content-Type: application/x-www-form-urlencoded, the image shoud be Base64 encoded and then urlencode the Base64, Automate Desktop offers function to encoding the image to Base64, but I didn't find the way to urlencode the Base64.
2. What's the correct input format of requset body content?
When I use the API explorer of this OCR API fot testing, it works, the words on invoice were successfully recognized, the request body content is simple: image=urlencoded image Base64but in Automate Desktop, it prompts error: syntax error, or value invalid
If I just input image=%Base64Text%, this "%Base64Text%" is a variation of the Base64 encoded local image, but without urlencode, the flow could run but response error code: param image not exist, I guess it's because the Base64 was not urlencoded
Now I'm stuck here, no idea how to proceed, OCR supplier said they don't know how to solve it because they didn't use Automate, LOL, hope someone here could help, thanks in advance.