All image file support

I can use Directory.GetFiles(“path”,"*.JPG")

but I want to support both png and jpg both

Hi @Aarti_Godhasara1,
This method allow only for one element. But why instead you will not search just for “*.” and then sort it out?
Here is usefull topic about it: