Showing results for 
Search instead for 
Did you mean: 
New Member

Storing Pen Input as image: Is there any reasonable cause for it to be so hard task still??

Hi everybody,


Don't know if I'm alone in this, but It's hard for me to believe that still doesn't exist an easy and intuitive way to do that. I've tried dataUriToBinary(...) function passing the BLOB uri returned by the PenInput.Image property, but, of course, it doesn't work. It seems that the goal is to make it impossible for the user to get this done.


I've read solutions like this one (, but couldn't make it work. Maybe I am doing something wrong, but as far as I understand, from Power Apps I only have PenInput.Image property to send the image as a parameter to FLOW and, as I said, dataUriToBinary(...) is not working. I did something like this:

the flow as I understand it should bethe flow as I understand it should be

That is basically what the solution in the provided link is doing, but with some previous spliting because of having the data in a string. Maybe the question here is, how did he get this thing --> data&colon;image/jpeg;base64,<data>?? Cause, as far is I know, PneInput.Image property is the only way for me to get to the Image representation.
Back to my flow, the function in 'Contenido del archivo' is exactly like this: dataUriToBinary(triggerBody()['Creararchivo_Nombredearchivo']), where Creararchivo_Nombredearchivo is the name of a variable retreived from PowerApps and is equal to PenInput.Image.
Not working. What am I missing?
Seriously, I can't believe that Microsoft hasn't still implemented a native funcionality to achieve this.

Accepted Solutions


Sorry for my late answer. The question is that I don't have access to the HTTP trigger in flow, so, finally, what I had to do was to rely on Azure Blob Storage following this example:


Hope it helps someone else.


Thanks for your attention, anyway!

View solution in original post

Community Support
Community Support

Hi @Gongon ,

Do you want to save a pen input image within your OneDrive folder?


Firstly, based on the blog you provided, I think there is something wrong with it. The dataUriToBinary(...) function within MS Flow is used to convert a Data URL data into a binary data, but the output of the Pen Input control in a canvas app is a Blob data rather than a Data URL data.

In other words, you could not use dataUriToBinary(...) function mentioned within above the blog you mentioned to achieve your needs.


As an alternative solution, I think you could consider create cuctom connector to achieve your needs. The user @roncam and @tech18 have faced same issue with you, please check responses within the following threads:


More details about creating a custom connector within PowerApps to upload image files to OneDrive folder, please check the following blog:


I have made a test on my side, please take a try with the following workaround:

Flow's configuration as below:2.JPG

App's configuration as below:3.JPG


Best regards,

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

Thanks for posting in the community @Gongon - can you review the above reply and advise if it was helpful?




Sorry for my late answer. The question is that I don't have access to the HTTP trigger in flow, so, finally, what I had to do was to rely on Azure Blob Storage following this example:


Hope it helps someone else.


Thanks for your attention, anyway!

Not applicable

Many Powerapps developers still regard this as a work around and not a solution. Why in the first place did they even create the Pen input with all that it could be used for and not budge a finger to make it usefull without work arounds a bodges?!

Totally agree.

Resolver II
Resolver II

An easy and multi-purpose solution is found to add pen-input to Sharepoint/Email/PDF thanks to Shane Young, 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:

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,428)