So I want to upload a file from the app's internal storage to DropBox witch I can't get working
i goth the file location in the variable location from and i know if works because I'm already using this path for making a copy off the file to the sdcard
String currentDBPath = "\\simon.vestergaard.note.calender\\databases\\NoteCalender";
String backupDBPath = "NoteCalender";
File locationfrom = new File(data + ""+data+"/simon.vestergaard.note.calender"+ "/databases",backupDBPath);enter code here
i need to use the dropbox to upload the file where I'm using this metode https://www.dropbox.com/static/developers/dropbox-android-sdk-1.2.2-docs/index.html but it requires the file as a input stream how can i due this?
my question is how can i get to the file thats stored in data\data\simon.vestergaard.note.calender\databases\NoteCalender and get it as a inputstream and send i with putfileOverWrite ore put file ??