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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Convert text file read...
Power Apps
Unanswered

Convert text file read in from UploadFile control to plain text

(0) ShareShare
ReportReport
Posted on by 139

Hi,

 

I have used an UploadFile control to upload a .txt file to my Power App. How can I convert the file content into plaintext to be shown in a label?

 

the file content is in this format

 

"data:text/plain;base64,UGVyc29uIEE6IEh.........................HMuDQoNCg=="

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @pengwei ,

     

    We can pass it to flow and decode it.

    vxiaochenmsft_0-1696483641048.png

     

    Best Regards,

    Wearsky

  • Michael E. Gernaey Profile Picture
    53,329 Super User 2025 Season 2 on at

    Hello @pengwei 

     

    What is the character encoding? I know its base64 but what was the encoding?
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • pengwei Profile Picture
    139 on at

    Hi @v-xiaochen-msft 

     

    This is also my current way of working. However, I want to remove the flow. Is there any Power Apps functions which can achieve that?

     

    Hi @FLMike 

     

    It's a text file with meeting minutes.

  • v-xiaochen-msft Profile Picture
    on at

    Hi @pengwei ,

     

    Unfortunately, functions in canvas cannot decode base64 strings.

     

    Best Regards,

    Wearsky

  • pengwei Profile Picture
    139 on at

    Hi @v-xiaochen-msft 

     

    Since there is no functions available, I will keep using the flow as the workaround. Thank you and @FLMike 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard