Free Support Forum - aspose.com

Wrong file format detection

Hi,

Seems like your API (version 21.4) doesn’t detect load formats correctly. As said in documentation (https://docs.aspose.com/diagram/net/supported-file-formats/), both VSS and VST formats could be loaded. Here is my code:

string input = @"C:\input.vst";
//string input = @"C:\input.vss";

using (FileStream fs = new FileStream(input, FileMode.Open, FileAccess.Read))
{
    Console.WriteLine("File name: " + fs.Name);

    Aspose.Diagram.FileFormatInfo diagramFileFormatInfo = Aspose.Diagram.FileFormatUtil.DetectFileFormat(fs);
            
    Console.WriteLine("Load format: " + diagramFileFormatInfo.LoadFormat);
    Console.WriteLine("File format type: " + diagramFileFormatInfo.FileFormatType + "\n");
}

As you can see both these files are being detected like vsd (check attached screenshot).
Vss and vst files are aslso attached to this topic.

Regards,
Alex

image.png (1.5 KB)
files.zip (201.5 KB)

@AlexBilakovskyi

We have logged an issue as DIAGRAMNET-52022 in our issue tracking system for this case. We will further investigate the issue in details and keep you posted with the status of ticket resolution. Please be patient and spare us some time.

We apologize for your inconvenience.

@asad.ali

Thanks for reaction! I have found similar behaviour with *.vsx files. My input.vsx file (attached in archive) is detected as VDX file (please check attached screenshoot).

vsxFile.zip (9.2 KB)
image.png (18.0 KB)

@AlexBilakovskyi

We have updated the ticket information accordingly and will surely investigate it accordingly. We will inform you once we have additional updates in this regard.

We apologize for the inconvenience.