Question: Is the 25 seconds because of the fact that images are trasnferred first and then converted to bytes? I ask this since I think if you are loading these from data table rows, media objects are not cached so require to be fetched from the server.
I don’t remember seeing this kind of delay when using get_bytes
on an image solely on the client side.
Have al ook at this solution to a similar problem I was having. It uses base64 endcoding to which you can then return from the server.