[SOLVED] Download a file

Hi Team,

I am using https://your-mattermost-url.com/api/v4/files/{file_id} to extract the file from mattermost using a java program , can you please the reponse returns as

DataInputStream userFileResponseStream = new DataInputStream(file.getInputStream());
int v = 0;
while ((v = userFileResponseStream.read()) != -1) {
userFileResponseStream.append((char) v);
}

The file stream returns some data in unreadable format , can you please suggest how can i parse the file .

Thanks,
Geetika

Hi Team,

I am now able to extract the content of the file , please close the issue.

Thanks,
Geetika

Great news @Geetika_Dwivedi :slight_smile: