cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Resolver II
Resolver II

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,545)