cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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
Highlighted

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
Highlighted
Helper I
Helper I

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...

Highlighted
Frequent Visitor

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

I have the same problem.. this is so upsetting

Highlighted
New Member

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

Same problem here. Man Sad

Highlighted
Anonymous
Not applicable

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

Same problem here, please fix it

Highlighted

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

Highlighted
Advocate II
Advocate II

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

Good job @Rebetcha. It works 🙂

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (12,659)