Help !!response.getBodyContent().writeTo() Failed

response = WS.sendRequest(findTestObject(‘API/item-export’))

FileOutputStream outFile =new FileOutputStream(new File(“D:\item7.xlsx”))

response.getBodyContent().writeTo(outFile)

Excel is saved, but it won’t open properly.If you save with Postman, Excel will open as normal.
I compared the sizes of the two files and found that the byte sizes were different: