Paul.
Paul.

Reputation: 313

PHP - Laravel - Malformed UTF-8 characters, possibly incorrectly encoded

I'm taking data via ADLDAP, using: https://github.com/Adldap2/Adldap2 and I have a problem with parsing an image.

enter image description here

For example, this is an taken image.

When i try to send it via AJAX Call, it returns me an error like:

enter image description here

I tried to use a specific response format, but, without success.

I've used:

Upvotes: 0

Views: 3767

Answers (1)

Mathieu Ferre
Mathieu Ferre

Reputation: 4412

You are trying to send an image as json, you have to either reference the path of the image, then populate the src attribute of an img tag, or send it as a base64 encoded image

Upvotes: 1

Related Questions