How can I extract the relevant data and store as image. I want to extract the chunks to store them as images. How can I do that?
如何提取相关数据并存储为图像。我想提取块以将它们存储为图像。我怎样才能做到这一点?
Content-type:image/jpeg
Content-Length:28178
ÿØÿà JFIF ÿÛ Å (#(#!#-+(0<dA<77<{X]Id‘€™–€ŒŠ ´æà ªÚŠŒÈÿËÚîõÿÿÿ›Áÿÿÿúÿ
...
1 个解决方案
#1
0
You should be able to just pipe the streams together, like:
您应该能够将流组合在一起,例如:
request('url/stream').pipe(f);
Also, it looks like the response is a multipart document (judging by the line that starts with two dashes). Assuming this is the case, you can use a module such as dicer
to parse it.
此外,看起来响应是一个多部分文档(从以两个破折号开头的行来判断)。假设是这种情况,您可以使用诸如dicer之类的模块来解析它。
#1
0
You should be able to just pipe the streams together, like:
您应该能够将流组合在一起,例如:
request('url/stream').pipe(f);
Also, it looks like the response is a multipart document (judging by the line that starts with two dashes). Assuming this is the case, you can use a module such as dicer
to parse it.
此外,看起来响应是一个多部分文档(从以两个破折号开头的行来判断)。假设是这种情况,您可以使用诸如dicer之类的模块来解析它。