How can if get the file name of incomming FTPbd binary file

I am using webMethods 6.0 Integration Server, with an FTP port configured. When an FTP client does a ‘put’ to the Integration Server, the file shows up in the named flow service (in the ‘/ns/flowservice’ directry) as a content stream object. I can get the content of the input file and store it on the file system by doing a writeToFile, but what I need to be able to do is get the original name of the imcomming file (so I can use it for naming the file that I store. The file is binary, so the FlatFile package doesn’t seem to apply.) Is there a way to get the name of the incomming file from within the flow service that is executing?

Can anyone give me some pointers on this?

Stan,

Use the pub.flow:getTransportInfo Service to get the filename and other details.This serivce will workfor (FTP,SMTP,HTTP)transports.

Regards,

You may use pub.flow:getTransportInfo built-in service to get filename and other details. This service woks for email, ftp and http protocols.

Kazi and RMG … thanks for the help. Just what I was looking for.

Regards,
Stan