Skip to content Skip to sidebar Skip to footer

Chrome Native Messaging Throwing Error When Sending A Base64 String To Client

Using Chrome Native Messaging sample app as a template am able make a system call to bash os.system('') The requirement is to return a base64 string from the p

Solution 1:

import supprocess as sub
ter = sub.Popen("<bash command that returns a base64 string>",
                          shell=True,stdout=sub.PIPE)
tread = cmd.communicate()[0].decode("u8")
text = '{"text": "' + tread + '"}'

Try This ^_^


Post a Comment for "Chrome Native Messaging Throwing Error When Sending A Base64 String To Client"