Hello @Poloni
For Power Apps Trigger Upload button, you'll need this code:

Set(varImageJSON,JSON(AddMediaButton1.Media,JSONFormat.IncludeBinaryData));
Set(prepImage,If(
Right(AddMediaButton1.FileName, 3) = "jpg",
Mid(varImageJSON, 25, Len(varImageJSON) - 25),
Right(AddMediaButton1.FileName, 3) = "png",
Mid(varImageJSON, 24, Len(varImageJSON) - 24)
);
'PowerApp->Createfile'.Run(prepImage,AddMediaButton1.FileName)
For Automate, you need to wrap the content with base64ToBinary function.

✔️ | Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION. This helps community members if they experience a similar issue in the future. |