Is there a way to output to a compressed file?

29 views
Skip to first unread message

mark.l...@chp.edu

unread,
Mar 3, 2021, 9:40:31 AM3/3/21
to RSNA MIRC CTP/TFS User Group
I have a trial starting with Bioclinica, and they want the studies submitted in ZIP format.

I am just wondering if there's a way for the CTP system to create a compressed ZIP file of the study, in order to eliminate the extra step of having to manually compress after the study has been processed.

Thanks!
- Mark

John Perry

unread,
Mar 3, 2021, 11:10:09 AM3/3/21
to rsnas-ctpmir...@googlegroups.com
Mark:
 
Do they want a zip file to encapsulate a single study, or are they just looking to use zip for compression during transmission?
 
CTP doesn't have a StorageService that stores objects in zip files. It would be easy to add a zip output feature to the StorageServlet that is part of the FileStorageService pipeline stage, but you would still have to manually access the servlet to get it to save the zip file of the study for you.
 
Are you planning to use CTP to send the files to Bioclinica? If what protocol to they use?
 
The HttpExportService has a mode for sending objects in zip files. To use it, you include a compressor child element, specifying the number of files to include in the zip files by setting the cacheSize attribute. It doesn't group by patient study, though, it just puts images in a cache until the cache is full and then sends the cache as a zip file. So, for example, if images for multiple patients are processed simultaneously, the images will be cached in the order they were processed and thus intermixed in the zip files, and of course, depending on the cache size, a study might be split across multiple zip files.
 
JP
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rsnas-ctpmirc-user-group/e04b5ce6-4658-4840-ba63-9bb399b86aa4n%40googlegroups.com.

mark.l...@chp.edu

unread,
Mar 3, 2021, 2:35:46 PM3/3/21
to RSNA MIRC CTP/TFS User Group
John,

To be honest, I'm not sure why they only accept submissions in a single compressed file, but I suspect it's to minimize the transmission time.

It seems the most simple way to zip these is manually, so I"ll just stick with that :)

Thanks for the always quick reply!!

- Mark
Reply all
Reply to author
Forward
0 new messages