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 / Removes quotes from te...
Power Apps
Answered

Removes quotes from text string

(0) ShareShare
ReportReport
Posted on by

Hi all

 

I'm trying to pass B64 image data to a html for an email, but the variable is getting set with quote marks:

 

Set(B64image,JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData))

the result is ...

background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA

 

How can i remove those quotes?

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @P_jones 

    This should remove the double quotes for you.

    Set(B64image,
     Substitute(JSON(UploadedImage1.Image , IncludeBinaryData)
     """",""
     )
    )
  • P_jones Profile Picture
    on at

    awesome thanks that worked, was just missing a comma

    Set(B64image,
     Substitute(JSON(UploadedImage1.Image , IncludeBinaryData),
     """",""
     )
    )

    oddly the html still doesn't display the image though, which is odd! 

  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    I'm glad that works. Strange the HTML doesn't display the image. I assume the image displays OK through the image control?

  • P_jones Profile Picture
    on at

    I’ve sorted it now - it was a bug in the html code. 
    Image is far too big but I’ll sort that. 

    this is basically a bolt on to the shoutout app so the image displays right there in the email body instead of an attachment 

     

    thanks for helping!!

  • timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    You're welcome, glad to help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard