CN104182437A - File pulling method and device - Google Patents

File pulling method and device Download PDF

Info

Publication number
CN104182437A
CN104182437A CN201410063299.5A CN201410063299A CN104182437A CN 104182437 A CN104182437 A CN 104182437A CN 201410063299 A CN201410063299 A CN 201410063299A CN 104182437 A CN104182437 A CN 104182437A
Authority
CN
China
Prior art keywords
file
download
described file
bit stream
downloaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410063299.5A
Other languages
Chinese (zh)
Inventor
张芳芳
沈镇
杨贺
郑凤娟
吴承丞
任野飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201410063299.5A priority Critical patent/CN104182437A/en
Publication of CN104182437A publication Critical patent/CN104182437A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The embodiment of the invention provides a file pulling method, which comprises the following steps of acquiring task information to be processed, wherein the task information to be processed comprises the name of a file to be downloaded, a relative path of the file and the position of a client to which the file is to be downloaded; analyzing the task information to be processed to obtain a downloading address of the file; starting fragmentation downloading to download the file to the specified position of the client by using the downloading address; judging whether the file is successfully downloaded or not, and modifying the state information of the task information to be processed according to a judgment result. The embodiment of the invention also provides a corresponding file pulling device.

Description

A kind of file pulls method and device
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of file and pull method and device.
Background technology
FTP(File Transfer Protocol, file transfer protocol (FTP)) be one of agreement using the earliest at TCP/IP network with on the Internet, can apply this agreement and between two computing machines, transmit file on TCP/IP network.FTP is the agreement of application layer, and it for user's service, is responsible for carrying out the transmission of file based on transport layer.FTP is the client-server agreement of 8, can operate the file of any type and not need further processing.Although World Wide Web (WWW) has substituted most of functions of FTP, FTP remains by Internet file is copied to the conventional approach of one server from client computer, ftp client can be to the server download file of giving an order, upload file, the catalogue on establishment or change server.
Many websites of operation FTP service have mostly been opened anonymous service, and under anonymity login arranges, user does not need account just can login ftp server, and under default situations, the user name of anonymous is: " anonymous ".This account does not need password, although conventionally require input user's addresses of items of mail as authentication password, this is that some details or this addresses of items of mail are not determined, but depends on the configuring condition of database.
The method of existing ftp file transmission has following shortcoming: password and file content all use plaintext transmission, may produce the eavesdropping of not wishing generation; Database generally all can limit the maximal rate of client downloads file, causes client can not obtain fast file.
Summary of the invention
The embodiment of the present invention provides a kind of file to pull method and apparatus, uses plaintext transmission in order to solve the ftp password and the file content that exist in prior art, the problem being easily ravesdropping, and client can not be from the problem of database quick obtaining file.
One aspect of the present invention, provides a kind of file to pull method, comprising:
Obtain pending mission bit stream, described pending mission bit stream comprises the title of the file that will download, the relative path of described file, and the position of the described file client that will download to;
Analyze described pending mission bit stream, obtain the download address of described file;
Enable fragmentation and download, use described download address, described file is downloaded to the assigned address of described client;
Judge whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment.
Another aspect of the present invention, provides a kind of file pulling device, comprising:
Acquisition module, for obtaining pending mission bit stream, described pending mission bit stream comprises the title of the file that will download, the relative path of described file, and the position of the described file client that will download to;
Analysis module, the described pending mission bit stream obtaining for analyzing described acquisition module, obtains the download address of described file;
Download module, downloads for enabling fragmentation, and the download address that uses described analysis module analysis to obtain, downloads to described file the assigned address of described client;
Status modifier module, for judging whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment.
The file that uses the embodiment of the present invention to provide pulls method and apparatus, the download address of file no longer directly exposes, but will be by file the address of the relative address in database and database combine and determine, stopped file and downloaded the drawback being ravesdropping, higher security can be provided.Due to fragmentation download being provided, a file is decomposed into multiple fragments simultaneously, can significantly improves the speed that file is downloaded, thereby make client obtain file from database rapidly.
Brief description of the drawings
It shown in Fig. 1, is the system architecture schematic diagram that file that the embodiment of the present invention provides pulls;
It shown in Fig. 2, is the schematic diagram that file that the embodiment of the present invention provides pulls method;
Shown in Fig. 3, be the signaling process figure that file that the embodiment of the present invention provides pulls method;
It shown in Fig. 4, is the structural representation of a kind of file pulling device of providing of the embodiment of the present invention.
Embodiment
In embodiments of the present invention, the download address of file does not directly expose, but will be by file the address of the relative address in database and database combine and determine, stopped file and downloaded the drawback being ravesdropping, higher security can be provided.Due to fragmentation download being provided, a file is decomposed into multiple fragments simultaneously, can significantly improves the speed that file is downloaded, thereby make client obtain file from database rapidly.
Below the file that first introducing the embodiment of the present invention provides pulls the system of method institute foundation.Figure 1 shows that the system architecture schematic diagram that file that one embodiment of the invention provides pulls.
As shown in Figure 1, this system comprises: client 101, file pull server 102, file pulls notification interface 103, pulls database 104 and document data bank 105.Wherein, client 101 pulls server 102 with file and is connected, and receives file and pulls the file data that server 102 sends; File pulls server 102 and is pulled notification interface 103 and pulled database 104 and be connected by file, from pull database 104, obtain pending mission bit stream by this interface, after task is finished dealing with, then feed back the situation of task processing by this interface to pulling database 104; Document data bank 105 pulls server 102 with file and is connected, the file that storage client-requested is downloaded, file pulls server 102 and resolves the pending mission bit stream obtaining from pulling database 104, the file that download client 101 is asked from document data bank 105, and send to client 101.
File based on shown in Fig. 1 pulls system, Figure 2 shows that file that one embodiment of the invention provides pulls the schematic diagram of method.According to this figure, each step is described in detail in detail as follows:
Step 201, obtain pending mission bit stream, described pending mission bit stream comprises the title of the file that will download, the relative path of described file, and the position of the described file client that will download to;
Wherein, obtain pending mission bit stream, comprising: pull database by interface accessing, obtain pending mission bit stream.
Step 202, analyze described pending mission bit stream, obtain the download address of described file;
Wherein, this step specifically comprises: combine the path of relative path and the described file place database of described file, obtain the download address of described file.
The relative path of file refers to the position of this file in the database at its place, adds the address of database, can obtain the download address of this file.
Step 203, enable fragmentation download, use described download address, described file is downloaded to the assigned address of described client;
Wherein, enable fragmentation and download, comprising: described file is decomposed into at least one file fragmentation, and is that each file fragmentation distributes a downloading process, described each downloading process is downloaded described file fragmentation simultaneously.
Step 204, judge whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment.
Wherein, this step specifically comprises: judge that described file downloads successfully, revise the state of described pending task for finishing dealing with; If or judge that described file download is unsuccessful, revise the state of described pending task for to have processed.
The file that uses the embodiment of the present invention to provide pulls method, the download address of file no longer directly exposes, but will combine and determine by file address of relative address and database in database, stop file and downloaded the drawback being ravesdropping, higher security can be provided.Due to fragmentation download being provided, a file is decomposed into multiple fragments simultaneously, can significantly improves the speed that file is downloaded, thereby make client obtain file from database rapidly.
Based on the system shown in Fig. 1, the file that Fig. 3 provides for one embodiment of the invention pulls the signaling process figure of method.According to this figure, the file that introducing in detail the embodiment of the present invention provides pulls method.
Step 301, client pull server request download file to file;
Step 302, file pull server and pull notification interface (hereinafter to be referred as interface) access by file and pull database, obtain pending mission bit stream, comprising the title of the file that will download, the relative path of file, and the position of this file client that will download to.
Step 303, file pull server according to the mission bit stream getting, and analyze and splice the download address that obtains file.
Wherein, file pull server according to this file the relative path in document data bank, and the address of document data bank, splicing obtains the download address of this file.
Step 304, file pull file address that server obtains according to analysis and enable fragmentation and download file is downloaded to client from document data bank.
Whether step 305, client pull this file of server feedback to file and download successfully;
Whether step 306, file pull server successful according to this file download, revise the state that pulls this task in database by interface.
Wherein, file pulls server according to the feedback of client, if judge, this file downloads successfully, revises the state of pending task for finishing dealing with; If judge, this file download is unsuccessful, revises the state of pending task for to have processed.
The file that uses the embodiment of the present invention to provide pulls method, the download address of file no longer directly exposes, but will combine and determine by file address of relative address and database in database, stop file and downloaded the drawback being ravesdropping, higher security can be provided.Due to fragmentation download being provided, a file is decomposed into multiple fragments simultaneously, can significantly improves the speed that file is downloaded, thereby make client obtain file from database rapidly.
Below introduce a kind of file pulling device, in order to realize the method that in previous embodiment, disclosed file pulls.The structural representation of a kind of file pulling device that Fig. 4 provides for one embodiment of the invention.According to this figure, each ingredient of introducing this device is as follows:
Acquiring unit 401, for obtaining pending mission bit stream, described pending mission bit stream comprises the title of the file that will download, the relative path of described file, and the position of the described file client that will download to;
Wherein, acquiring unit 401 obtains pending mission bit stream, comprising: pull database by interface accessing, obtain pending mission bit stream.
Analytic unit 402, the described pending mission bit stream obtaining for analyzing described acquiring unit 401, obtains the download address of described file;
Wherein, analytic unit 402, by the combination relative path of described file and the path of described file place database, obtains the download address of described file.
Download unit 403, downloads for enabling fragmentation, uses described analytic unit 402 to analyze the download address obtaining, and described file is downloaded to the assigned address of described client;
Wherein, the fragmentation that download unit 403 starts is downloaded and is comprised: described file is decomposed into at least one file fragmentation, and be that each file fragmentation distributes a downloading process, described each downloading process is downloaded described file fragmentation simultaneously, described file is downloaded to the assigned address of described client.
Status modifier unit 404, for judging whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment.
Wherein, status modifier unit 404 specifically for: judge that described file downloads successfully, revise the state of described pending task for finishing dealing with; Or judge that described file download is unsuccessful, revise the state of described pending task for to have processed.
The file pulling device that uses the embodiment of the present invention to provide, the download address of file no longer directly exposes, but will combine and determine by file address of relative address and database in database, stop file and downloaded the drawback being ravesdropping, higher security can be provided.Due to fragmentation download being provided, a file is decomposed into multiple fragments simultaneously, can significantly improves the speed that file is downloaded, thereby make client obtain file from database rapidly.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of programmed instruction, aforesaid program can be stored in read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc, CD, network node, schedulers.
Finally it should be noted that: these are only the preferred embodiments of the present invention, be not limited to the present invention, although the present invention is had been described in detail with reference to previous embodiment, for a person skilled in the art, its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement.Within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. file pulls a method, it is characterized in that, comprising:
Obtain pending mission bit stream, described pending mission bit stream comprises the title of the file that will download, the relative path of described file, and the position of the described file client that will download to;
Analyze described pending mission bit stream, obtain the download address of described file;
Enable fragmentation and download, use described download address, described file is downloaded to the assigned address of described client;
Judge whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment.
2. method according to claim 1, is characterized in that, described in obtain pending mission bit stream, comprising: pull database by interface accessing, obtain pending mission bit stream.
3. method according to claim 1, is characterized in that, the mission bit stream that described analysis is pending obtains the download address of described file, comprising:
Combine the path of relative path and the described file place database of described file, obtain the download address of described file.
4. method according to claim 1, is characterized in that, described in enable fragmentation download, comprising:
Described file is decomposed into at least one file fragmentation, and is that each file fragmentation distributes a downloading process, described each downloading process is downloaded described file fragmentation simultaneously.
5. method according to claim 1, is characterized in that, describedly judges whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment, comprising:
Judge that described file downloads successfully, revise the state of described pending task for finishing dealing with; Or
Judge that described file download is unsuccessful, revise the state of described pending task for to have processed.
6. a file pulling device, is characterized in that, comprising:
Acquisition module, for obtaining pending mission bit stream, described pending mission bit stream comprises the title of the file that will download, the relative path of described file, and the position of the described file client that will download to;
Analysis module, the described pending mission bit stream obtaining for analyzing described acquisition module, obtains the download address of described file;
Download module, downloads for enabling fragmentation, and the download address that uses described analysis module analysis to obtain, downloads to described file the assigned address of described client;
Status modifier module, for judging whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment.
7. device according to claim 6, is characterized in that, described acquisition module obtains pending mission bit stream, comprising: pull database by interface accessing, obtain pending mission bit stream.
8. device according to claim 6, is characterized in that, described analysis module is analyzed pending mission bit stream, obtains the download address of described file, comprising:
Combine the path of relative path and the described file place database of described file, obtain the download address of described file.
9. according to the device described in any one in claim 6-8, it is characterized in that, described download module is enabled fragmentation and is downloaded, and described file is downloaded to the assigned address of described client, comprising:
Described file is decomposed into at least one file fragmentation, and is that each file fragmentation distributes a downloading process, described each downloading process is downloaded described file fragmentation simultaneously, described file is downloaded to the assigned address of described client.
10. device according to claim 6, is characterized in that, described status modifier module judges whether described file is downloaded successfully, according to the status information of the described pending task of judged result amendment, comprising:
Judge that described file downloads successfully, revise the state of described pending task for finishing dealing with; Or
Judge that described file download is unsuccessful, revise the state of described pending task for to have processed.
CN201410063299.5A 2014-02-25 2014-02-25 File pulling method and device Pending CN104182437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410063299.5A CN104182437A (en) 2014-02-25 2014-02-25 File pulling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410063299.5A CN104182437A (en) 2014-02-25 2014-02-25 File pulling method and device

