获取图片的base64编码 <!DOCTYPE html> <html> <head> <meta charset=gbk> <title></title> </head> <body> <input accept=image/* name=upimage id=upload_file type=file onchange=gen_base64()> <textarea id=base64_output name=Word