阅读背景:

如何在sails.js中或通常在服务器端JavaScript中将图像转换为base64编码的数据URL?

来源:互联网 

I am making a small app in sails.js and I need to store images in database. For that, I need to convert an image to a base64-encoded data URL so that I can save it as a string in my sails models. However, I don't know how to convert it in this form. All the older questions asked about converting an image to base64-encoded data URLs, and they answer this about doing it on the client side. However, I want to do it on the server side while I will be getting the image through a post request. How can I achieve this? and I need




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: