Skip to main content
Community site session details

Community site session details

Session Id : OVKdQ90gEHGvJAPGZ1VfGu
Power Apps - Building Power Apps
Answered

Pen control images in offline apps

Like (1) ShareShare
ReportReport
Posted on 10 May 2018 23:46:01 by 18

The Pen Control has the Image property, which returns a URI string in the format of appres://blobmanager/<some numeric ID>/4 where the last number is an index for the image which is presumably stored in the local cache for the app. When the app is closed and reopened, any data URI referencing a previous index fails, so it seems that images need to be used within an app session otherwise they are lost.

 

This raises the question: how can the pen control image be saved while the app is running in offline mode?

 

Using SaveData and LoadData does not work, because the data saved only contains the data URI string and not the image, and after the app is closed and reopened, the data URIs are pointing to images which no longer exist in the local app cache.

 

Other suggested ways around this are:

  • Use the Import / Export controls - this exhibits the same behaviour as SaveData and LoadData
  • Use the Download function - this fails saying that the specified URI is invalid

 

So, how can the pen control image be saved and persisted over an offline session? Obviously, any solutions using Flow aren't workable, since they require online access.

 

 

Thanks.

Categories:
  • JensKofod Profile Picture
    143 on 12 Oct 2019 at 14:19:58
    Re: Pen control images in offline apps

    An easy and multi-purpose solution is found to add pen-input to Sharepoint/Email/PDF by utilizing the addition of a PowerApps Json functionality added on 02/05/2019.

    The Short description on how to make this work is to save the pen input image in a JSON format asking the JSON function to include Binary Data:

    Set( PenVar, JSON( PenInput1.Image,JSONFormat.IncludeBinaryData ) );

    See here for details: https://iiu.dk/2019/10/12/powerapps-pen-input/

  • Verified answer
    v-micsh-msft Profile Picture
    on 12 May 2018 at 11:18:19
    Re: Pen control images in offline apps

    You are correct.

    Currently there is no workaround available in such a situation.

    Pen Input control saves the image in a local cache within the current cache, while when saving into PowerApps service, there would be file API to auto handle that part.

    But within Offline mode, there is no function available to handle the local strorage to translate the blob into actual image data.

     

    Please consider rise this as an idea.

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Regards,

    Michael

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete