how to make java byte array to reactJS video

I’m receiveing file from java api server and i have to make it to video in react JS.

java api server makes video file to byte array with Files.readAllBytes(file)

and i have to use this video file byte array to make video file at react JS

i have no idea that when byte array passed from java api server, make it to video file


I changed java api server to send base64 encoded byte array and did it with base64 string

<video src={'data:video/mp4;base64,' + base64-String} />