Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File downloading method and apparatus

A file download and target file technology, applied in the Internet field, can solve problems such as slow download speed, slow disk read and write speed, and suspended operating system, achieve the effect of fast download process, improve download experience, and reduce the probability of file damage

Inactive Publication Date: 2016-08-24
LETV INFORMATION TECH BEIJING
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above technology has the following disadvantages: the process of file merging will occupy a large amount of disk input / output, the disk read and write speed is slow, and even the operating system is in a state of suspended animation, resulting in slow download speed and poor user experience

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 apparatus
  • File downloading method and apparatus
  • File downloading method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 2 It is a flow chart showing the file downloading method according to Embodiment 1 of the present invention. available in as image 3 The method is performed on the apparatus of the illustrated embodiment.

[0024] refer to figure 2 , in step S210, create a target file for the file to be downloaded, divide the file to be downloaded into data segments and assign them to multiple threads responsible for downloading, each data segment has a starting position information.

[0025] According to an exemplary embodiment of the present invention, the process of creating a target file for the file to be downloaded in step S210 further includes: setting the size of the created target file to be the same as the size of the file to be downloaded.

[0026] In a specific implementation, for example, when the user clicks the watch button in the video playback interface to instruct the user terminal to download the multimedia file, then the multimedia file is the file to be...

Embodiment 2

[0038] image 3 It is a logical block diagram showing a file downloading device according to Embodiment 2 of the present invention. can be used to execute as figure 2 The method steps of the illustrated embodiment.

[0039] refer to image 3 , the file downloading device includes a file allocation module 310 , a pointer setting module 320 and a file downloading module 330 . The file allocation module 310, the pointer setting module 320 and the file download module 330 are connected in sequence.

[0040] The file distribution module 310 is used to create a target file for the file to be downloaded, divide the file to be downloaded into data segments and assign them to multiple threads responsible for downloading, and each data segment has a starting position information.

[0041] According to a preferred embodiment of the present invention, the file allocation module 310 is further configured to set the size of the created target file to be the same as the size of the file t...

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

Embodiments of the invention provide a file downloading method and apparatus. The file downloading method comprises the steps of creating a target file for a to-be-downloaded file, dividing the to-be-downloaded file into data segments, and allocating the data segments to a plurality of threads for downloading, wherein each data segment has initial position information; opening the target file by the threads and setting a file pointer in a writing position corresponding to the initial position information of the data segment in charge of downloading; and downloading the data segments by the threads and writing the downloaded data segment into the target file from the writing position. According to the file downloading method and apparatus provided by the embodiments of the invention, the file can be downloaded through the threads and written in the target file, so that the downloading is smoother and the downloading experience of users is improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a file downloading method and device. Background technique [0002] With the increasing progress of the Internet industry, users can download a wealth of resources through the Internet. For example, more and more users download network video files locally through broadband, and then copy them to mobile devices such as mobile phones and PADs for viewing. Due to the continuous increase of such user demands, the download technology is also continuously developed, which can be roughly divided into two methods: single-threaded and multi-threaded. In order to increase the download speed, multi-thread download is usually used. Specifically, the file is first divided into multiple file fragments, and then the file fragments are downloaded to the local through multithreading, and the multiple file fragments are merged into the original file after the download operation of all fragm...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/9574G06F9/38
Inventor 肖大伟王林虎
Owner LETV INFORMATION TECH BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products