[Chennaipy] binary data conversion

Vijay Kumar B. vijaykumar at bravegnu.org
Sat Sep 12 01:44:28 EDT 2020


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




More information about the Chennaipy mailing list