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.

  1. is standard way display images manually?

  2. is browser when renders img tag , sees src attribute references uri?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -