PHP中的流解码base64和quoted-printable
正如我发现的那样
stream_filter_append($cin, 'convert.quoted-printable-decode');
,
stream_filter_append($cin, 'convert.base64-decode');
不要逐行解码流。这些函数首先读取整个流直到 EOF,然后将其数据解码为字符串。
有没有办法逐行解码base64和引用打印编码流?
As i have discovered
stream_filter_append($cin, 'convert.quoted-printable-decode');
and
stream_filter_append($cin, 'convert.base64-decode');
don't decode stream line-by-line. These functions both first read the whole stream until EOF and then decode its data as string.
Is there any soution to decode base64 and quoted-printable encoded streams line-by-line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,这是一个错误。这些过滤器执行按顺序逐块转换流。
Well, it was a mistake. These filters do convert streams sequentially, block by block.