Publications (1)

Publication Number Publication Date
CN104182437A true CN104182437A (en) 2014-12-03

Family

ID=51963486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410063299.5A Pending CN104182437A (en) 2014-02-25 2014-02-25 File pulling method and device

Country Status (1)

Country Link
CN (1) CN104182437A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871986A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Data downloading method and device, and terminal
CN106407200A (en) * 2015-07-29 2017-02-15 北京京东尚科信息技术有限公司 Data issuing method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425990A (en) * 2001-12-13 2003-06-25 杨磊 File cocurrent downloading technology for Internet multiple servers
CN1996844A (en) * 2005-12-31 2007-07-11 华为技术有限公司 A local download method and system
CN103281362A (en) * 2013-05-14 2013-09-04 郭斌 File transfer protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1425990A (en) * 2001-12-13 2003-06-25 杨磊 File cocurrent downloading technology for Internet multiple servers
CN1996844A (en) * 2005-12-31 2007-07-11 华为技术有限公司 A local download method and system
CN103281362A (en) * 2013-05-14 2013-09-04 郭斌 File transfer protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
游趣吧: "FTP文件上传与下载", 《BLOG.CSDN.NET/ZLB824/ARTICLE/DETAILS/7742959》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407200A (en) * 2015-07-29 2017-02-15 北京京东尚科信息技术有限公司 Data issuing method and apparatus
CN105871986A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Data downloading method and device, and terminal

