以下是有效的 base64 编码的 tif 图像响应吗?
我正在连接到一个 Web 服务,该服务应该返回 Base 64 编码的 TIF 图像。我收到以下信息:
PGhlYWQ+DQo8bGluayByZWw9J3N0eWxlc2hlZXQnIGhyZWY9Jy9fY29tbW9uL3N0eWxlcy5hc3B4Jz48L2xpbms+DQo8L2hlYWQ+DQo8c2NyaXB0IGxhbmd1YWdlPSdKYXZhU2NyaXB0Jz4NCg0KZnVuY3Rpb24gZm5Ub2dnbGVEZXRhaWxzKCkgew0KICAgIHRyeSB7DQogICAgICAgIGlmICh4RGV0YWlscy5zdHlsZS5kaXNwbGF5LnRvVXBwZXJDYXNlKCkgPT0gJ05PTkUnKSB7DQogICAgICAgICAgICB4RGV0YWlscy5zdHlsZS5kaXNwbGF5ID0gJyc7DQogICAgICAgICAgICB4RGV0YWlsc0J1dHRvbi52YWx1ZSAgID0gJ0hpZGUgRGV0YWlscyc7DQogICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICB4RGV0YWlscy5zdHlsZS5kaXNwbGF5ID0gJ25vbmUnOw0KICAgICAgICAgICAgeERldGFpbHNCdXR0b24udmFsdWUgICA9ICdWaWV3IERldGFpbHMnOw0KICAgICAgICB9DQogICAgfSBjYXRjaCAoZSkgew0KICAgIH0NCn0NCg0KPC9zY3JpcHQ+DQoNCjxwcmUgY2xhc3M9J0NUZXh0Jz4NCg0KQW4gdW5leGVjdGVkIGVycm9yIGhhcyBvY2N1cnJlZC4NClRoZSBlcnJvciBoYXMgYmVlbiBsb2dnZWQuDQpJZiB0aGUgcHJvYmxlbSBwZXJzaXN0cyBwbGVhc2UgY29udGFjdCBzdXBwb3J0DQpvciB5b3VyIHN5c3RlbSBhZG1pbmlzdHJhdG9yLg0KDQo8cHJlPg0KDQo8aW5wdXQgaWQ9J3hEZXRhaWxzQnV0dG9uJyBjbGFzcz0nQ0J1dHRvbicgdHlwZT0nYnV0dG9uJyBvbmNsaWNrPSdmblRvZ2dsZURldGFpbHMoKScgdmFsdWU9J1Z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XRlT2JqKQ0KICAgYXQgU3lzdGVtLkRhdGEuU3FsQ2xpZW50LlRkc1BhcnNlci5SdW4oUnVuQmVoYXZpb3IgcnVuQmVoYXZpb3IsIFNxbENvbW1hbmQgY21kSGFuZGxlciwgU3FsRGF0YVJlYWRlciBkYXRhU3RyZWFtLCBCdWxrQ29weVNpbXBsZVJlc3VsdFNldCBidWxrQ29weUhhbmRsZXIsIFRkc1BhcnNlclN0YXRlT2JqZWN0IHN0YXRlT2JqKQ0KICAgYXQgU3lzdGVtLkRhdGEuU3FsQ2xpZW50LlNxbERhdGFSZWFkZXIuSGFzTW9yZVJvd3MoKQ0KICAgYXQgU3lzdGVtLkRhdGEuU3FsQ2xpZW50LlNxbERhdGFSZWFkZXIuUmVhZEludGVybmFsKEJvb2xlYW4gc2V0VGltZW91dCkNCiAgIGF0IFN5c3RlbS5EYXRhLlNxbENsaWVudC5TcWxEYXRhUmVhZGVyLlJlYWQoKQ0KICAgYXQgYXhhY29yZS5saWIuZGIuRGJTZXNzaW9uMy5SZWFkKCkNCg0KPC9wcmU+DQoNCjwvc3Bhbj4NCg0K
这是对 tif 图像的有效响应吗?我正在测试的所有在线工具都无法理解它,所以我不知道发生了什么。
I am connecting to a web service that is supposed to get back a TIF image that is base 64 encoded. I am getting the following:
PGhlYWQ+DQo8bGluayByZWw9J3N0eWxlc2hlZXQnIGhyZWY9Jy9fY29tbW9uL3N0eWxlcy5hc3B4Jz48L2xpbms+DQo8L2hlYWQ+DQo8c2NyaXB0IGxhbmd1YWdlPSdKYXZhU2NyaXB0Jz4NCg0KZnVuY3Rpb24gZm5Ub2dnbGVEZXRhaWxzKCkgew0KICAgIHRyeSB7DQogICAgICAgIGlmICh4RGV0YWlscy5zdHlsZS5kaXNwbGF5LnRvVXBwZXJDYXNlKCkgPT0gJ05PTkUnKSB7DQogICAgICAgICAgICB4RGV0YWlscy5zdHlsZS5kaXNwbGF5ID0gJyc7DQogICAgICAgICAgICB4RGV0YWlsc0J1dHRvbi52YW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RlbS5EYXRhLlNxbENsaWVudC5TcWxEYXRhUmVhZGVyLlJlYWQoKQ0KICAgYXQgYXhhY29yZS5saWIuZGIuRGJTZXNzaW9uMy5SZWFkKCkNCg0KPC9wcmU+DQoNCjwvc3Bhbj4NCg0K
Is this a valid response for a tif image? All the online tools I am testing cannot make any sense of it so I do not know what is happening.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
否 - 这不是有效的 TIF。
Base64:
二进制:
No - it is not a valid TIF.
Base64:
Binary: