I am using stream scan java api to get a file scanned.
this is what i use from the API doc, there is no explanation on what the actualFileName is.
OriginalFileName is the the name of the file i want scanned
actualFileName - i have no idea what this needs to be. If it means what the file will land as on the SPE server? what do i care? Even if i do care, what name should i give this file? same name as my original file?
i tried leaving it empty but it fails. [ error message - all attempts to connect to SPE failed ]
Please help. Thanks.
createStreamScanRequest
public StreamScanRequest createStreamScanRequest(java.lang.String actualFileName,
java.lang.String originalFileName,
java.io.OutputStream outputFileName,
Policy policy)
throws ScanException
The createStreamScanRequest method creates a StreamScanRequest with the specified Policy.
Parameters:
originalFileName - it is the name of the file to be scanned.
outputFileName - the name(path) of the file where the scanned file will be saved
policy - it is the enum and user has to choos the policy according to the requirement
Returns:
StreamScanRequest instance
Throws:
ScanException