I would like to insert the BLOB data of a tile to a sqlite database (WebSQL) in order to create an MBtiles compatible database; Is there a class/method that will allow this? I have looked at canvasContext and OpenLayers.Tile.Image without success. The methods that would seem to work only give me back objects instead of the raw PNG/JPEG blob data.
canvasContext.canvas.toDataUrl() will not work for me because it is a string, not binary data.
EDIT: After a bit more creative googling, I found that it was easier to take the dataURL and construct a Blob from that.