Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set binary file type after login #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified libraries/CTP.jar
Binary file not shown.
Binary file modified products/CTP-installer.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public DicomPaletteImageConverter(Element element) {
* Process a DicomObject, logging the filename and returning the processed object.
* If the object is not a DicomObject, pass the object unmodified.
* If the object is not an image, pass the object unmodified.
* If the object does not have PhotometricInterpretation PALETTECOLOR, pass the object unmodified.
* If the object does not have PhotometricInterpretation PALETTE COLOR, pass the object unmodified.
* @param fileObject the object to process.
* @return the processed FileObject.
*/
Expand Down Expand Up @@ -72,4 +72,4 @@ else if (status.isQUARANTINE()) {
return fileObject;
}

}
}
2 changes: 1 addition & 1 deletion source/java/org/rsna/ctp/stdstages/FtpsExportService.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ private Status send(FileObject fileObject) {
client.connect(host, port);
int reply = client.getReplyCode();
if (FTPReply.isPositiveCompletion(reply)) {
client.setFileType(FTP.BINARY_FILE_TYPE);

//Login
if (client.login(username, password)) {
client.execPBSZ(0); // Set protection buffer size
client.execPROT("P"); // Set data channel protection to private
client.enterLocalPassiveMode();
client.setFileType(FTP.BINARY_FILE_TYPE);

//Change to the remote directory
if (cd(client, remoteDirPath) ) {
Expand Down