Solution Microsoft Power apps and power automate error appres://blobmanager

Solution for Microsoft Power apps and power automate error appres://blobmanager, that will upload corruputed file to Sharepoint:

Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '12861': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value 'appres://blobmanager/10c34f7263814cd2a8f8750449b64a29/1' was not formatted correctly. Please see for usage details.'

1- IT require to use Json on Power apps form on the OnSelect function to transform to binary code file to upload to Sharepoint by Power automate:
Change this by:

This using json:
PowerAppsUploadDocuments.Run(AddMediaButton1.FileName,Substitute(JSON(UploadedImage1.Image, JSONFormat.IncludeBinaryData),””””, “”));