Hello,
My scenario:
In the application I am working I have to upload chunk of file data and append to a file in dropbox. In the application I will not know the source file name. All I get, through a method call is a ByteBuffer and name of the file on DropBox. I need to upload this chunk of data. The method could be called a number of times depending on file size. For example:
public boolean write (ByteBuffer buf, String drpbxFileName) {
// Need to upload the data in buf to a file in dropbox.
}
Any suggestions on how I can achieve this? I use Java.
I thought of using uploadSessionStart and uploadSessionAppendV2 methods for writing the first chunk. But I don't seem to get how I can pass data to uploadSessionAppendV2 method when the next chunk of file data comes with next call to write method.
Thanks