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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Store photo on Sharepoint
Power Apps
Answered

Store photo on Sharepoint

(0) ShareShare
ReportReport
Posted on by 74

Hi everyone,

 

I'm trying to build an app wich store some photo tanks to camera controler in a folder in sharepoint. For the moment I can create a file and store it in the good folder but the file is not a picture.

So I'm testing a new flow wich is able to covert this file in picture but i don't understand why it don't works. Thanks to my new flow I can go on the good floder but there is no file (photo) wich is created.  (My app is not the problem)

 

Thanks for your help !

Capture2.PNG
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JérômeD :

    Do you want to upload the photo taken over the phone to the SharePoint library?

    If so,I've made a test  for your reference:
    1\Add a camera control(Camera1)

    2\Create a flow('PowerAppV2->Compose,Createfile')

    v-bofeng-msft_0-1622452192244.png

    /*This flow's trigger is PowerAppV2*/

    3\Add a button and set it's OnSelect property to:

    Set(Thepic,JSON(Camera1.Photo,JSONFormat.IncludeBinaryData));
    Set(Base64Only,Mid(Thepic,Find(",",Thepic)+1,Len(Thepic)-Find(",",Thepic)-1));
    'PowerAppV2->Compose,Createfile'.Run("ThePic.jpg",Base64Only)

    TheResult

    v-bofeng-msft_1-1622452310539.png

    In addition,your flow did not add the file suffix ".jpg" when setting the name of the file to be created

    Best Regards,

    Bof

     

     

  • JérômeD Profile Picture
    74 on at

    Thanks a lot for your answer, it's exactly what I need.

     

    I just have some probleme with  the button property :

     

    Sans titre.png

    I don't understand what is the point of FileConcat and his relation with the function (base64tobinary...) and what is "text_1" in this function.

     

    I don't know if my explanations are clear for you, thanks a lot for your help !

     

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JérômeD :

    Maybe on your side the formula should be:

    Set(Thepic;JSON(Camera1.Photo;JSONFormat.IncludeBinaryData));;
    Set(Base64Only;Mid(Thepic;Find(",";Thepic)+1;Len(Thepic)-Find(",";Thepic)-1));;
    'PowerAppV2->Compose,Createfile'.Run("ThePic.jpg";Base64Only)

     

    v-bofeng-msft_0-1622509158627.png

    Formula separators and chaining operator

    Best Regards,

    Bof

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard