change storage directories when running the dcm4che 2 server

Skip to first unread message

Jiachen Wang

Jun 28, 2018, 6:42:50 PM6/28/18
to dcm4che
Hi all,

When I'm using dcm4che 2.x SCP service (source code here:, what I need is to change the file storage directory when the server is in running, whenever a certain criterion is met (say the number of files in the current storage directory exceeds 4000). I wonder how I could achieve that? Maybe a change in the source code and recompilation are needed. Thank you so much in advance!


Jon Ander Zuccaro

Jun 28, 2018, 8:58:50 PM6/28/18
to dcm4che
Yes, it is doable, but you should consider installing a full fledged PACS a this point.

You could hard code a list of directories instead or using the directory argument, or receive a comma separated list of paths instead and then alter this method:

protected void store(...

so it uses a different storageDir that matches your criteria.

You do need to change the source code and build it again.
Reply all
Reply to author
0 new messages