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
H5 mobile image cropping (base64 ),
During mobile development, you may encounter image cropping problems. Of course, no matter what method you want to solve the problem, you have to solve it, even if it is ugly or ugly.
There are many jquery
not successful, but there is a certain reference/*** @param base64codes* Base64 encoding of images */function Sumitimagefile (base64codes) {//debuggerConsole.log (Convertbase64urltoblob (base64codes));var formData = new FormData (); The other
The mobile end uses localResizeIMG4 to compress the image,
Mobile h5 development cannot avoid uploading images. Generally, we use the built-in html control to input or useUpload API. However, the upload API is not available anywhere. Using the input
In order to take photos of the use of webcam-related plug-ins, its shooting is the base64 format of the picture, direct display no problem, in the SRC directly specified on it, but to upload to the server when the problem comes, the server side
Advanced Browser, you can directly use the HTML5 FileReader, to obtain the base64 format of the uploaded file, and submitted as a string. For browsers below IE9, you'll have to think of other methods. The following is a sample code for the Advanced
This article mainly introduces how jquery controls the image stream generated by the display server. If you need it, you can refer to the following: Use the image path as a parameter, and upload ajax to the upload server in the background method
Now the technology is too developed, mobile devices more and more pixels, just a photo 2m+, but to do the mobile image upload and pc slightly different, mobile you can not limit the size of the image, so that users to process the image before
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.