From: Steven R. Spilatro <spilatrs@ma...> - 2008-09-24 16:04:00
I've played around with "jmolGetPropertyAsJavaObject("image")". Is it
possible that this function is actually returning a base64 encoded
string instead of JPEG code?
I find that these two statements yield identical results:
var x = jmolGetPropertyAsJavaObject("image")
var x = jmolGetPropertyAsString("image")
In FF, in either case, x will yield the image when assigned to an
<img> such as
src= "data:image/jpeg;base64,'+ x + '".
The "data:image/jpeg;base64" is required for both.
Dr. Steven R. Spilatro
Department of Biology and Environmental Science
Get latest updates about Open Source Projects, Conferences and News.