I upload .wav file to dropbox with the following code in Android app:
DbxRequestConfig config = new DbxRequestConfig("dropbox/java-tutorial", "en_US");
mClient = new DbxClientV2(config, ACCESS_TOKEN);
InputStream in = new FileInputStream(filePath);
FileMetadata metadata = mClient.files().uploadBuilder("/Folder/" + FILE_NAME).withMode(WriteMode.OVERWRITE)
.uploadAndFinish(in);
Log.d(TAG, "Upload complete " + metadata.getRev());And when I compare the files (origianl and uploaded) I can see that RIFF header is missing: https://www.screencast.com/t/6e3TwwypR
And as a result file without header is not reccognized and not played, i.e. corrupted.
Why does the header cut out?