PDF file transfer with FileTransferSubsystem
Hi Developers,
I'm trying to transfer pdf files between repositories.
the method I'm using is in the below.
I can transfer xml files with the following method but cannot transfer pdf files.
it seems that all binary files cannot be transferred with the following method.
if so, how can we transfer binary files ?
our thingworx version is ThingWorx 9.2.6-b366 -
var target_repo = me.name;
var target_path = "/in";
var target_filename=filename;
var params = {
async: false /* BOOLEAN */,
sourceRepo: repo /* STRING */,
targetRepo: target_repo/* STRING */,
targetFile: target_filename /* STRING */,
targetPath:target_path /* STRING */,
sourceFile: target_filename /* STRING */,
sourcePath: path /* STRING */,
timeout: 60 /* INTEGER */
};
result = Subsystems["FileTransferSubsystem"].Copy(params);
Thanks and Regards,

