You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It cannot be converted back to dcm file, json2dcm fails with the exception:
json2dcm: JsonParser#getString() is valid only KEY_NAME, VALUE_STRING, VALUE_NUMBER parser states. But current parser state is START_OBJECT
java.lang.IllegalStateException: JsonParser#getString() is valid only KEY_NAME, VALUE_STRING, VALUE_NUMBER parser states. But current parser state is START_OBJECT
at org.glassfish.json.JsonParserImpl.getString(JsonParserImpl.java:91)
at org.dcm4che3.json.JSONReader.getString(JSONReader.java:98)
at org.dcm4che3.json.JSONReader.readDataFragment(JSONReader.java:346)
at org.dcm4che3.json.JSONReader.readDataFragments(JSONReader.java:274)
at org.dcm4che3.json.JSONReader.readAttribute(JSONReader.java:178)
at org.dcm4che3.json.JSONReader.doReadDataset(JSONReader.java:141)
at org.dcm4che3.json.JSONReader.readDataset(JSONReader.java:121)
at org.dcm4che3.tool.json2dcm.Json2Dcm.parseJSON(Json2Dcm.java:377)
at org.dcm4che3.tool.json2dcm.Json2Dcm.mergeJSON(Json2Dcm.java:358)
at org.dcm4che3.tool.json2dcm.Json2Dcm.main(Json2Dcm.java:258)
fixing this issue requires patching:
JSONWriter.writeValue(Value value, boolean bigEndian)
to fix direct call
JSONWriter jsonWriter = new JSONWriter( jsonGen );
jsonWriter.write(dataset);
JSONWriter.readValue(DicomInputStream dis, Fragments frags)
to fix indirect call
DicomInputStream dis = new DicomInputStream(new File(fname));
JSONWriter jsonWriter = new JSONWriter(jsonGen);
dis.setDicomInputHandler(jsonWriter);
dis.readDataset(-1, -1);
The text was updated successfully, but these errors were encountered:
lexxoff
added a commit
to lexxoff/dcm4che
that referenced
this issue
Mar 21, 2018
Given a dcm file with Pixel data split into two items:
After converting it with dcm2json tool with the flag "--with-bulkdata"
The result is:
It cannot be converted back to dcm file, json2dcm fails with the exception:
fixing this issue requires patching:
to fix direct call
to fix indirect call
The text was updated successfully, but these errors were encountered: