Storing the attachments received by webService call as input in a directory

Hi All,

I am able to send attachments(pdf,jpg) as inputs to a webService call . Using pub.soap.utils:getXOPObjectContent the attachments can be seen as bytes,64base string or stream . Now i want this attachment to be stored in some directory path . I passed the the output of pub.soap.utils:getXOPObjectContent to bytesTofile ans StreamToFile services giving appropriate file name but the file is not created . kindly let me know hpw this can be handled.


Is there any error message when the file is written?
using both bytesToFile and StreamToFile seems redundant.
use just BytesToFile, since you already have it as bytes.

Also check FS permissions. Check logs during execution of service to find any failure reasons.