From: Angel H. <ang...@ua...> - 2010-06-25 18:33:28
|
Hi again > It is probably true on a desktop, but I do not think this is correct on a server. If a MIME type is not > set, a file like.smol (or even jvxl) will not be read by the web app. I'm quite sure of this: Jmol does not care about MIME type. It may be that your server serves the files in a different way depending on their type, but I've never seen such a problem with Jmol. Remember that the web page does not link to or request the file, it is Jmol who does. I've used free (restricted) servers that don't allow me to upload a certain file type based on their extension, but MIME or Jmol have nothing to do there. By the way, try renaming the file e.g. to molecule.smol.txt. I've used that trick successfully with pdb files. Also, consider that Jmol reads both plian text files (like mol or pdb) and binary files (e.g. gzipped files) Are smol files binary?. > My server can only read smol files after smol MIME was set to a generic "application/octet- > stream". Do yu have a url for your test page? How is the file being requested from the server? Never seen that. > Surprisingly Spartan technical help refers me to Jmol community for smol MIME type > info. Well, that's really FUNNY! Sorry I cannot help with the details of file parsing (when vibration and surfaces are there). Bob Hanson is your man for that; wait for his reply (or investigate the file reader yourself http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol/src/org/jmol/adapter/readers/quantum/ |