[英]Turning Img file into string JS/NodeJS
Is it possible to turn an image into a string in javascript and Node? 是否可以在javascript和Node中将图像转换为字符串? I want to do this to make an image comparing software and I know how to compare strings.
我想这样做是为了制作一个图像比较软件,并且我知道如何比较字符串。 Thanks.
谢谢。
To solve this problem I used fs.readFile() to accomplish this. 为了解决这个问题,我使用了fs.readFile()来完成此任务。 I used the result from the readFile() to get the string.
我使用了readFile()的结果来获取字符串。 Thanks.
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.