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
XML response after javascript processed an image - just base64

hello I have a big problem and can not get any further.

A function is used to add polygons to an image. After that it is encoded to base64. Now the client is supposed to request the page and have its image processed and only get the base64 back.

The problem: every time only the source code of the page comes back without even loading the image and providing it with the polygons.

Client Ajax request:

$.ajax({
    url: 'http://localhost/polyimg/?size=500',
    typ: 'GET',
    success: function(result) {
        console.log(result)
    }
});

callback from Server: <html> ... </html>

Instead of: data:image/jpeg;base64,...

I do not know what to do. Does this work at all? I have already tried to written the server with NodeJS, but he would send again only the source code.

I've tried with XML to set the request itself, but without success. I've been sitting on this for several hours and hoping for a good answer. Thanks

about 4 years ago · Juan Pablo Isaza
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