Unlock instant, AI-driven research and patent intelligence for your innovation.

File downloading method and device

A file download and target file technology, applied in the field of information communication, can solve the problem of low work efficiency of file download

Inactive Publication Date: 2016-11-16
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen that the traditional web application created based on Ajax depends on the middleware container when downloading files from the server. The performance of the middleware container directly affects the download of the target file, and the work efficiency of file download is low.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File downloading method and device
  • File downloading method and device
  • File downloading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0057] Such as figure 1 As shown, the embodiment of the present invention provides a file download method, including:

[0058] S0: Preset the data request format of the XMLHttpRequest object created based on Ajax technology as binary data;

[0059] S1: Use the XMLHttpRequest object to send a data request corresponding to the target file to the externa...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a file downloading method and device. The method comprises the following steps: S0, presetting data request format of XMLHttpRequest object created based on Ajax technology as binary data; S1, sending a data request of a corresponding target file to an external server through the adoption of the XMLHttpRequest object; S2, receiving the binary data of the corresponding target file sent by the external server according to the data request; S3, analyzing the binary data to form a target file; S4, creating a data address corresponding to the target file; S5, receiving a trigger instruction corresponding to the data address, storing the target file stored under the data address to a target address corresponding to the trigger instruction. Through the adoption of the technical scheme provided by the invention, the target file can be downloaded from the server without using a middleware container, and the working efficiency of file downloading can be improved.

Description

technical field [0001] The invention relates to the technical field of information communication, in particular to a file downloading method and device. Background technique [0002] With the development of webpage development technology, Ajax (Asynchronous JavaScript And XML, asynchronous JavaScript and XML), as a webpage development technology for creating interactive webpage applications, has been widely used. [0003] At present, the web application created based on Ajax mainly downloads files from the server through the browser, that is, the browser sends a download request carrying a URL (Uniform Resource Locator, Uniform Resource Locator) address to the server, so that the server can download files according to the received URL address. Convert the target file at the URL address into data in a specific format and send it to a middleware container, such as Apache, Tomcat, etc. The middleware container converts the data in a specific format into a target file and transm...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/958
Inventor 靳志凯
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD