Hello,
i use the StoreSCP to recive files in JPEG Lossless format.
But the files are not stored with a .dcm extension, i need the .dcm extension.
Can any one help me?
thanks
André
StoreSCP an file extension ?
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 1493
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
There is no command line option that would allow you to do this. However, the change is simple. The code that generates the filename is in file dcmnet/apps/storescp.cc. Look for the two lines starting with "sprintf(imageFileName" and change the filename generation routine as you like. Recompile, done.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Alternatively, you could also use the command line option --exec-on-reception (-xcr) to call a program or script in order to rename the file, e.g. on Unix:
Code: Select all
storescp -v -xcr "mv #f #f.dcm" 9876
-
- Posts: 4
- Joined: Thu, 2005-02-24, 09:54
-
- DCMTK Developer
- Posts: 117
- Joined: Tue, 2004-11-02, 17:21
- Location: Oldenburg, Germany
- Contact:
Who is online
Users browsing this forum: Bing [Bot] and 1 guest