Similar Documents

Publication Publication Date Title
JP6367883B2 (en) System and method for controlling local applications through web pages
CN106375321B (en) The method and system of the content of certification is migrated through towards content consumer
US10320940B1 (en) Managing generic data
US9756022B2 (en) Enhanced remote key management for an enterprise in a cloud-based environment
US9477517B2 (en) Service broker systems, methods, and apparatus
US9430211B2 (en) System and method for sharing information in a private ecosystem
US10574442B2 (en) Enhanced remote key management for an enterprise in a cloud-based environment
EP2706724A2 (en) Systems and methods for secure file portability between mobile applications on a mobile device
CN100417066C (en) Multi-territory accessing proxy using in treating safety problem based on browser application
EP2770695B1 (en) Method, server and user terminal for providing and acquiring media content
US10726111B2 (en) Increased security using dynamic watermarking
CN111078331B (en) Adaptive authentication in a spreadsheet interface integrated with a Web service
WO2016070718A1 (en) Method, device, and browser for file downloading
JP5976258B1 (en) Light installer
CN101473628A (en) Systems and methods for accelerating delivery of a computing environment to remote user
CN104580364A (en) Resource sharing method and device
US9537946B2 (en) System and method for creating and sharing user-generated information
CN111770072B (en) Method and device for accessing function page through single sign-on
EP2813051B1 (en) Dynamic sharing of a webservice
CN102523220A (en) Web authentication method, and client and access layer device used for web authentication
CN103607449A (en) Method, device and system for enterprise internal network physical machine to visit cloud storage virtual machine
CN104182437A (en) File pulling method and device
US20150326577A1 (en) Accelerated application authentication and content delivery
US20210006634A1 (en) Secure and private web browsing system and method
TW200933381A (en) System and method for running a web-based application while offline

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141203

RJ01 Rejection of invention patent application after publication