Save base64-encoded image with AJAX request in PHP

前端 未结 3 1008
耶瑟儿~
耶瑟儿~ 2020-12-08 12:04

I encoded a canvas-image to base64 which gives me this:

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAICAgICAQICAgICAgIDAwYEAwMDAwcFBQQGCAcICAgHCA         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 12:31

    It works - seems when a file is included in php using

    include('file.php');
    

    the relative path is from the parent and not from the included file :(

    That was the whole problem... Thanks to all

提交回复
热议问题