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

138
Visualizações
How to send array of buffer data in aws-lambda payload?

I am working on functionality, where i needs to send array of buffer containing imageData In object along with some other fields,

SAMPLE INPUT :

payload = { input:'buffer', data:ARRAY_OF_BUFFER, output:'buffer' }

I tried using JSON.stringify(payload) but it's not working, might be the issue with buffer, i am not sure it's converting back buffer properly or not.

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

0

A way to deal with this just pass payload as JSON.stringify(payload) what JSON.stringify is doing with buffer data is it's converting buffer data like this

{ 
  type: 'Buffer',
  data: [ 72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100 ] 
}

so you can convert back into in it's original form by just doing this

Buffer.from(data);

you will get the original buffer back.

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