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 Automate / Send Image from Powera...
Power Automate
Unanswered

Send Image from Powerapp to Onedrive

(0) ShareShare
ReportReport
Posted on by 115

Hello,

 

could anybody show me a flow to send an image from Powerapps to my Onedrive?

I can send an image and it states: "the fileformat is not supported" 😞

 

 

I tried these two Codesnippets which both do not work 😞 :

 

Set(VarBase64;JSON(UploadedImage4.Image;JSONFormat.IncludeBinaryData));;


Set(VarBase64Only;Mid(VarBase64;Find(",";VarBase64)+1;Len(VarBase64)-Find(",";VarBase64)-2));;

 

 

Thank you guys

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @noobi ,

     

    I made a sample for you.

    vxiaochenmsft_0-1673495098938.png

    vxiaochenmsft_1-1673495187202.png

    Set(VarBase64;JSON(UploadedImage1.Image;JSONFormat.IncludeBinaryData));;
    'PowerApp->Initializevariable,Createfile'.Run(Substitute(VarBase64;"""";""))

     

    Best Regards,

    Wearsky

  • noobi Profile Picture
    115 on at

    Hello Wearsky,

     

    I solved the issue by uploading the file with sharepoint connector and editing the Code to: 

     

     

     

     

     

    Set(VarBase64;JSON(UploadedImage4.Image;JSONFormat.IncludeBinaryData));;
    Set(VarBase64Only;Mid(VarBase64;Find(",";VarBase64)+1;Len(VarBase64)-Find(",";VarBase64)-1));;
    BildInSharepointLaden.Run(User().Email;VarBase64Only);;

     

     

     

     

    And the example flow (seen in a video from Shane Young):

    FromPowerAppstoSpLibrary.png

     

    Still I want to thank you for showing me how to archive the same with uploading the file directly to my onedrive 🙂

     

    Best Regards,

    noobi

  • MarioOne Profile Picture
    67 on at

    I am looking for similar solution where I am collecting pictures in gallery and I want them now to be saved into OneDrive. I ma lacking the logic related to functions coding and all my attemts failed. Will that be possible for your present all the work broken to steps or at lest show what is written in value for initialize variable?

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard