Am 21.08.15 um 22:23 schrieb Robert Hanson: > > > On Fri, Aug 21, 2015 at 1:51 PM, Rolf Huehne <rhue...@fli-leibniz.de > <mailto:rhue...@fli-leibniz.de>> wrote: > > > My question aimed at the second task needed for my idea of > storing/restoring custom Jmol extensions with a PNGJ file: > > If the custom system is already loaded it should be able to skip > installing itself again in a maybe older version. so it would be > necessary to modify it. > > But your answer actually also helped to achieve the first task of > getting the extension into the PNGJ file (see below). > > The only thing that seems to be missing for the second task is to be > able to load PNGJ data from a variable: > > ==== Load PNGJ from variable ========= > x = load("test.png", true); > $ load "@x" > script ERROR: io error reading string: java.io.FileNotFoundException: > string (No such file or directory) > ====================================== > > > I think the problem there would be figuring out a way to save that in a > state. It could be done, but it would be pretty ugly -- all of that in > base64? > Bob, I don't understand why there should be needed an extra encoding.
The following things are working: 1) load "test.png"; 2) x = load("test.png", true); write VAR x "test2.png"; load "test2.png; So what would be different if the write step in 2) would be omitted and the data loaded instead from variable 'x'? I thought the current error would just occur because of misinterpretation of the variable content. Regards, Rolf ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users