Conflict with the "slash" in a base64 string of an image

I am sending a image file base64 string from ajax (post), but the “slash” it contains conflicts with the path. What is the way to send a base64 through slim routing?. Thank you.

but the “slash” it contains conflicts with the path

Do you send the base64 data in the url?
Just send it via POST within the request body.