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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -