Re: [Jmol-users] Something about file loading

2008-12-09 Thread Duan Lian
Dear Prof. Robert, Thank you very much for that. I have something maybe interesting for you. I read from Rich's blog(http://depth-first.com/articles/2008/07/15/javascript-for-cheminformatics) that you're interested in AJAX technology used in chemistry. So I'm thinking, if molecule editor is able

Re: [Jmol-users] Something about file loading

2008-12-09 Thread Robert Hanson
Duan Lian, Your request for a better way to pass an image to an output stream gave me an idea. I have now checked in two new methods for Jmol that can be accessed by an embedding application or a browser using the signed applet: Object nullOrBytesOrStringOrErrorMsg = jmolViewer.getImageAs(ty

Re: [Jmol-users] Something about file loading

2008-12-07 Thread Duan Lian
Robert, Actually I don't know jmol script can write PNG file directly, but it's still not what I want. What I'm writing is a servlet that takes PDB file content as POST param, and return the binary content of PNG image as response stream. "write image" script writes directly into a local file. I

Re: [Jmol-users] Something about file loading

2008-12-06 Thread Robert Hanson
Duan Lian, Please tell us a bit more about your PDB2PNG renderer. Specifically, why not just use the capability of Jmol to write PNG files? You can even do this in command-line mode without ever calling up a display. Is there something special that you are trying to do, or is it possible that you

[Jmol-users] Something about file loading

2008-12-06 Thread Duan Lian
Hi, all WIth the code of other project integrating Jmol, I implemented an PDB2PNG renderer by using JmolViewer and BufferedImage. But the renderer is not perfect yet. JmolViewer provides openFIle() and openStringInline() to load files, but both of them is executed in another thread other than the