javascript - Is it necessary to convert a bytearray of PNG data to base64 before rendering it on a page? -
i have file contains multiple png images (along other types of data). think of zip file or other archive format.
upon receiving response server, receive bytearray containing of data need.
i proceed parse it, extracting png data in process.
after parsing finished, have collection of bytearrays hold png data, , draw them webpage.
many examples i've looked @ each byte array must converted base64, , use src
image, can used draw on canvas.
is standard way display images manually?
is browser when renders
img
tag , seessrc
attribute references uri?
Comments
Post a Comment