Relative Content

Tag Archive for javaspringspring-bootspring-webflux

Why can’t you send a byte array in the response body?

I have a service that returns a byte array according to the Range header. If I just write this array into the response body, then rewinding the video does not work, but if I use ByteBuffer for the response, everything will work fine. Why?