Sep 29, 2015 07:29 AM
by Stefan Ritter
Hi,
---
$ dcmdump IM000001
E: DcmElement: Unknown Tag & Data (4b50,0403) larger (524308) than remaining bytes in file
E: dcmdump: I/O suspension or premature end of stream: reading file: IM000001
$ unzip IM000001
Archive: IM000001
inflating: _828114
$ dcmdump _828114 | head -n 2
# Dicom-File-Format
---
is there a way to view "zipped" DICOM files or is that something off standard stuff?
Best regards
Stefan
Sep 29, 2015 07:35 AM
by Stefan Ritter
I find out that the file opens when I rename it to $filename.zip. Unfortunately we get CDs with files without the zip ending. Maybe you can do some magic byte sorcery? ;)
Oct 1, 2015 10:55 AM
by Guest
I already did, but for Bash.
#!/bin/bash
mkdir UNZIP # inside DICOM folder
count=1
find -type f | while read line; do
mkdir UNZIP/$count/ # in case of same filenames in zip files
unzip $line -d UNZIP/$count/
count=$((count+1))
done