I have a problem when adding a base64 decoded string to a database, it says incorrect syntax.. heres the thing First I have the $image string and decode it using base64_decode function
$image = '/9j/4AAQSkZJRgABAQAAAQABAAD/';
$decoded = base64_decode($image);
It will become
ÿØÿàJFIFÿ
and when I try to insert in the database (sql server)
MSSQL error: Incorrect syntax near 'ÿØÿà'.
What could be the problem? thanks in advice friends