I have many file types: pdf, tiff, jpeg, bmp. etc. My question is how can I change file extension? I tried this:
my file= c:/my documents/my images/cars/a.jp
The method GetFileNameWithoutExtension, as the name implies, does not return the extension on the file. In your case, it would only return "a". You want to append your ".Jpeg" to that result. However, at a different level, this seems strange, as image files have different metadata and cannot be converted so easily.