The difference between byte stream and character stream

  • Character stream: When the program handles Chinese, the character stream is the most convenient
  • Byte stream: When a program processes binary data (pictures, music, movies) or performs network transmission, or saves data to disk, it must be bytes;
  • The byte stream interacts directly with the operating terminal, and the character stream needs to pass through the buffer

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325728125&siteId=291194637