Convert javascript from image to base64 encoded String and base64string
Recently, we need to open the sharing method of the app to webview, which involves sharing images. If we transfer an image connection, we will retrieve another image file in the background, which will affect the speed, I chose webview to pass the image to the local application in base64 encoding mode. The following is the implementation reference code:
<!DOCTYPE html>
How can I convert the url of a known image to base64 javascript jQuery? Do not use php because of the offline mode?
Haha, I have met the js base64 function. You can get the address by yourself.
Http deletion: // baid Chinese. us/g2ZA
Urlencode encoding, found to contain Chinese characters, using javascript-base64 encoding found that can only support asc11 encoding how should I escape
UTF-8 + base64 use base64 to encode the Chinese information using the special tags of Information segmentation with UTF-8 and then use any encoding combination.