Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Decode#isFileFit(final InputStream in) not working

Rank

Total Posts: 3

Joined 2018-08-07

PM

I'm using the Fit Java SDK (version 2.0.20.67).
What I'm trying to do is to validate the fit file before decoding it. Thanks to the exaustive docs (sarcastic wink) I came accross the isFileFit() method from the Decode.java class and I've found that It does not recognize a fake fit file.
I tried to validate a png file and the check passed.
isFitFile() is intended to be used in such scenarios?

Thanks.