File was renamed from pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/rtuLog/ByteArrayHttpMessageConverter.java |
| | |
| | | package com.dy.pipIrrMwTestWeb.rtuLog; |
| | | package com.dy.pipIrrGlobal.config; |
| | | |
| | | import org.springframework.http.HttpInputMessage; |
| | | import org.springframework.http.HttpOutputMessage; |
| | |
| | | import org.springframework.http.converter.AbstractHttpMessageConverter; |
| | | import org.springframework.http.converter.HttpMessageNotReadableException; |
| | | import org.springframework.http.converter.HttpMessageNotWritableException; |
| | | import org.springframework.util.StreamUtils; |
| | | |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | |
| | | @Override |
| | | protected byte[] readInternal(Class<? extends byte[]> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException { |
| | | // Read the byte array from the input message |
| | | return org.springframework.util.StreamUtils.copyToByteArray(inputMessage.getBody()); |
| | | return StreamUtils.copyToByteArray(inputMessage.getBody()); |
| | | } |
| | | |
| | | @Override |