I have this line in my code
PdfImage.Initialize(PDFjet,File.OpenInput(lfolder,imagenname),PDFjetConstants1.ImageType.JPG)
After select the image, that happens to be a PNG file, I don't know what extension the file has, so I copy it with jpg.
The problem arises when pdfjet initialize the object, expecting a jpg file, while the real file is Png. It crash.
How do I know the extension of the file after using ContentChooser to select the file from gallery and copy to a folder?
Thanks