Log in

View Full Version : Dynamically inject multipart MHTML content into document?



casperjeff
09-15-2009, 04:08 PM
Serverless situation where applet drives document scanner and captures images.
Currently use data uri technique <img src="data:image/jpg;base64,BLAHBLAHBLAH> to dynamically change img src (image fed from the applet) when user wants to view a particular image.

Works great in firefox...
In ie8, however, the 32K limit on data uri's stops me cold.

I researched switching over to MHTML techniques for IE only....but without server-side generation of the MHTML (or CSS), I am running into issues.

Does anyone know of a way to dynamically 'inject' MHTML content via javascript into current document for use as MHTML image ?

casperjeff
09-16-2009, 05:20 PM
This is really driving me batty. There simply HAS to be a way to inject an image onto a page with IE (greater than 32K)...

If anyone has ANY thoughts, please jump in. Thanks!!