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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -