期刊文献+

一种基于Base64编码的多图片上传技术研究 被引量:6

Research on Multi Image Uploading Technology Based on Base64 Encoding
下载PDF
导出
摘要 基于传统的HTML5多文件上传采用FormData方式,将文件数据编译成键值对,用异步请求方式上传文件,但是不同浏览器对FormData对象的支持情况并不容乐观,导致不支持FormData的浏览器文件上传失败。该文针对浏览器不支持FormData对象操作,提出在基于浏览器客户端对图片进行Base64编码,将图片转换为字符串提交,在服务器端再对其进行解码后再生成图片文件的通用图片上传方法。 Based on the traditional HTML5 multi-file uploading method, the file data is compiled into key-value pairs and uploaded asynchronously. However, the support of different browsers for FormData objects is not optimistic, which leads to the failure of file uploading in browsers that do not support FormData. In view of the fact that browsers do not support the operation of FormData objects, this paper proposes a general image uploading method based on browser client to encode pictures by Base64, convert pictures to string submission, decode them on the server and regenerate them into picture files.
作者 周岚 ZHOU Lan(Department of information technology,Xuzhou Vocational College of Finance and economics,Jiangsu,Xuzhou 221008,China)
出处 《电脑知识与技术》 2018年第11期106-108,共3页 Computer Knowledge and Technology
关键词 HTML5 FormData BASE64 文件上传 HTML5 FormData Base64 file upload
  • 相关文献

参考文献3

二级参考文献27

  • 1赵金东,于沛.Web应用中大文件传输问题的研究[J].烟台大学学报(自然科学与工程版),2007,20(2):132-135. 被引量:3
  • 2廖乐林.断点续传的原理探讨和编程应用[J].科技信息,2007(23):54-54. 被引量:10
  • 3林天华,马素霞,赵霞.基于Web的大文件上传技术研究[J].科技导报,2007,25(16):30-33. 被引量:3
  • 4Network Working Group.Hypertext Transfer ProtocolHTTP/1.1[EB/OL].(2004-09-01)[2014-08-16].http://www.w3.org/Protocols/rfc2616/rfc2616.html.
  • 5RFC 1867, Form-based File Upload in HTML[ S].
  • 6W3C. File API[ DB/OL]. http ://www. w3. org/TR/FileAPl, 2015-04-21.
  • 7Cheng Xiaojin. Research on file upload based on HTML5 [ C ]// Proceedings of the 11 th International Conference on Service Systems and Service Management (ICSSSM). 2014.
  • 8Jemel M, Serhrouchni A. Security enhancement of HTML5 local data storage [ C ]// Proceedings of the 2014 Interna- tional Conference and Workshop on the Network of the Fu- ture (NOF). 2014.
  • 9Yi Shi, Liu Quan, Li Jing Song. Design and realization of large file asynchronous upload and broken-point continuing- ly-transferring based on ASP. NET MVC [ C ]//Applied Mechanics and Materials. 2014,543-547:3165-3168.
  • 10ziyunfei Too Bug teoli.Form Data. https://developer.mozilla.org/zh-CN/docs/Web/API/Form Da-ta . 2015

共引文献23

同被引文献65

引证文献6

二级引证文献15

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部