You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a project I worked on a while back, we had to fetch tons of small images from urls. We instead started sending down the base64 encoding instead of the url, which saved us a round-trip in fetching the image. For a small image like this (16 x 16), the extra bandwidth to send the encoded text is negligible compared to the cost of opening another http request and pulling down the image.
The text was updated successfully, but these errors were encountered:
For the image object, it would be nice to allow small images to just send back their base64 encoding, as opposed to the URL. Something like this:
"16s": {
"height": 16,
"width": 16,
"base64": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1woICQIzztyOYgAAAHVJREFUeNpj/P//f3t7OwNuICwsnJaWBueyQKjExABcGjZtOhwWFrZq1SoUDRISmrjtOLxq1Sq4HiYGIkBYWBicZCGoOi0tzcjIiIGBoauriygNDAwMJiYmcDZRTkIGoxpoogEacWfPniVBw/nz58+fP0+kBgCxLR/Dk4eUOQAAAABJRU5ErkJggg=="
},
In a project I worked on a while back, we had to fetch tons of small images from urls. We instead started sending down the base64 encoding instead of the url, which saved us a round-trip in fetching the image. For a small image like this (16 x 16), the extra bandwidth to send the encoded text is negligible compared to the cost of opening another http request and pulling down the image.
The text was updated successfully, but these errors were encountered: