[appengine-java] Reading static XML file on App Engine

2011-07-19 Thread bb
Hello, I have a static XML file in my App Engine app that uploads just fine and I am trying to read it for some rules based execution logic, but the below error is thrown at me: Caused by: java.security.AccessControlException: access denied (java.io.FilePermission

Re: [appengine-java] Reading static XML file on App Engine

2011-07-19 Thread de Witte
We use the following code snippet, for a static file stored in /war/data/rules.xml ... File file = new File(data/content.xml); FileInputStream istream = new FileInputStream(file); int ret = 0, count = 0; byte[] buff = new byte[2048]; StringBuffer xmlString