Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
Buffer to String with bytes as string

In Node.js I am getting a buffer result as:

<Buffer 21 61 0b>

How can I convert this to a string like this:

“21610b”

All the methods and suggestions I have seen online are for converting the buffer to a string but that will change the layout. I want to keep the exact same layout as string.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The console summarizes Buffer objects by displaying the first few bytes in hexadecimal notation. To convert a Buffer to a string of hexadecimals, use .toString('hex').

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda