You do not need to create an image object; you just want to return the raw data.
The browser will read the raw data into the image.
return File(byteArray, "image/png");
Obviously, you need to pass the correct type of content, depending on which image format is in the byte array.