Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!