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 / FILE SAME JSON BINARY ...
Power Apps
Unanswered

FILE SAME JSON BINARY VALUE

(0) ShareShare
ReportReport
Posted on by 195

Hi Everyone, 

I have an attachment and I want to upload any attachments. 

 

Problem is why I'm having the same data image value: 

for .doc and .jpg same. Is not suppose to be the same right?

"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIg0KCSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxuczphPSJodHRwOi8vbnMuYWRvYmUuY29tL0Fkb2JlU1ZHVmlld2VyRXh0ZW5zaW9ucy8zLjAvIg0KCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjI3MHB4IiBoZWlnaHQ9IjI3MHB4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNzAgMjcwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCgk8ZyBjbGFzcz0ic3QwIj4NCgkJPHJlY3QgeT0iMC43IiBmaWxsPSIjRTlFOUU5IiB3aWR0aD0iMjY5IiBoZWlnaHQ9IjI2OS4zIi8+DQoJCTxwb2x5Z29uIGZpbGw9IiNDQkNCQ0EiIHBvaW50cz0iMjc3LjksMTg3LjEgMjQ1LDE0My40IDE4OC42LDIwMi44IDc1LDgwLjUgLTQuMSwxNjUuMyAtNC4xLDI3MiAyNzcuOSwyNzIiLz4NCgkJPGVsbGlwc2UgZmlsbD0iI0NCQ0JDQSIgY3g9IjIwMi40IiBjeT0iODQuMSIgcng9IjI0LjQiIHJ5PSIyNC4zIi8+DQoJPC9nPg0KPC9zdmc+"

 

my attachment OnAddFile property

Set(
 gvAttachmentFileBase64_001,
 Blank()
);
Set(
 gvAttachmentFileBase64_002,
 Blank()
);

Set(
 gvAttachmentFileJSONBinary_001,
 JSON(
 img_00001.Image,
 JSONFormat.IncludeBinaryData
 )
);
Set(
 gvAttachmentFileBase64_001,
 Mid(
 gvAttachmentFileJSONBinary_001,
 Find(
 ",",
 gvAttachmentFileJSONBinary_001
 ) + 1,
 Len(gvAttachmentFileJSONBinary_001) - Find(
 ",",
 gvAttachmentFileJSONBinary_001
 ) - 1
 )
);

Set(
 gvAttachmentFileJSONBinary_002,
 JSON(
 img_00001.Image,
 JSONFormat.IncludeBinaryData
 )
);
Set(
 gvAttachmentFileBase64_002,
 Mid(
 gvAttachmentFileJSONBinary_002,
 Find(
 ",",
 gvAttachmentFileJSONBinary_002
 ) + 1,
 Len(gvAttachmentFileJSONBinary_002) - Find(
 ",",
 gvAttachmentFileJSONBinary_002
 ) - 1
 )
);

 

Categories:

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard