web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Photo from PowerApps P...
Power Apps
Unanswered

Photo from PowerApps Pick Picture (appres / blobmanager)

(0) ShareShare
ReportReport
Posted on by 99

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. 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

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

  • Community Power Platform Member Profile Picture
    on at

    I have the same problem.. this is so upsetting

  • IT-Tika Profile Picture
    2 on at

    Same problem here. Man Sad

  • Community Power Platform Member Profile Picture
    on at

    Same problem here, please fix it

  • Verified answer
    Rebetcha Profile Picture
    645 on at

    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-images-to-sharepoint-with-ease

     

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

  • bartekg Profile Picture
    14 on at

    Good job @Rebetcha. It works 🙂

  • FelixH92 Profile Picture
    2 on at

    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

  • Niklas96 Profile Picture
    2 on at

    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

  • Gilles12 Profile Picture
    121 on at
    Hello. I found this page while trying to deal with the same issue (6 years after!). I don't find a relevant answer on this page.

    This is my post from yesterday: How to handle image conversion with the AddMedia control?

    If ever since then you have found a solution, this is not understandable to have it work perfectly a few months ago, and then suddenly this issue appears (the apres:// url instead of the real image content).

    Thanks if you or someone can help!

    Gilles.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard