编码url的base64图像

时间:2016-02-14 23:31:43

标签: php base64 httprequest urlencode http-get

我已经转换了base64图像

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAAAlCAYAAAC3fYDwAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEFCODdCRkVDOEFBMTFFNTg2MzRDRjlFOEFDNDc3QzgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEFCODdCRkRDOEFBMTFFNTg2MzRDRjlFOEFDNDc3QzgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDhDM0EyOEFDOEE3M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fWbBZEQuKzaEZDGFHssMGWTqetjYMjqXvQw3vFw+MJJ8rUIm7AaWWYU3/b0fUADjUWER0lQ/+n8mJkrPGQKmxC2FTiozk8S01qSDKXbLYUXMZg0ARkpUxPr4OWa2Y+X6hkb6k+0fXut6lMUzyvUjAt0lAb0CG325csO2UoGDzNcsxEQyLJu20p8OC+RY/TPYzhJMoHFfiiWS0XZ77UPlt0ulClz2FCF2MSy+03/okCTovKCuQW01cwDj1PRUCTutKyika3JoXOrezxCKbd3CWLALfdBhy4AOe0RNNbxsSzucC2CqdGivXLJq5bwD0Pp8HcNeXkYgBXzEfjUG5B+TzKairk/c0ENpd2LY8plY9Rdjt+4vxgaryEic9HXi0FzO1C+HFdtjY6F8msdtiiTbd+7c9kdC3SOF2DBr3Mdk2PwG1BGZ7DmoCK1zLnc13dDuH+YnypXTA3AX0cCi+baVCZJbWE7fry67lOO0bsu046YBH3BC7Uj9nY91A5lZ0or19TkwUNg5XRAUifJYHrI+Xmpliz6mZOK11a4do9d/ldFr1wdYeIRuvz/tZdFei3nbbJbmLIr5H2Mf1pthukHRaxLBRwppULNAr5cC8Au+7I52KRzKV+0P93GszRwUJnNnrw4Zz8qQS47wzpY9qfz564JAXI/sxrvIBLEAf3PXzl9mv31dhjr8uztcWA42iEWk4JUwXH7gAhC/TvopAfnjuYbZ789gMvgDU1Dqn/HgMzOZgLb4WCwyolG85Gq160Wx9UNtue34PWDFfXKhttQUqC0XoL1W8e6F7mRlyMYMYZqkI/SPjoLw8F0LyRKLWOpkU8+4Xo709OTBkb+4dSt+Frkj45C7n9bh8QbcYRyAwdrNQ0WHoaUqeOgjl5GTjx2h1KZ8/sBr/cWKUgcH7xiw+cX3zg/OKXUsr/BRgA744KNKTzZwYAAAAASUVORK5CYII=

我知道我需要为url替换一些字符 示例

$decode = strtr($data, '+/=', '_.,');
echo urlencode($decode);

但是当我发送此打印数据时 我收到了403.shtml 但如果我发送相同的url示例abc 它写的不是base64

据我了解 我的主人无法通过GET请求获得这样的大数据。

所以我写了.htaccess

php_value upload_max_filesize 16M
php_value post_max_size 16M
php_value max_input_vars 1000000

但我不知道如何更改_GET max size

完整链接必须是这个

example.com/api/booking/a7e59fed68aaf199152c643f9d0ebe77/2016-02-15/morning/2016-03-17/evening/01020201021/ + base64image

所以这是很长的网址......

请帮帮我......

P.S。 我正在重写这样的网址

RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

所以完整网址是添加url变量 请帮帮我

我该怎么办? 我该如何解决这个问题?

感谢您将来的帮助。!

0 个答案:

没有答案