spring-framework / org.springframework.web.util / ContentCachingRequestWrapper / getContentAsByteArray

getContentAsByteArray

open fun getContentAsByteArray(): ByteArray

Return the cached request content as a byte array.

The returned array will never be larger than the content cache limit.

See Also
#ContentCachingRequestWrapper(HttpServletRequest, int)