What is base64 encoding used for?

后端 未结 18 1037
滥情空心
滥情空心 2020-11-22 09:45

I\'ve heard people talking about \"base 64 encoding\" here and there. What is it used for?

18条回答
  •  我在风中等你
    2020-11-22 10:21

    I use it in a practical sense when we transfer large binary objects (images) via web services. So when I am testing a C# web service using a python script, the binary object can be recreated with a little magic.

    [In python]

    import base64
    imageAsBytes = base64.b64decode( dataFromWS )
    

提交回复
热议问题