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 / Send picture to sharep...
Power Apps
Unanswered

Send picture to sharepoint

(0) ShareShare
ReportReport
Posted on by 74

Hello,

 

I made an app wich take picure then send it to sharepoint, all it's ok but my user whant to use the flash light of the device.

 

I used camera control to do this but it's impossible, I need to use "Add a picture" controle thanks to the native camera of the device will be usable.

 

But now, I don't know how to send this picture to my sharepoint. This is what I made with the camera control and a button :

 

 

Set(Thepic;JSON(CameraBSO.Stream;JSONFormat.IncludeBinaryData));;
Set(Base64Only;Mid(Thepic;Find(",";Thepic)+1;Len(Thepic)-Find(",";Thepic)-1));;
GestionPhotoBSO2.Run(Text( Now(); "yyyy/mm/dd_hh:mm:ss" );Base64Only;NumCDVBGA.Text)

 

With CameraBSO = camera control

GestionPhotoBSO2 = power automate flux :

JrmeD_0-1718269186849.png

I tried to change CameraBSO.Stream (=camera control) by CameraBSO.Media (= add picture control) but it's don't works. 

 

Someone have an idea ?

 

Thanks,

Jérôme

 

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

    Hi @JérômeD ,

     

    Please try:

    GestionPhotoBSO2.Run(
     Text( Now(); "yyyy/mm/dd_hh:mm:ss" ); 
     Substitute(JSON(UploadedImage1.Image;JSONFormat.IncludeBinaryData);"""";"");
     NumCDVBGA.Text
    )

    And use dataUriToBinary function instead of base64ToBinary in your flow.

     

    Best Regards,

    Bof

  • WarrenBelz Profile Picture
    155,775 Most Valuable Professional on at

    Hi @JérômeD ,

    This is much simpler using the Power Apps V2 trigger (I see you are already using this) by simply sending the image directly as per this blog of mine. You don't need and JSON / Base64 conversions at either end.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard