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

8 REPLIES 8
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 🙂

Highlighted
New Member

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

Hey,

 

is this still working? 

I've been trying to get this function to work for 2 days now and have made countless attempts, unfortunately without success. The instructions are unfortunately all incomplete or something has changed since then? Picture 1 and 2 show my flow. Picture 3 my button in Powerapp and Picture 4 the faulty result in Sharepoint.

 

Thanks in advance. 

BR Felix.

 

 

Picture1.PNGPicture2.PNGPicture3.PNGPicture4.PNG

Highlighted
Regular Visitor

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

Hello everyone,

 

I found a elegant way to save a photo taken in Powerapps in Sharepoint. But the photo will be converted to a PDF. I did not find/search a solution to convert it to jpeg.

 

Here is how I did it:

For the Powerapps Button:

'PowerApps-Flow'.Run(AddMediaButton.FileName;JSON(UploadedImage.Image;IncludeBinaryData));

Bildschirmfoto 2020-10-16 um 11.32.36.png

The Flow looks like this:

Bildschirmfoto 2020-10-16 um 11.15.25.png

Bildschirmfoto 2020-10-16 um 11.31.41.png

Bildschirmfoto 2020-10-16 um 11.15.39.png

I hope it helps someone!

 

Regards

Niklas

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,782)