I'm trying to use the dicomezer.jpg method to convert a jpg to dicom, but it fails with "Missing SOS segment in JPEG stream". I have used 3 different programs to create a jpg, it failed the same way with all 3 files.
I'm confused because I can see that the code is the same as that in dcm4che2.jpg2dcm, which does successfully process the same files.
Example file attached.
I'm trying to use the dicomezer.jpg method to convert a jpg to dicom, but it fails with "Missing SOS segment in JPEG stream". I have used 3 different programs to create a jpg, it failed the same way with all 3 files.
I'm confused because I can see that the code is the same as that in dcm4che2.jpg2dcm, which does successfully process the same files. Example file attached.