cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TullyH
Level: Powered On

Pen control images in offline apps

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

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

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

JensKofod
Level: Powered On

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/

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 432 members 6,746 guests
Please welcome our newest community members: