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:
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.
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/
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
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 2