使用圖像文件,我正在獲取圖像的url,需要將其發(fā)送到Web服務(wù)。從那里開始,圖像必須本地保存在我的系統(tǒng)上。我正在使用的代碼:var imagepath = $("#imageid").val();// from this getting the path of the selected imagethat var st = imagepath.replace(data:image/png or jpg; base64"/"");如何將圖片網(wǎng)址轉(zhuǎn)換為BASE64?
將圖片網(wǎng)址轉(zhuǎn)換為Base64
慕姐8265434
2019-10-17 15:20:42