Forum Discussion

subhaD's avatar
subhaD
Contributor
6 years ago

REST-POST-application/octet-stream - save to file - send to next request

I am trying to save the response from post req to a file in file system, the response is in octet- stream 

I am using groovy to write raw response to file, but raw response has headers, I want only messy data from response in a file. 

 

I will passing this file to next request. 
any help is appreciated.

  • Hi,

     

    If you're you need to pass on a response attribute onto a subsequent response - cant you just use the property transfer and datasink out of the box functionality to do this? 

     

    i.e. use the property transfer function to pass the attribute value to the subsequent request and property transfer to the datasink (file) type?

     

    Perhaps I am misunderstanding something?

     

    Cheers,

     

    richie

     

     

  • richie's avatar
    richie
    Community Hero

    Hi,

     

    If you're you need to pass on a response attribute onto a subsequent response - cant you just use the property transfer and datasink out of the box functionality to do this? 

     

    i.e. use the property transfer function to pass the attribute value to the subsequent request and property transfer to the datasink (file) type?

     

    Perhaps I am misunderstanding something?

     

    Cheers,

     

    richie