Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read files with specific tranfert syntax using EvilDICOM.Core.IO.Reading.DICOMFileReader.Read #56

Open
silvan-salgues-intrasense opened this issue Apr 13, 2018 · 0 comments

Comments

@silvan-salgues-intrasense
Copy link

Hi,

I used this library in visualisation station DICOM fonctionalities tests. In this context, I try to read some DICOM files with different transfer syntax.
I encounter issues with JPEG_SpectralSelectionNon-Hierarchical_6-8 1.2.840.10008.1.2.4.53

---> code :
static void Main(string[] args)
{
DICOMObject dcmObject = DICOMObject.Read(args[0]);
foreach (IDICOMElement item in dcmObject.AllElements)
{
Console.WriteLine(item);
}
}

---> I paste the stacktrace :
Unhandled Exception: System.OverflowException: Arithmetic operation resulted in an overflow.
at EvilDICOM.Core.IO.Reading.DICOMBinaryReader.ReadBytes(Int32 count)
at EvilDICOM.Core.IO.Reading.DataReader.ReadLittleEndian(Int32 lengthToRead, DICOMBinaryReader dr, TransferSyntax syntax)
at EvilDICOM.Core.IO.Reading.DICOMElementReader.ReadElementImplicitLittleEndian(DICOMBinaryReader dr, StringEncoding enc)
at EvilDICOM.Core.IO.Reading.DICOMElementReader.ReadAllElementsImplicitLittleEndian(DICOMBinaryReader dr, StringEncoding enc)
at EvilDICOM.Core.IO.Reading.DICOMElementReader.ReadAllElements(DICOMBinaryReader dr, TransferSyntax syntax, StringEncoding enc)
at EvilDICOM.Core.IO.Reading.DICOMFileReader.Read(String filePath, TransferSyntax trySyntax)
at EvilDICOM.Core.DICOMObject.Read(String filePath, TransferSyntax trySyntax)
at TestDicom.Program.Main(String[] args) in C:\Users\silvan.salgues\Documents\Visual Studio 2015\Projects\TestDicom\TestDicom\Program.cs:line 20

Any ideas?

I've attached the file.
JPEG_SpectralSelectionNon-Hierarchical_6-8_1.2.840.10008.1.2.4.53.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant