ContributionsMost RecentMost LikesSolutionsRe: Trying to download attachment in response Yes, I do see my response image(Encoded) in XML tab with encoded data. with Content type.. Re: Trying to download attachment in response Yes , It did work , but now the problem is , it always write it in to same filename. The issue is the document which get in response has different name and filetype. So don't know how to make it dynamic. Re: Trying to download attachment in response While trying to put groovy script "def testStep = testRunner.testCase.getTestStepByName( "Request_1" ) def response = testStep.testRequest.response def outFile = new java.io.FileOutputStream( "C:\\Users\\Documents\\myfile.jpg") def ins = response.attachments[0].inputStream com.eviware.soapui.support.Tools.writeAll( outFile, ins ) ins.close() outFile.close() step I am getting below error java.lang.ArraylndexOutOfBoundsException: 0 error at line: 5 One more thing i want to mention my response itself is a document, and not an attachment. So basically i want to download response. below is my response. Re: Trying to download attachment in response I tried that ,it didn't work. Trying to download attachment in response Is there a way from Ready APi to save an attachment in a response in my local directory? Thanks for any input / ideas.. Solved