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 / RESOLVED : Why am I ge...
Power Apps
Unanswered

RESOLVED : Why am I getting the SP URL in a variable for Base64 image data when changing image in the app

(0) ShareShare
ReportReport
Posted on by 16

Hi all, bit of a weird one at least for me!

I have an add image button that passes the details from the app on save to a Flow that stores the image in SharePoint. When I first add an image everything works fine, I'm storing the binary data in a variable called lclBase64String. I am showing the variable value in a label on the screen just for debugging. You can see from the 1st screenshot below the binary data in the label when first adding an image but in the 2nd screenshot where I've changed picture, you can see the value is the SP URL. The formula shown is from the save button OnSelect relating to this image.

Thanks in advance.

 

EDIT: I've resolved this, was referencing an incorrect variable that signified an image had changed.

Anon_Developer_0-1673613268397.pngAnon_Developer_2-1673613323993.png

 

 

 

 

 

If(
 lclPhotoOneModifiedFlag,
 Set(
 gblUploadImageTimerStart,
 true
 );
 Set(
 gblTextModulesLoadingSpinnerVisible,
 true
 );
 UpdateContext(
 {
 lclBase64String: JSON(
 UploadedPhoto1TMP.Image,
 JSONFormat.IncludeBinaryData
 )
 }
 );
 UpdateContext(
 {
 lclTrimmedURI: Mid(
 lclBase64String,
 2,
 Len(lclBase64String) - 2
 )
 }
 );
 'Flow–UploadImagetoDocumentLibrary'.Run(
 AddMediaButton1TMP.FileName,
 lclTrimmedURI,
 gblCurrentTextModuleRecordId,
 "PhotoOneTextModulesList"
 );
 Patch(
 colTextModulesRecordCollection,
 First(colTextModulesRecordCollection),
 {'Photo One ID': Blank()}
 );
 UpdateContext({lclPhotoOneModifiedFlag: false})
);

 

 

 

 

 

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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard