Movatterモバイル変換


[0]ホーム

URL:


CN103002023B - A kind of batch downloads the method for recording file - Google Patents

A kind of batch downloads the method for recording file
Download PDF

Info

Publication number
CN103002023B
CN103002023BCN201210473807.8ACN201210473807ACN103002023BCN 103002023 BCN103002023 BCN 103002023BCN 201210473807 ACN201210473807 ACN 201210473807ACN 103002023 BCN103002023 BCN 103002023B
Authority
CN
China
Prior art keywords
recording file
ftp
file
downloaded
activex control
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.)
Active
Application number
CN201210473807.8A
Other languages
Chinese (zh)
Other versions
CN103002023A (en
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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information 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 Beijing Si Tech Information Technology Co LtdfiledCriticalBeijing Si Tech Information Technology Co Ltd
Priority to CN201210473807.8ApriorityCriticalpatent/CN103002023B/en
Publication of CN103002023ApublicationCriticalpatent/CN103002023A/en
Application grantedgrantedCritical
Publication of CN103002023BpublicationCriticalpatent/CN103002023B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

The present invention relates to a kind of method that batch downloads recording file, by loading ActiveX control in Web page, setting up the connection of browser and file server, the recording file of file server downloaded and is stored into client.In ActiveX control, download recording file by the direct access file server of FTP, recording file rapid batch can be realized and download, alleviate the pressure of Web server.

Description

A kind of batch downloads the method for recording file
Technical field
The present invention relates to a kind of method of download file.
Background technology
Call between user and customer service operator is stored in file server, i.e. third-party server, the connecting system that operator uses adopts B/S framework, with file server not on same station server, be connected to file server by Java mode and download recording to client, the path of process is client->Web service end-> file server->Web server-> client, cause speed of download slow like this, and the words that batch is downloaded can cause client and the stuck phenomenon of service end.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method that easy rapid batch being easy to realize downloads recording file.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of batch downloads the method for recording file, comprises the following steps:
Step 1, loads ActiveX control in Web page;
Step 2, in the self defining programm of ActiveX control, creates browser and is connected with the FTP of file server;
Step 3, is connected by described FTP, is downloaded by the recording file of file server and is stored into client.
The invention has the beneficial effects as follows: in B/S framework, load ActiveX control, control method is directly called in Javascript, send some call parameters in control method, recording file is downloaded by the direct access file server of FTP according to condition in control, path is client-> file server-> client, realize recording file batch fast to download, also mitigate the pressure of Web server.
On the basis of technique scheme, the present invention can also do following improvement:
Further, before the described step 2 of execution, user first filters out in Web page the information that will download in batches.The beneficial effect of above-mentioned further scheme is adopted to be search the data needing to download; In addition, unnecessary download can also be reduced.
Further, described step 2 specifically comprises the steps:
Step 21, in the self defining programm of ActiveX control, starts event handling thread;
Step 22, in the self defining programm of ActiveX control, judges current whether existing downloading task, if current existing downloading task, then performs step 23, do not have downloading task if current, then perform step 24;
Step 23, sends the information of existing downloading task, terminates to described event handling thread;
Step 24, creates browser and is connected with the FTP of file server;
Step 25, judges that whether described FTP connects successful, if described FTP connection failure, then performs step 26; If described FTP successful connection, then perform step 3;
Step 26, sends the information of connection failure to described event handling thread, terminate.
The beneficial effect of above-mentioned further scheme is adopted to be prevent multiple downloading task, influential system; Also send to by event handling thread process to the situation of FTP connection failure, perfect further system.
Further, described step 3 specifically comprises the steps:
Step 31, is connected by described FTP, is downloaded by the recording file of file server and is stored into client;
Whether step 32, judge that recording file is downloaded and complete, do not complete, then perform step 31 if recording file is downloaded; If recording file is downloaded and completed, then perform step 33;
Step 33, sends to described event handling thread and downloads completed information, terminate.
The beneficial effect of above-mentioned further scheme is adopted to be give event handling thread by produced problem in download, perfect further system.
Further, described event handling thread is used for the information received to send to Web page.
Adopt the beneficial effect of above-mentioned further scheme to be that current system conditions is informed user, determine next how to process, flexibility is good by user.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of preferred implementation of the present invention;
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
Technical scheme of the present invention is realized by JS, C++, and mainly can be divided into ActiveX control, Web page is shown, Web page calls ActiveX method by javascript, and ActiveX control is connected on file server by FTP and downloads.When file download to completing, ActiveX control can give Web return state event, and Web points out user's failed download or the information such as to complete after receiving this event.The inventive method is mainly: load ActiveX control in Web page; In the self defining programm of ActiveX control, create browser and be connected with the FTP of file server; Connected by described FTP, the recording file of file server is downloaded and is stored into client.
Fig. 1 is the flow chart of a kind of preferred implementation of the present invention, is described below to Fig. 1:
Step 1, loads ActiveX control in Web page.User can screen batch Download Info in advance, and then clicks batch download in Web page.
Step 2, in the self defining programm of ActiveX control, starts event handling thread;
Step 3, in the self defining programm of ActiveX control, judges current whether existing downloading task, if current existing downloading task, then performs step 4; There is no downloading task if current, then perform step 5;
Step 4, then send the information of existing downloading task, terminate to described event handling thread;
Step 5, creates browser and is connected with the FTP of file server;
Step 6, judges that whether described FTP connects successful, if described FTP connection failure, then performs step 7; If described FTP successful connection, then perform step 8;
Step 7, sends the information of connection failure to described event handling thread, terminate;
Step 8, is connected by described FTP, is downloaded by the recording file of file server and is stored into client;
Whether step 9, judge that recording file is downloaded and complete, do not complete, then perform step 8 if recording file is downloaded; If recording file is downloaded and completed, then perform step 10;
Step 10, sends to described event handling thread and downloads completed information, terminate.
Here, described event handling thread is used for the information received to send to Web page, and point out and processed by user, such degree of freedom is larger, certainly can also do custom programming and process various situation.
Particularly, step of the present invention comprises:
1, register in systems in which and load ActiveX control, loaded by label <OBJECT>, load successfully, adopt javascript to call ActiveXDownloadRecordPlayFile_AddRemoteDir method at batch download recording interface to realize, the method is self-defining program in ActiveX control;
2, then, in DownloadRecordPlayFile_AddRemoteDir method, start event thread, event to be thrown to foreground Web layer by message mechanism by ActiveX;
3, completed the selection of download file storing path in the method by BROWSEINFO simultaneously, OpenConnection realizes FTP and connects, CloseConnection realizes closing FTP and connects, when encountering problems, such as, when connection failure, can not download etc. judges, call corresponding event such as EventNOConnection () etc. and return to Web layer;
4, after Web layer receives, there is inside javascript following code: <script for=" Phone " event=" OnNOConnection (errorCode) " > carries out the process of event.When calling ActiveX control method, waiting prompting to be triggered to foreground Web layer by case mechanism for some mistakes called, after foreground Web layer receives event, adopting Web prompting to require to point out user.
From user perspective, enforcement of the present invention can respond the needs of user fast, and the use sense improving user is subject to.Download some files in enormous quantities, if too slow, the perception of user is very bad, and wait also may cause user to the query of systematic function for a long time; From enterprise's angle, ActiveX control package file is downloaded, only need to load ActiveX control in Web client, call ActiveX method, transmit information needed as requested, the download of file can be realized, in subsequent project, run into this demand, can directly call this method for packing, save human cost; From system itself, the realization of the method, significantly reduces the pressure of Web server, there is not the phenomenon that system deadlock is lived, improves systematic function.
Certainly, use the inventive method to be not limited to and download recording file use, other file that file server stores also can be downloaded by the inventive method.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

CN201210473807.8A2012-11-202012-11-20A kind of batch downloads the method for recording fileActiveCN103002023B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210473807.8ACN103002023B (en)2012-11-202012-11-20A kind of batch downloads the method for recording file

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210473807.8ACN103002023B (en)2012-11-202012-11-20A kind of batch downloads the method for recording file

Publications (2)

Publication NumberPublication Date
CN103002023A CN103002023A (en)2013-03-27
CN103002023Btrue CN103002023B (en)2015-09-09

Family

ID=47930156

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210473807.8AActiveCN103002023B (en)2012-11-202012-11-20A kind of batch downloads the method for recording file

Country Status (1)

CountryLink
CN (1)CN103002023B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106294422A (en)*2015-05-252017-01-04《中国学术期刊(光盘版)》电子杂志社有限公司The method that a kind of document based on webpage batch is downloaded
CN106131198A (en)*2016-07-152016-11-16广东亿迅科技有限公司A kind of recording file batch is downloaded and the system and method for the automatic transcoding of form

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101292867A (en)*2008-05-282008-10-29北京工业大学 Physiological multi-parameter remote monitoring system and method based on B/S structure
CN101986652A (en)*2010-09-272011-03-16北京泰豪智能工程有限公司Data sharing method and system based on embedded servers as well as client
CN102156745A (en)*2011-04-192011-08-17北京神州数码思特奇信息技术股份有限公司Method and system for continuously browsing Web pages through ActiveX widget

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN100385852C (en)*2004-06-222008-04-30腾讯科技(深圳)有限公司Realization and realizing device for selective download from webpage inserted piece

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101292867A (en)*2008-05-282008-10-29北京工业大学 Physiological multi-parameter remote monitoring system and method based on B/S structure
CN101986652A (en)*2010-09-272011-03-16北京泰豪智能工程有限公司Data sharing method and system based on embedded servers as well as client
CN102156745A (en)*2011-04-192011-08-17北京神州数码思特奇信息技术股份有限公司Method and system for continuously browsing Web pages through ActiveX widget

Also Published As

Publication numberPublication date
CN103002023A (en)2013-03-27

Similar Documents

PublicationPublication DateTitle
CN109672580B (en)Full link monitoring method, device, terminal equipment and storage medium
CN108228810B (en)Form linkage configuration method and system and form updating method and system
CN110196722B (en)Cloud host batch management method, system, equipment and storage medium
CN111367544B (en)Multi-peripheral firmware upgrade control method, intelligent device, firmware and electronic device
US20140007076A1 (en)Separate upgrade/modification of remote software in machine to machine communication
US20090119092A1 (en)Ensuring product correctness in a multilingual environment
US20130152069A1 (en)Method, apparatus and system for initiating terminal operation
CN110147241A (en)Program configures update method, electronic device, computer equipment and storage medium
CN103685495A (en)Method and system for upgrading software
US9483254B2 (en)Method, apparatus and storage medium for dynamically patching a function
CN110650503B (en)Network access method, device, system and computer readable storage medium
CN103002023B (en)A kind of batch downloads the method for recording file
CN105138363A (en)Automatic upgrade processing method and device of application programs
CN107526584B (en)Data access method and device
US20140317260A1 (en)Method and apparatus for controlling cloud virtual base station
CN106294119B (en)Test scheduling system and method and terminal equipment
CN113805957A (en)Dynamic loading method and device for edge terminal program
CN105447384A (en)Anti-monitoring method and system and mobile terminal
CN110674060A (en)Service fusing control method and device
CN108347456B (en)Application program downloading method and device
CN116708395A (en) An optimization method and related equipment for OTA upgrade
CN112035127A (en) Method, apparatus, vehicle, storage medium, and electronic device for installing applications
CN111143134B (en)Fault processing method, device and computer storage medium
CN108920683A (en) A method, device and storage medium for downloading external resources on a cloud computing platform
CN111367963B (en) A method, device, equipment and computer storage medium for determining source channel

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp