最佳答案
使用一个图像文件,我得到一个图像的网址,这需要发送到一个网络服务。从那里映像必须保存在我的系统本地。
我使用的代码是:
var imagepath = $("#imageid").val();// from this getting the path of the selected image
that var st = imagepath.replace(data:image/png or jpg; base64"/"");
如何将图像网址转换为 BASE64?