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 / 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

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