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

Photo from PowerApps Pick Picture (appres / blobmanager)

Hello

I transfer a Photo from "pick Picture"-Item in PowerApps by the following order:

Patch(PhotoAppListe; Defaults(PhotoAppListe); {Title: Text(TextInput1.Text); BildSpeicher: First(ClrImg).Url; Text: Text(Now(); DateTimeFormat.LongTime24)});;

Here is PhotoAppListe a Sharepoint List; Title a Text; Bildspeicher a plain text with origin picture data.

Now I mirrow it back to the app: Gallery with the PhotoAppListe ; the picture is shown in the image-item in the gallary. 

The plain text is appres://blobmanager/206d2aecba8549c88e74977663d87e9c/1
But where can I find the whole picture data for a transfer to another media;

Other Case:
If I send the data from the "PowerApps Camera" then I can see 
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAKACAYAAABEyKtSAAAgAElEQVR4Xpy995Nl13XfuzvNdJrUkwcggEEiwWyRAGQSzBRpycWSRD+X419pPz/r6f1iWypZJESXCQYQBEgkTgIwuad7puOrz3ft7znr7Htu99C3gJq+5 etc ..... 
If I cut the first 22 Bytes () and convert the data to base64
(( byte[] imageBytes = Convert.FromBase64String(base64String);)) 
I can receive a correct picture. 

Jens Rogge
1 ACCEPTED SOLUTION

Accepted Solutions
Rebetcha
Level 10

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

Hi @jeanshak ,

 

There is a hack through Flow to solve this issue.

Have a look at this blog by John Liu.

http://johnliu.net/blog/2019/4/flowninja-hack-87-lock-microsoft-flow-powerapps-trigger-to-upload-ima...

 

You can skip the first part of the blog where he dives into the code of diveren connectors to find the sollution. The 2nd part of the blog describeds the hack.

 

Basically the steps are:

  1. Create a Flow triggered from PowerApps
  2. Add a condition that will result in a false output (for example 1 = 2)
  3. In the 'If Yes' branche add a Outlook - Send an Email action.
    This action will never be run, so whatever you put in the To, Subject and Body fields doesn't matter. 
  4. In the Attachments Name - 1 and Attachments Content - 1 add  the 'Ask in PowerApps' dynamic content parameter.
  5. Add a SharePoint - Create File action and add the site address and folder path. 
  6. Add the generated dynamic content parameter created during step 4 in the File name and File content fields. 
  7. Make sure they match up correctly to Outlook Attachments - 1 fields. 
  8. Add the Flow to execute from within your app and make sure to provide the requested parameters (file name & file content). File name you need to generate yourself (for example GUID(). & ".jpg"). For the file content you can use the output of the Add Image control (appres://blobmanager/.... etc.).

 

And run!

Tried it out today. Works like a charm (allthough a little bit weird work around).

View solution in original post

6 REPLIES 6
Jek
Level: Powered On

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

I have the same exact problem. Unfortunately I haven't figured out a solution yet.
I am starting to think that there might just not be a solution at this point...

lumayara1
Level: Powered On

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

I have the same problem.. this is so upsetting

Highlighted
IT-Tika
Level: Power Up

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

Same problem here. Man Sad

jgomez-lobo
Level: Powered On

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

Same problem here, please fix it

Rebetcha
Level 10

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

Hi @jeanshak ,

 

There is a hack through Flow to solve this issue.

Have a look at this blog by John Liu.

http://johnliu.net/blog/2019/4/flowninja-hack-87-lock-microsoft-flow-powerapps-trigger-to-upload-ima...

 

You can skip the first part of the blog where he dives into the code of diveren connectors to find the sollution. The 2nd part of the blog describeds the hack.

 

Basically the steps are:

  1. Create a Flow triggered from PowerApps
  2. Add a condition that will result in a false output (for example 1 = 2)
  3. In the 'If Yes' branche add a Outlook - Send an Email action.
    This action will never be run, so whatever you put in the To, Subject and Body fields doesn't matter. 
  4. In the Attachments Name - 1 and Attachments Content - 1 add  the 'Ask in PowerApps' dynamic content parameter.
  5. Add a SharePoint - Create File action and add the site address and folder path. 
  6. Add the generated dynamic content parameter created during step 4 in the File name and File content fields. 
  7. Make sure they match up correctly to Outlook Attachments - 1 fields. 
  8. Add the Flow to execute from within your app and make sure to provide the requested parameters (file name & file content). File name you need to generate yourself (for example GUID(). & ".jpg"). For the file content you can use the output of the Add Image control (appres://blobmanager/.... etc.).

 

And run!

Tried it out today. Works like a charm (allthough a little bit weird work around).

View solution in original post

bartekg
Level: Powered On

Re: Photo from PowerApps Pick Picture (appres / blobmanager)

Good job @Rebetcha. It works 🙂

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: 398 members 6,252 guests
Please welcome our newest community members: