Hi, @kshegunov I tried the same thing also your code but I could not manage it to work.. I have already have a Qdatastream, I get quint16 values from it... I tried your solution at first sight... @Wieland The code you send works fine thank you very much.. Have Nice day guys.. Thanks for your help.. It's very valuable..