inBuffer contains the data. what's the problem? You don't need to convert anything to text