Added decodeInputStream