Hello,
I'm adapting @Shanescows tutorial here to send multiple images to Flow using the JSON function. This worked great until recently. After some troubleshooting, it appears that PowerApps is encoding all images taken from my iPhone as JPEG's where as before I'm fairly certain they were PNG's.
JPEG's aren't being converted in Flow correctly because of the Mid function.
Examples:
PNG's:
JPEG's:
Does anyone know where the base64 begins in a JPEG string?
THanks!
Solved! Go to Solution.
Wahoo! Got it!
Basically:
If(
Right(btnUpload.FileName, 3) = "jpg",
Mid(varJson, 25, Len(varJson) - 25),
Right(btnUpload.FileName, 3) = "png",
Mid(varJson, 24, Len(varJson) - 24)
)
Wahoo! Got it!
Basically:
If(
Right(btnUpload.FileName, 3) = "jpg",
Mid(varJson, 25, Len(varJson) - 25),
Right(btnUpload.FileName, 3) = "png",
Mid(varJson, 24, Len(varJson) - 24)
)
Hm...bummer. This gets the Flow to work, but neither PNG nor JPEG images show up correctly in Sharepoint. Does anyone have some troubleshooting ideas for this?
To recap:
Thanks!
That' wonderful.
Best regards,
Sik
Figured out what my second issue was...
My UI/UX is multi-step. There was a second place in my app where I was applying the Mid() statement (thus pulling off too many characters and making the Base64 invalid). I removed the second Mid() statement and now the images (BOTH JPG and PNG) are coming through fine!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
190 | |
69 | |
50 | |
38 | |
28 |
User | Count |
---|---|
243 | |
112 | |
91 | |
91 | |
71 |