wuzeyu
2024-08-29 de890b3e1f5050e699ea9d9bebb0ab3ce0b7d207
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/ByteArrayHttpMessageConverter.java
File was renamed from pipIrr-platform/pipIrr-web/pipIrr-mwTest-web/src/main/java/com/dy/pipIrrMwTestWeb/rtuLog/ByteArrayHttpMessageConverter.java
@@ -1,4 +1,4 @@
package com.dy.pipIrrMwTestWeb.rtuLog;
package com.dy.pipIrrGlobal.config;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
@@ -6,6 +6,7 @@
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;
@@ -29,7 +30,7 @@
    @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