Skip to content Skip to sidebar Skip to footer

Html Image Tag With Base64 String (data Uri)

I get binary data of jpeg images from a series of httprequests about every 50-200 ms, I convert this data to a base64 string and insert the string in the img tag with javascript. v

Solution 1:

I'm sorry to say this, but for animations like this (5-20fps; realtime), Javascript and a HTTP-request-per-frame is not the right solution. You need video streaming. Otherwise, try as you might, the video will be out of sync, and the server will be overloaded with only a few people using it.


Post a Comment for "Html Image Tag With Base64 String (data Uri)"