On 11/09/20 10:41 pm, Mohamed ali Abdul wrote: > Hi, > Thanks Mr. Vijay. > I want to convert every 2 bytes of data > The below mentioned code is converting 4 bytes. That should be obvious from the array module documentation. Use array('h') instead of array('i'). Regards, Vijay