Picture loadfromfile without extension - detect image type


I'm having an issue.

We store all our documents externally, including images.

To avoid filename conflicts we rename all files to guid files without extension. We keep a reference in the database with the original filename including the extension and the target filename (guid without extension).

Now I have a report that needs to load images from the file system so I pass the path to the file.

The loadfromfile tries to load the image but gives an error unknow picture extension.

My question: is it possible to have the picture loaded in the picture object giving a filename without extension (fastreport detects the image type)?



Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.