cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Marco-N
New Member

Images Control doesn't show any image in mobile phone

Hi, I'm quite new on PowerApps!

I'm using a PenInput to capture a signature and store as a BASE64 Image in a sharepoint list.

The PenInput1 is embedded in a DataCard of the Form1_1. here is the code to set the signature image:

 

Set(Signature_Image, JSON(PenInput1.Image, IncludeBinaryData));SubmitForm([@Form1_1])

The update property of the Data Card is correctly set as: Signature_Image

 

The image is correctly stored in my SP List in a Field called Signature.

I need to display the picture in a Gallery, so I embedded an image control. In the Image property I use the following code:

 

Substitute(ThisItem.Signature, """","") to eliminate comma at the beginning ant at the end of the string.

 

The App works perfectly on my Browser showing correctly the signature, but on mobile it show anything. 

Anyone can help me with this?

Thanks

 

3 REPLIES 3
WiZey
Super User
Super User

Hello @Marco-N ,

 

The doc suggest using HTTPS link for better compatibility.

 

https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-image

 

Can you try with your image's url and see how it goes? 

 

If it's not fixed, I'm afraid I can't help further, sorry.

WarrenBelz
Super User
Super User

Hi @Marco-N ,

That actually should work (I use it on mobile devices slightly differently as below).

UpdateContext(
   {
      Signature_Image: 
      With(
         {
            wJSON: 
            JSON(
               PenInput1.Image,
               JSONFormat.IncludeBinaryData
            )
         },
         Mid(
            wJSON,
            2,
            Len(wJSON) - 2
         )
      )
   }
)

The Data Card Update should be the same, but you just need 

ThisItem.Signature

on the Image.

 

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.

Visit my blog Practical Power Apps

Marco-N
New Member

Thanks Warren,

Yes it works... It starts working after publishing... I thought saving was enough to display the updates. As I said, I'm quite new on PowerApps.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,933)