Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tfilefetch and file extension

Hi,
is there a way to get the file extension (.jpeg, .gif, .bmp for exemple) of a file fetched with a tfilefetch component ?
Thanks
Regards
Labels (2)
11 Replies
Anonymous
Not applicable
Author

I dont understand your question, I think all is in previous posts....
The aim of my job is very simple: fetch a file from an URI (see URI example in previous post) and get the extension of the file (pdf or jpeg for example).
Regards
_AnonymousUser
Specialist III
Specialist III

String fileName = input_row.fileName;
globalMap.put("fileName", row1.fileName);

if (row1.fileName.startsWith("Sample")){
System.out.println((String)row1.fileName);
}
I'm using this code to get the excel file and convert it to pdf.
Now I wanted to get all the xlsx file in my directory by not using the filename of the excel file but by it's file type. Do you have any idea?
Thanks!