How to get text/xml as UTF-8 from a multipart/form-data request with RESTeasy?

前端 未结 2 1523
慢半拍i
慢半拍i 2021-01-23 10:37

thanks for your answer, but using an InputStream instead of using getBody(...) does also not work. The code below returns the same result as the one from my original post.

2条回答
  •  猫巷女王i
    2021-01-23 11:08

    I generally would not rely on the getBody method on InputPart. You can actually get each part as a raw input stream and read the data in yourself. Rather than relying on the framework to convert the content to a String.

提交回复
热议问题