User 979012b3b3
15-07-2008 14:21:49
Hi, I'm using
chemaxon.formats.MolImporter,
chemaxon.struc.Molecule,chemaxon.formats.*,
chemaxon.util.*
for designing smiles in web.
// Setting content type
String type = format.indexOf(":") == -1 ?
format : format.substring(0, format.indexOf(":"));
response.setContentType("image/" + type);
Molecule mol = null;
mol = MolImporter.importMol(molstring);
//......
byte[] b = mol.toBinFormat(format);
ServletOutputStream outs = response.getOutputStream();
outs.flush();
outs.write(b,0,b.length);
outs.close();
If I have an aromatic smiles I see a "circle" in my jpeg, I'd like to "convert" my smiles from aromatic to non-aromatic ones. How can I change my code?
Thanks a lot, Cristina
chemaxon.formats.MolImporter,
chemaxon.struc.Molecule,chemaxon.formats.*,
chemaxon.util.*
for designing smiles in web.
// Setting content type
String type = format.indexOf(":") == -1 ?
format : format.substring(0, format.indexOf(":"));
response.setContentType("image/" + type);
Molecule mol = null;
mol = MolImporter.importMol(molstring);
//......
byte[] b = mol.toBinFormat(format);
ServletOutputStream outs = response.getOutputStream();
outs.flush();
outs.write(b,0,b.length);
outs.close();
If I have an aromatic smiles I see a "circle" in my jpeg, I'd like to "convert" my smiles from aromatic to non-aromatic ones. How can I change my code?
Thanks a lot, Cristina