web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to urlencode Base6...
Power Automate
Unanswered

How to urlencode Base64 for image OCR in Automate Desktop?

(0) ShareShare
ReportReport
Posted on by

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 Base64微信截图_20230704141151.pngbut in Automate Desktop, it prompts error: syntax error, or value invalid

13bc4ea5-e136-4303-b031-86393fec029d.png微信截图_20230704140737.png

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

微信截图_20230704140352.png微信截图_20230704140428.png

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.

 

 

 

  

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard