Dont know about the library but any byte array in javascript can be converted to base64 and referenced via a data url