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 / How to confirm a .jpg ...
Power Automate
Unanswered

How to confirm a .jpg file or .png file is an image using Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 2

Hi, I downloaded a .jpg extension file using Invoke webservice, file got downloaded, but upon opening that image, it is displaying "not a valid file" error, I need help in confirming whether a selected .jpg file or .png file is an image or not

 

Thanks

I have the same question (0)
  • CristinaValdes Profile Picture
    65 on at

    Hi,

    you should confirm if you webservice when download the file it´s a base64 file. Exist a command "convert base64 to file", with this you can convert the file.

  • HG21 Profile Picture
    2 on at

    HG21_0-1704301243787.png

    Although, I can convert base64 to file, but actually the file itself is not an image, and I want to validate this file, whether its a valid image file or not

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Why would your web service return an invalid file? It should generally be valid, but your flow that downloads it might be broken. You may need to look into that, instead of trying to validate the file after downloading it.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard