My web app does not work well with long data URI that I use to display images. When the encoded data is shown within a text areas It gets unbelievably slow. Sometimes the entire page crashes when I click the download page button on my app if the data URI is somewhere in the DOM.
Is there an alternative to data URI? The user submits an image file from their computer and the data URI code is used like this to display the image <img src="dataURI"/>
. This is not a server-based application so server-side languages aren't an option.
I have looked into JavaScript BLOB, although I have no idea how to work with that.