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

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

 

Onedrive.png
Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee 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

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard