String dataDir = "C:\\Diagram\\test2389\\";
com.aspose.diagram.FileFormatInfo info = com.aspose.diagram.FileFormatUtil.detectFileFormat(dataDir + "test.txt");
// Get the detected file format
System.out.println(info.getFileFormatType() == com.aspose.diagram.FileFormatType.VDX);
Yes, you can follow the same approach for all listed formats in this text file: formats.zip (425 Bytes)
We managed to replicate the problem of incorrect file format detection. It has been logged under the ticket ID DIAGRAMJAVA-50597 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.
The linked ticket ID DIAGRAMJAVA-50597 has been resolved and will be included in the next version 18.4 of Aspose.Diagram for Java API. We will notify you once it is published. We have logged a separate ticket ID DIAGRAMJAVA-50598 in our bug tracking system to address the problem of ICML file. We will keep you informed regarding any available updates.
The linked ticket ID DIAGRAMJAVA-50598 has been fixed and will be included in the next version 18.4 of Aspose.Diagram for Java API. We will notify you once the next version is published.
The issues you have found earlier (filed as DIAGRAMJAVA-50597,DIAGRAMJAVA-50598) have been fixed in Aspose.Diagram for Java 18.4. This message was posted using BugNotificationTool from Downloads module by imran.rafique
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.