google app engine - Trying to download a file using Dropbox Java API in the GAE -


i have xml file on dropbox want access google app engine using dropbox java api. after bit of playing around find gae doesn't support fileoutputstream.

fileoutputstream outputstream = new fileoutputstream("myfile.txt"); try {     dbxentry.file downloadedfile = client.getfile("/myfile.txt", null,         outputstream);     system.out.println("metadata: " + downloadedfile.tostring()); }  

any ideas how can xml data gae (client or server side) dropbox? tim

got it! thanks. bytearrayoutputstream worked. else trying read dropbox file in google app engine environment (i.e. read memory), here worked me

string filename = "myfile.xml"; outputstream out = new bytearrayoutputstream();  try {      dbxclient.getfile("/" + filename, null, out);  } catch (dbxexception e) {      e.printstacktrace();  }   system.out.println("file contente: " + out.tostring()); 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -