public void WriteFile(string filename) { // X:\jsc.smokescreen.svn\core\javascript\com.abstractatech.analytics\com.abstractatech.analytics\ApplicationWebService.cs // we only work with absolute paths anyway if (filename.StartsWith("/")) { filename = filename.Substring(1); } InternalWriteHeaders(); try { // assets only? var assets = InternalContext.getResources().getAssets(); var s = assets.open(filename).ToNetworkStream(); // should we report the size? s.CopyTo(InternalStream); InternalStream.Flush(); } catch { throw; } }