Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

139
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda