cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cbernier12
Resolver II
Resolver II

Image object not recognizing base65 image text

Hi I have a base64 image output in a collection and the image object in Power Apps refuses to believe it's an image.  I get the following error when using the code below: "Expected image value".

 

Concatenate("data:image/jpeg;base64,",QRCodeImage.'$content')

 

Anyone have any ideas?

 

2020-10-29_16-42-21.jpg

4 REPLIES 4
WarrenBelz
Super User III
Super User III

Hi @cbernier12 ,

I see you have stripped out the header - have a read of this blog of mine in the section  "Save as multi-line Text field".

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

@WarrenBelz , I don't understand, how do utilize your code below to reference the collection and send to the image field?

 

With(
{
vJSON:
Substitute(
JSON(
First(colPhoto).Url,
JSONFormat.IncludeBinaryData
),
"""",
""
)
},
Patch(
YourListName,
{ID: YourGalleryName.Selected.ID},
{YourMLTextField: vJSON}
)

@cbernier12 ,

Forget about the Patch part - I was simply showing the proper syntax required to get the proper Base64 text content into the text field.

Hi @cbernier12 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (29,131)