In java I solved it using java.util.zip.Inflater. Correctly it gave error for the header, in fact to be recognized as inflate the byte array must start with two specific Hex bytes 78,9C (decimal 120,156).
I put them at the beginning of the array and it works in Java.
Deflate.DecompressBytes doesn't work ... so in fact for B4i I'm still on the high seas.
Update: It seems that in iOs the addition of these header bytes should be avoided. See
here