Saving Images using a CGI

User e9b312fb05

20-09-2005 12:15:59

Hi,








can someone help me on how to save images from msketch using a server side CGI written in perl.








For now I can submit a molfile using





function submitstructure()


{


var s = document.MSketch.getMol(\"mol\");


s = unix2local(s);


document.structure.molfile.value = s;


}





together with a hidden input that is posted to my CGI that reads the value.








I'd like to do the same with an image. Can I fill a hidden input tag with the image information and save it as an image file?








Any ideas are gladly appreciated! :-)








Paul








P.S.: I can't use molconvert on the server side as it fails to run java. :-(

ChemAxon 7c2d26e5cf

20-09-2005 13:55:26

I can not help you in CGI. But I can suggest you a JSP solution:


http://www.chemaxon.com/marvin/examples/image-generation/index.html width="90%" cellspacing="0" cellpadding="3" border="0" align="center"> Quote: P.S.: I can't use molconvert on the server side as it fails to run java. :-( Probably, Java can not find an X server for running molconvert. See the following topic, how you can use Java without X server:


http://www.chemaxon.com/forum/ftopic73.html

User e9b312fb05

20-09-2005 14:19:40

Might this also cause the installation to fail? Is there a switch to the bin-file for headless installation?

ChemAxon 7c2d26e5cf

20-09-2005 14:42:38

Since Marvin Beans installers require GUI, I suggest you to try this one:


http://www.chemaxon.com/download.php?d=/data/download/marvin/marvinbeans-4.0.1.zip


This is the zipped version of the Marvin Beans release. This package has not got an installer.


You can find its installation guide, here:


http://www.chemaxon.com/marvin/doc/user/installguide.html#other