Http response: Cannot convert JSON into stream
问题 I have an API in JAVA to upload a zip file to a server in Delphi, and I am doing it as follows: DSRESTConnection conn = new DSRESTConnection(); conn.setHost("example.com"); conn.setPort(8080); TServerMethods1 proxy = new TServerMethods1(conn); try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); BufferedOutputStream bos = new BufferedOutputStream(baos); ZipOutputStream zos = new ZipOutputStream(bos); zos.putNextEntry(new ZipEntry("test.json")); byte[] bytes = inputJson.getBytes();