Hi @saj42saj,
The FTPCaller doesn't seem to be able to create a binary file upload from an attribute. The transformer seems to be converting the binary values to hex before uploading. I have created a problem report for this issue (FMEENGINE-57600), and will notify you as soon as it is fixed.
In the meantime, you can use the TempPathnameCreator transformer to create a temporary path for the HTTPCaller to download the files to. This folder will be removed as soon as the workspace is finished, so you don't need to do any cleanup.
I am attaching a workspace illustrating how to download a PDF file in the HTTPCaller, get its proper name from the header records, then upload it using the FTPCaller.
UploadFrom HTTP.fmw
Hi @DaveAtSafe, thanks for that.
We cannot get the file name from flat pdf files as the header doesn't contain the right element. We used a similar concept to split the url apart based on forward slash then extract the file name from the last entry in the list.
Thanks for the introduction to a couple of new transformers :-)