Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python convert string to byte array

a_string = "abc"
encoded_string = a_string. encode()
byte_array = bytearray(encoded_string)
print(byte_array)
 
PREVIOUS NEXT
Tagged: #python #convert #string #byte #array
ADD COMMENT
Topic
Name
7+5 =