[Chennaipy] Binary file Conversion (was Re: (no subject))
Vijay Kumar
vijaykumar at zilogic.com
Wed Sep 9 23:12:32 EDT 2020
On 09/09/20 9:41 pm, Mohamed ali Abdul wrote:
> Hello to all,
>
> The binary file is to be converted in to human readable format.
> Each four byte data to be converted using python
>
How about the following?
binary = b'\x00...'
from array import array
arr = array('i')
arr.frombytes(binary)
print(arr)
Regards,
Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chennaipy/attachments/20200910/9de15172/attachment.html>
More information about the Chennaipy
mailing list