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 Apps / Convert text file read...
Power Apps
Answered

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
    Microsoft Employee 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,968 Super User 2026 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard