CN103685557A - Method and device for uploading and downloading file - Google Patents

Method and device for uploading and downloading file Download PDF

Info

Publication number
CN103685557A
CN103685557A CN201310731636.9A CN201310731636A CN103685557A CN 103685557 A CN103685557 A CN 103685557A CN 201310731636 A CN201310731636 A CN 201310731636A CN 103685557 A CN103685557 A CN 103685557A
Authority
CN
China
Prior art keywords
file
uploaded
downloaded
upload
download
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
CN201310731636.9A
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201310731636.9A priority Critical patent/CN103685557A/en
Publication of CN103685557A publication Critical patent/CN103685557A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for uploading files. The method for uploading files comprises establishing a connection between an uploading file interface module and a uploading file service module when uploading signals of uploading files are received, sending files to be uploaded to the uploading file service module, enabling the uploading file service module to send uploading requests to a server to acquire encrypted information, encrypting the files to be uploaded and uploading, feeding back transmission results to the uploading file interface module, enabling the uploading file interface module to submit the transmission results and the information of the files to be uploaded to the server for store. The invention further discloses a device for uploading files, a method and a device for downloading files. According to this arrangement, the prior art of using plug-ins as Applet and OCX to transmit files by the FTP(File Transfer Protocol) is not needed to be considered, and therefore, problems of timeout, network congestion, and failures of breakpoint transmission upon transmitting large files can be avoided and the file transmission efficiency can be improved.

Description

The method and apparatus that file is uploaded, downloaded
Technical field
The present invention relates to Internet technical field, specially refer to a kind of method and system of file transfer.
Background technology
Traditional document transmission method, normally based on http protocol, transmit, and at server end, carry out the encryption and decryption of file, or by Applet(applet) or OCX(Object Linking and Embedding Control eXtension, object type extension component) etc. plug-in unit, carrys out transfer files by File Transfer Protocol.But, by http protocol, carry out the transmission of file, in transmission during large file, can cause overtime, network blockage and can not breakpoint transmission etc. problem; And carry out the transmission of file by plug-in unit modes such as Applet or OCX, be easily subject to browser to load the impact of stability, thereby affect the efficiency of file transfer.
Summary of the invention
Main purpose of the present invention is for providing the method and system of file transfer, be intended to avoid occurring overtime, network blockage and can not breakpoint transmission etc. phenomenon, improve the efficiency of file transfer.
The invention provides a kind of method that file is uploaded, comprise step:
Receive after the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, the information of described file to be uploaded is sent to described upload file service module;
Upload file service module sends upload request to service end, obtains enciphered message, encrypt described file to be uploaded and upload, by transmission result feedback to described in upload interacting message module;
Upload interacting message module the information of uploading of described transmission result and described file to be uploaded is committed to described service end, for service end, store.
Preferably, the information of described file to be uploaded comprises file name and the file path of file to be uploaded; The information of uploading of described file to be uploaded comprises uplink time, file size and the file address of file to be uploaded.
Preferably, described upload file service module sends upload request to service end, obtains enciphered message, encrypt described file to be uploaded and upload, by transmission result feedback to described in upload interacting message module step specifically comprise:
Upload file service module, according to the information of file to be uploaded, is searched corresponding file described to be uploaded;
Application software server to service end sends upload request, and obtains enciphered message, described file to be uploaded is carried out to segmentation, and encrypt the file described to be uploaded after segmentation;
By file transfer protocol (FTP) by the file transfer described to be uploaded of encrypting the Ftp server to service end, for described Ftp server, preserve described file to be uploaded.
Preferably, described, receive after the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, before the information of described file to be uploaded being sent to the step of described upload file service module, also comprise step:
Client is passed through browser access service end, the request of loading listed files page, and interacting message module is uploaded in loading.
The present invention further provides the device that a kind of file is uploaded, comprise and upload interacting message module and upload file service module, wherein:
The described interacting message module of uploading comprises:
Upload linkage unit, for receiving after the upper teletype command of file to be uploaded, connect with upload file service module, the information of described file to be uploaded is sent to described upload file service module;
Information commit unit, for the transmission result of described upload file service module feedback and the information of uploading of described file to be uploaded are committed to described service end, stores for service end;
Described upload file service module comprises:
Uploading unit, for sending upload request to service end, obtains enciphered message, encrypts described file to be uploaded and uploads, and transmission result feedback is uploaded to interacting message module described in extremely.
Preferably, described uploading unit specifically comprises:
Search subelement, for according to the information of file to be uploaded, search corresponding file described to be uploaded;
Enciphered message is obtained subelement, sends upload request, and obtain enciphered message for the application software server to service end;
Segmentation and encryption subelement, for described file to be uploaded is carried out to segmentation, and encrypt the file described to be uploaded after segmentation;
Upload subelement, for by file transfer protocol (FTP) by the file transfer described to be uploaded of encrypting the Ftp server to service end, for described Ftp server, preserve described file to be uploaded.
The present invention further provides a kind of method that file is downloaded, comprise step:
Receive after the download instruction of file to be downloaded, download message interactive module and download file service module connect, and the information of described file to be downloaded is sent to described download file service module;
Download file service module sends download request to service end, downloads described file to be downloaded, and obtains decryption information, and the described file to be downloaded of downloading is decrypted;
Download file service module represents the described file to be downloaded after deciphering.
Preferably, described download file service module sends download request to service end, downloads described file to be downloaded, and obtains decryption information, and the step that the described file to be downloaded of downloading is decrypted specifically comprises:
Download file service module sends download request to the Ftp server of service end, downloads the fragment of described file to be downloaded;
From the application software server of service end, obtain the decryption information of described file to be downloaded, the fragment of the described file to be downloaded of downloading is decrypted, merge the fragment of described file to be downloaded.
Preferably, described, receive after the download instruction of file to be downloaded, download message interactive module and download file service module connect, and before the information of described file to be downloaded being sent to the step of described download file service module, also comprise step:
Client is passed through browser access service end, the request of loading listed files page, and load download message interactive module.
The present invention further provides the device that a kind of file is downloaded, comprise download message interactive module and download file service module, wherein:
Described download message interactive module, for connecting with download file service module, is sent to described download file service module by the information of described file to be downloaded;
Described download file service module, for sending download request to service end, downloads described file to be downloaded, and obtains decryption information, and the described file to be downloaded of downloading is decrypted; Represent the described file to be downloaded after deciphering.
Preferably, described download file service module specifically comprises:
Download unit, sends download request for the Ftp server to service end, downloads the fragment of described file to be downloaded;
Decryption information acquiring unit, for obtaining the decryption information of described file to be downloaded from the application software server of service end;
Deciphering and merge cells, for the fragment of the described file to be downloaded of downloading is decrypted, merge the fragment of described file to be downloaded.
The present invention is by after receiving the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, the information of file to be uploaded is sent to upload file service module, upload file service module sends upload request to service end, obtain enciphered message, encrypt file to be uploaded and upload, and by transmission result feedback to uploading interacting message module, then by uploading interacting message module, the information of uploading of transmission result and file to be uploaded is committed to service end, for service end, stores.Owing to carrying out transfer files without plug-in units such as adopting existing Applet or OCX by File Transfer Protocol, thus avoided occurring when the large file of transmission overtime, network blockage and can not breakpoint transmission etc. phenomenon, and improved the efficiency of file transfer.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method the first embodiment of uploading of file of the present invention;
Fig. 2 obtains enciphered message, the schematic flow sheet of encrypting file to be uploaded and uploading in the method uploaded of file of the present invention;
Fig. 3 is the schematic flow sheet of method the second embodiment of uploading of file of the present invention;
Fig. 4 is the structural representation of device the first embodiment of uploading of file of the present invention;
Fig. 5 is the structural representation of the uploading unit of the device uploaded of file of the present invention;
Fig. 6 is the schematic flow sheet of method first embodiment of file download of the present invention;
Fig. 7 downloads file to be downloaded, the schematic flow sheet of deciphering file to be downloaded in the method downloaded of file of the present invention;
Fig. 8 is the schematic flow sheet of method second embodiment of file download of the present invention;
Fig. 9 is the structural representation of device first embodiment of file download of the present invention;
Figure 10 is the structural representation of download file service module in the device downloaded of file of the present invention.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of method the first embodiment of uploading of file of the present invention.
The method that the file that the present embodiment provides is uploaded, comprising:
Step S10, receives after the upper teletype command of file to be uploaded, uploads interacting message module and upload file service module connects, and the information of file to be uploaded is sent to upload file service module;
In the present embodiment, by client-access service end, user can pass through the application software server of browser access service end in client.In client, arrange one and upload interacting message module and a upload file service module, this uploads interacting message module can be Flex plug-in unit, and upload file service module can be for being arranged on the file server of client, by the application software server of Flex plug-in unit and file server and service end, undertaken alternately, and for user provides an interactive interface, for user select to upload, download and viewing files; By file server, realize the upload and download to user-selected file.
After the file to be uploaded of selecting to upload user, receive the upper teletype command of this file to be uploaded, upload interacting message module and upload file service module connects, and the information of user-selected file to be uploaded is sent to upload file service module.In the present embodiment, upload interacting message module and can carry out communication by socket and upload file service module, the information of file to be uploaded comprises the information such as the file name of file to be uploaded and file path, can certainly comprise that other are for identifying the information of this file to be uploaded.
Step S20, upload file service module sends upload request to service end, obtains enciphered message, encrypt file to be uploaded and upload, by transmission result feedback to uploading interacting message module;
At upload file service module, receive after the information of file to be uploaded, by corresponding agreement, be connected with service end, send the upload request of file to be uploaded, from service end, obtain the enciphered message of file to be uploaded, then by this enciphered message, file to be uploaded is encrypted, and uploads file to be uploaded.After having uploaded, by transmission result feedback, to uploading interacting message module, this transmission result is the feedback message that failure was uploaded successfully or uploaded to file to be uploaded.
Step S30, uploads interacting message module the information of uploading of transmission result and file to be uploaded is committed to service end, for service end, stores.
At upload file service module, completed uploading of file to be uploaded, and by transmission result feedback to uploading after interacting message module, upload interacting message module the information of uploading of transmission result and file to be uploaded be committed to service end, for service end, store.In the present embodiment, the information of uploading of file to be uploaded comprises the information such as uplink time, file size and file address of file to be uploaded.
The present embodiment is by after receiving the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, the information of file to be uploaded is sent to upload file service module, upload file service module sends upload request to service end, obtain enciphered message, encrypt file to be uploaded and upload, and by transmission result feedback to uploading interacting message module, then by uploading interacting message module, the information of uploading of transmission result and file to be uploaded is committed to service end, for service end, stores.Owing to carrying out transfer files without plug-in units such as adopting existing Applet or OCX by File Transfer Protocol, thus avoided occurring when the large file of transmission overtime, network blockage and can not breakpoint transmission etc. phenomenon, and improved the efficiency of file transfer.
With reference to Fig. 2, Fig. 2 obtains enciphered message, the schematic flow sheet of encrypting file to be uploaded and uploading in the method uploaded of file of the present invention.
In the above-described embodiments, step S20 specifically comprises:
Step S21, upload file service module, according to the information of file to be uploaded, is searched corresponding file to be uploaded;
Step S22, to the application software server transmission upload request of service end, and obtains enciphered message, file to be uploaded is carried out to segmentation, and encrypt the file to be uploaded after segmentation;
At upload file service module, receive after the information of the file to be uploaded of uploading the transmission of interacting message module, according to the information of this file to be uploaded, search corresponding file to be uploaded, and send upload request to the application software server of service end, the enciphered message of acquisition request file to be uploaded, obtained after enciphered message, file to be uploaded has been carried out to segmentation, and the file to be uploaded after segmentation has been encrypted.In the present embodiment, upload file service module is mutual by http protocol and application software server, and the enciphered message that application software server provides can be the key for matching of random generation; And file to be uploaded is divided into a plurality of fragments, upload, can avoid causing because file is excessive the problems such as overtime and network blockage.
Step S23, by file transfer protocol (FTP) by the file transfer to be uploaded of encrypting the Ftp server to service end, for Ftp server, preserve file to be uploaded.
After file to be uploaded is carried out to segmentation and encrypting, upload file service module by file transfer protocol (FTP) by the file transfer to be uploaded of encrypting the Ftp server to service end, for Ftp server, preserve the file to be uploaded receiving.In the present embodiment, upload file service module and Ftp server can carry out by File Transfer Protocol the transmission of file.
At upload file service module, receive after the information of the file to be uploaded of uploading the transmission of interacting message module, according to the information of file to be uploaded, search corresponding file to be uploaded, application software server to service end sends upload request, obtain enciphered message, file to be uploaded is carried out to segmentation, and encrypt the file to be uploaded after segmentation, then by file transfer protocol (FTP) by the file transfer to be uploaded of encrypting the Ftp server to service end, for Ftp server, preserve file to be uploaded.Adopt corresponding file transfer protocol (FTP) transfer files, thus further avoided transmission occur during large file overtime, network blockage and can not breakpoint transmission etc. phenomenon, and further improved the efficiency of file transfer.
With reference to Fig. 3, Fig. 3 is the schematic flow sheet of method the second embodiment of uploading of file of the present invention.
On the basis of method the first embodiment uploading at file of the present invention, before execution step S10, the method also comprises:
Step S40, client is passed through browser access service end, the request of loading listed files page, and interacting message module is uploaded in loading.
When user is by the application software server of the browser access service end of client, during the request of loading listed files page, load and upload interacting message module simultaneously.While needing upload file to service end as user, can select to upload option by uploading the interactive interface that interacting message module provides, to add file to be uploaded to service end, and be connected with the communication between application software server and upload file service module by uploading the foundation of interacting message module.
In client, pass through browser access service end, in the time of the request of loading listed files page, interacting message module is uploaded in loading, to upload the realization of interacting message module by this, be connected with the communication between upload file service module and application software server, the efficiency that improves file transfer for realizing provides strong premise.
The present invention further provides the device that a kind of file is uploaded.
With reference to Fig. 4, Fig. 4 is the structural representation of device the first embodiment of uploading of file of the present invention.
The device that the file that the present embodiment provides is uploaded, comprises and uploads interacting message module 10 and upload file service module 20, wherein:
Uploading interacting message module 10 comprises:
Upload linkage unit 11, for receiving after the upper teletype command of file to be uploaded, connect with upload file service module, the information of file to be uploaded is sent to upload file service module;
Information commit unit 12, for the transmission result of upload file service module feedback and the information of uploading of file to be uploaded are committed to service end, stores for service end;
Upload file service module 20 comprises:
Uploading unit 21, for sending upload request to service end, obtains enciphered message, encrypt file to be uploaded and upload, by transmission result feedback to uploading interacting message module.
In the present embodiment, by client-access service end, user can pass through the application software server of browser access service end in client.In client, arrange one and upload interacting message module 10 and a upload file service module 20, this uploads interacting message module 10 can be Flex plug-in unit, and upload file service module 20 can be for being arranged on the file server of client, by the application software server of Flex plug-in unit and file server and service end, undertaken alternately, and for user provides an interactive interface, for user select to upload, download and viewing files; By file server, realize the upload and download to user-selected file.
After the file to be uploaded of selecting to upload user, receive the upper teletype command of this file to be uploaded, upload interacting message module 10 and connect with upload file service module 20 by uploading linkage unit 11, and the information of user-selected file to be uploaded is sent to upload file service module 20.In the present embodiment, upload interacting message module can 10 to carry out communication by socket and upload file service module 20, the information of file to be uploaded comprises the information such as the file name of file to be uploaded and file path, can certainly comprise that other are for identifying the information of this file to be uploaded.
At upload file service module 20, receive after the information of file to be uploaded, by corresponding agreement, be connected with service end, and by the upload request of uploading unit 21 transmission file to be uploaded, from service end, obtain the enciphered message of file to be uploaded, then by this enciphered message, file to be uploaded is encrypted, and uploads file to be uploaded.After having uploaded, by transmission result feedback, to uploading interacting message module 10, this transmission result is the feedback message that failure was uploaded successfully or uploaded to file to be uploaded.
At upload file service module 20, completed uploading of file to be uploaded, and by transmission result feedback to uploading after interacting message module 10, the information commit unit 12 of uploading interacting message module 10 is committed to service end by the information of uploading of transmission result and file to be uploaded, for service end, stores.In the present embodiment, the information of uploading of file to be uploaded comprises the information such as uplink time, file size and file address of file to be uploaded.
The present embodiment is by after receiving the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, the information of file to be uploaded is sent to upload file service module, upload file service module sends upload request to service end, obtain enciphered message, encrypt file to be uploaded and upload, and by transmission result feedback to uploading interacting message module, then by uploading interacting message module, the information of uploading of transmission result and file to be uploaded is committed to service end, for service end, stores.Owing to carrying out transfer files without plug-in units such as adopting existing Applet or OCX by File Transfer Protocol, thus avoided occurring when the large file of transmission overtime, network blockage and can not breakpoint transmission etc. phenomenon, and improved the efficiency of file transfer.
With reference to Fig. 5, Fig. 5 is the structural representation of the uploading unit of the device uploaded of file of the present invention.
In the above-described embodiments, uploading unit 21 specifically comprises:
Search subelement 211, for according to the information of file to be uploaded, search corresponding file to be uploaded;
Enciphered message is obtained subelement 212, sends upload request, and obtain enciphered message for the application software server to service end;
Segmentation and encryption subelement 213, for file to be uploaded is carried out to segmentation, and encrypt the file to be uploaded after segmentation;
Upload subelement 214, for by file transfer protocol (FTP) by the file transfer to be uploaded of encrypting the Ftp server to service end, for Ftp server, preserve file to be uploaded.
At upload file service module 20, receive after the information of the file to be uploaded of uploading 10 transmissions of interacting message module, according to the information of this file to be uploaded, by searching subelement 211, search corresponding file to be uploaded, and obtain subelement 212 to the application software server transmission upload request of service end by enciphered message, the enciphered message of acquisition request file to be uploaded, obtained after enciphered message, segmentation and encryption subelement 213 carry out segmentation by file to be uploaded, and the file to be uploaded after segmentation is encrypted.In the present embodiment, upload file service module 20 is mutual by http protocol and application software server, and the enciphered message that application software server provides can be the key for matching of random generation; And file to be uploaded is divided into a plurality of fragments, upload, can avoid causing because file is excessive the problems such as overtime and network blockage.
File to be uploaded is carried out after segmentation encryption, upload file service module 20 upload subelement 214 by file transfer protocol (FTP) by the file transfer to be uploaded of encrypting the Ftp server to service end, for Ftp server, preserve the file to be uploaded receiving.In the present embodiment, upload file service module 20 can carry out by File Transfer Protocol the transmission of file with Ftp server.
At upload file service module, receive after the information of the file to be uploaded of uploading the transmission of interacting message module, according to the information of file to be uploaded, search corresponding file to be uploaded, application software server to service end sends upload request, obtain enciphered message, file to be uploaded is carried out to segmentation, and encrypt the file to be uploaded after segmentation, then by file transfer protocol (FTP) by the file transfer to be uploaded of encrypting the Ftp server to service end, for Ftp server, preserve file to be uploaded.Adopt corresponding file transfer protocol (FTP) transfer files, thus further avoided transmission occur during large file overtime, network blockage and can not breakpoint transmission etc. phenomenon, and further improved the efficiency of file transfer.
The present invention further provides a kind of method that file is downloaded.
With reference to Fig. 6, Fig. 6 is the schematic flow sheet of method first embodiment of file download of the present invention
The method that the file that the present embodiment provides is downloaded, comprising:
Step S50, receives after the download instruction of file to be downloaded, and download message interactive module and download file service module connect, and the information of file to be downloaded is sent to download file service module;
In the present embodiment, by client-access service end, user can pass through the application software server of browser access service end in client.In client, one download interacting message module and a download file service module are set, this download message interactive module can be Flex plug-in unit, and download file service module can be for being arranged on the file server of client, by the application software server of Flex plug-in unit and file server and service end, undertaken alternately, and for user provides an interactive interface, for user select to upload, download and viewing files; By file server, realize the upload and download to user-selected file.
After the file to be downloaded of selecting to need to download user, receive the upper teletype command of this file to be downloaded, download message interactive module and download file service module connect, and the information of user-selected file to be downloaded is sent to download file service module.In the present embodiment, download message interactive module can be carried out communication by socket and download file service module, and the information of file to be downloaded can comprise the file name of file to be downloaded, can certainly comprise that other are for identifying the information of this file to be downloaded.
Step S60, download file service module sends download request to service end, downloads file to be downloaded, and obtains decryption information, and the file to be downloaded of downloading is decrypted;
Step S70, download file service module represents the file to be downloaded after deciphering.
At download file service module, receive after the information of file to be downloaded, by corresponding agreement, be connected with service end, send the download request of file to be downloaded, download file to be downloaded, and from service end, obtain the decryption information of file to be downloaded, with this decryption information, to be downloaded is decrypted; Then, download file service module represents the file to be downloaded after deciphering to the terminal use of client.
The present embodiment is by after receiving the download instruction of file to be downloaded, and download message interactive module and download file service module connect, and the information of file to be downloaded is sent to download file service module; Download file service module sends download request to service end, downloads file to be downloaded, and obtains decryption information, the file to be downloaded of downloading is decrypted, and represents the file to be downloaded after deciphering to user.Owing to carrying out transfer files without plug-in units such as adopting existing Applet or OCX by File Transfer Protocol, thus avoided occurring when the large file of transmission overtime, network blockage and can not breakpoint transmission etc. phenomenon, and improved the efficiency of file transfer.
With reference to Fig. 7, Fig. 7 downloads file to be downloaded, the schematic flow sheet of deciphering file to be downloaded in the method downloaded of file of the present invention.
In the above-described embodiments, step S60 specifically comprises:
Step S61, download file service module sends download request to the Ftp server of service end, downloads the fragment of file to be downloaded;
Step S62, obtains the decryption information of file to be downloaded from the application software server of service end, the fragment of the file to be downloaded of downloading is decrypted, and merges the fragment of file to be downloaded.
At download file service module, receive after the information of the file to be downloaded that download message interactive module sends, to the Ftp server of service end, send download request, the fragment of file to be downloaded is downloaded in request; And from the application software server of service end, obtain the decryption information of file to be downloaded, obtained after decryption information, the fragment of the file to be downloaded of downloading is decrypted, and merge the fragment of file to be downloaded.In the present embodiment, download file service module is downloaded file to be downloaded by File Transfer Protocol from the Ftp server of service end, mutual by http protocol and application software server, the enciphered message that application software server provides can be the key for matching of random generation.
At download file service module, receive after the information of the file to be downloaded that download message interactive module sends, Ftp server to service end sends download request, download the fragment of file to be downloaded, and from the application software server of service end, obtain the decryption information of file to be downloaded, fragment to the file to be downloaded of downloading is decrypted, the fragment that merges file to be downloaded, further avoided transmission occur during large file overtime, network blockage and can not breakpoint transmission etc. phenomenon, and further improved the efficiency of file transfer.
With reference to Fig. 8, Fig. 8 is the schematic flow sheet of method second embodiment of file download of the present invention.
On the basis of method the first embodiment downloading at file of the present invention, before execution step S50, the method also comprises:
Step S80, client is passed through browser access service end, the request of loading listed files page, and load download message interactive module.
When user is by the application software server of the browser access service end of client, during the request of loading listed files page, load download message interactive module simultaneously.While needing download file as user, the interactive interface that can provide by download message interactive module is selected the download option, to download file to be downloaded from service end, and be connected with the communication between application software server and download file service module by the foundation of download message interactive module.
In client, pass through browser access service end, in the time of the request of loading listed files page, load download message interactive module, to be connected with the communication between download file service module and application software server by this download message interactive module realization, the efficiency that improves file transfer for realizing provides strong premise.
The present invention further provides the device that a kind of file is downloaded.
With reference to Fig. 9, Fig. 9 is the structural representation of device first embodiment of file download of the present invention.
The device that the file that the present embodiment provides is downloaded, comprises download message interactive module 30 and download file service module 40, wherein:
Download message interactive module 30, for connecting with download file service module, is sent to download file service module by the information of file to be downloaded;
Download file service module 40, for sending download request to service end, downloads file to be downloaded, and obtains decryption information, and the file to be downloaded of downloading is decrypted; Represent the file to be downloaded after deciphering.
In the present embodiment, by client-access service end, user can pass through the application software server of browser access service end in client.In client, one download interacting message module 30 and a download file service module 40 are set, this download message interactive module 30 can be Flex plug-in unit, and download file service module 40 can be for being arranged on the file server of client, by the application software server of Flex plug-in unit and file server and service end, undertaken alternately, and for user provides an interactive interface, for user select to upload, download and viewing files; By file server, realize the upload and download to user-selected file.
After the file to be downloaded of selecting to need to download user, receive the upper teletype command of this file to be downloaded, download message interactive module 30 connects with download file service module 40, and the information of user-selected file to be downloaded is sent to download file service module 40.In the present embodiment, download message interactive module 30 can be carried out communication by socket and download file service module 40, the information of file to be downloaded can comprise the file name of file to be downloaded, can certainly comprise that other are for identifying the information of this file to be downloaded.
At download file service module 40, receive after the information of file to be downloaded, by corresponding agreement, be connected with service end, send the download request of file to be downloaded, download file to be downloaded, and from service end, obtain the decryption information of file to be downloaded, with this decryption information, to be downloaded is decrypted; Then, download file service module 40 represents the file to be downloaded after deciphering to the terminal use of client.
The present embodiment is by after receiving the download instruction of file to be downloaded, and download message interactive module and download file service module connect, and the information of file to be downloaded is sent to download file service module; Download file service module sends download request to service end, downloads file to be downloaded, and obtains decryption information, the file to be downloaded of downloading is decrypted, and represents the file to be downloaded after deciphering to user.Owing to carrying out transfer files without plug-in units such as adopting existing Applet or OCX by File Transfer Protocol, thus avoided occurring when the large file of transmission overtime, network blockage and can not breakpoint transmission etc. phenomenon, and improved the efficiency of file transfer.
With reference to Figure 10, Figure 10 is the structural representation of download file service module in the device downloaded of file of the present invention.
In the above-described embodiments, download file service module 40 specifically comprises:
Download unit 41, sends download request for the Ftp server to service end, downloads the fragment of file to be downloaded;
Decryption information acquiring unit 42, for obtaining the decryption information of file to be downloaded from the application software server of service end;
Deciphering and merge cells 43, for the fragment of the file to be downloaded of downloading is decrypted, merge the fragment of file to be downloaded.
At download file service module 40, receive after the information of the file to be downloaded that download message interactive module 30 sends, by download unit 41, to the Ftp server of service end, send download request, the fragment of file to be downloaded is downloaded in request; And by decryption information acquiring unit 42, from the application software server of service end, obtain the decryption information of file to be downloaded, obtained after decryption information, fragment by deciphering and the file to be downloaded of 43 pairs of downloads of merge cells is decrypted, and merges the fragment of file to be downloaded.In the present embodiment, download file service module 40 is downloaded file to be downloaded by File Transfer Protocol from the Ftp server of service end, mutual by http protocol and application software server, the enciphered message that application software server provides can be the key for matching of random generation.
At download file service module, receive after the information of the file to be downloaded that download message interactive module sends, Ftp server to service end sends download request, download the fragment of file to be downloaded, and from the application software server of service end, obtain the decryption information of file to be downloaded, fragment to the file to be downloaded of downloading is decrypted, the fragment that merges file to be downloaded, further avoided transmission occur during large file overtime, network blockage and can not breakpoint transmission etc. phenomenon, and further improved the efficiency of file transfer.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (11)

1. the method that file is uploaded, is characterized in that, comprises step:
Receive after the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, the information of described file to be uploaded is sent to described upload file service module;
Upload file service module sends upload request to service end, obtains enciphered message, encrypt described file to be uploaded and upload, by transmission result feedback to described in upload interacting message module;
Upload interacting message module the information of uploading of described transmission result and described file to be uploaded is committed to described service end, for service end, store.
2. the method that file as claimed in claim 1 is uploaded, is characterized in that, the information of described file to be uploaded comprises file name and the file path of file to be uploaded; The information of uploading of described file to be uploaded comprises uplink time, file size and the file address of file to be uploaded.
3. the method that file as claimed in claim 2 is uploaded, it is characterized in that, described upload file service module sends upload request to service end, obtains enciphered message, encrypt described file to be uploaded and upload, by transmission result feedback to described in upload interacting message module step specifically comprise:
Upload file service module, according to the information of file to be uploaded, is searched corresponding file described to be uploaded;
Application software server to service end sends upload request, and obtains enciphered message, described file to be uploaded is carried out to segmentation, and encrypt the file described to be uploaded after segmentation;
By file transfer protocol (FTP) by the file transfer described to be uploaded of encrypting the Ftp server to service end, for described Ftp server, preserve described file to be uploaded.
4. the method that file is uploaded as claimed any one in claims 1 to 3, it is characterized in that, described, receive after the upper teletype command of file to be uploaded, upload interacting message module and upload file service module connects, before the information of described file to be uploaded being sent to the step of described upload file service module, also comprise step:
Client is passed through browser access service end, the request of loading listed files page, and interacting message module is uploaded in loading.
5. the device that file is uploaded, is characterized in that, comprises and uploads interacting message module and upload file service module, wherein:
The described interacting message module of uploading comprises:
Upload linkage unit, for receiving after the upper teletype command of file to be uploaded, connect with upload file service module, the information of described file to be uploaded is sent to described upload file service module;
Information commit unit, for the transmission result of described upload file service module feedback and the information of uploading of described file to be uploaded are committed to described service end, stores for service end;
Described upload file service module comprises:
Uploading unit, for sending upload request to service end, obtains enciphered message, encrypts described file to be uploaded and uploads, and transmission result feedback is uploaded to interacting message module described in extremely.
6. the device that file as claimed in claim 5 is uploaded, is characterized in that, described uploading unit specifically comprises:
Search subelement, for according to the information of file to be uploaded, search corresponding file described to be uploaded;
Enciphered message is obtained subelement, sends upload request, and obtain enciphered message for the application software server to service end;
Segmentation and encryption subelement, for described file to be uploaded is carried out to segmentation, and encrypt the file described to be uploaded after segmentation;
Upload subelement, for by file transfer protocol (FTP) by the file transfer described to be uploaded of encrypting the Ftp server to service end, for described Ftp server, preserve described file to be uploaded.
7. the method that file is downloaded, is characterized in that, comprises step:
Receive after the download instruction of file to be downloaded, download message interactive module and download file service module connect, and the information of described file to be downloaded is sent to described download file service module;
Download file service module sends download request to service end, downloads described file to be downloaded, and obtains decryption information, and the described file to be downloaded of downloading is decrypted;
Download file service module represents the described file to be downloaded after deciphering.
8. the method that file as claimed in claim 7 is downloaded, it is characterized in that, described download file service module sends download request to service end, downloads described file to be downloaded, and obtain decryption information, the step that the described file to be downloaded of downloading is decrypted specifically comprises:
Download file service module sends download request to the Ftp server of service end, downloads the fragment of described file to be downloaded;
From the application software server of service end, obtain the decryption information of described file to be downloaded, the fragment of the described file to be downloaded of downloading is decrypted, merge the fragment of described file to be downloaded.
9. the method that file is downloaded as claimed in claim 7 or 8, it is characterized in that, described, receive after the download instruction of file to be downloaded, download message interactive module and download file service module connect, before the information of described file to be downloaded being sent to the step of described download file service module, also comprise step:
Client is passed through browser access service end, the request of loading listed files page, and load download message interactive module.
10. the device that file is downloaded, is characterized in that, comprises download message interactive module and download file service module, wherein:
Described download message interactive module, for connecting with download file service module, is sent to described download file service module by the information of described file to be downloaded;
Described download file service module, for sending download request to service end, downloads described file to be downloaded, and obtains decryption information, and the described file to be downloaded of downloading is decrypted; Represent the described file to be downloaded after deciphering.
The device that 11. files as claimed in claim 10 are downloaded, is characterized in that, described download file service module specifically comprises:
Download unit, sends download request for the Ftp server to service end, downloads the fragment of described file to be downloaded;
Decryption information acquiring unit, for obtaining the decryption information of described file to be downloaded from the application software server of service end;
Deciphering and merge cells, for the fragment of the described file to be downloaded of downloading is decrypted, merge the fragment of described file to be downloaded.
CN201310731636.9A 2013-12-26 2013-12-26 Method and device for uploading and downloading file Pending CN103685557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310731636.9A CN103685557A (en) 2013-12-26 2013-12-26 Method and device for uploading and downloading file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310731636.9A CN103685557A (en) 2013-12-26 2013-12-26 Method and device for uploading and downloading file

Publications (1)

Publication Number Publication Date
CN103685557A true CN103685557A (en) 2014-03-26

Family

ID=50321831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310731636.9A Pending CN103685557A (en) 2013-12-26 2013-12-26 Method and device for uploading and downloading file

Country Status (1)

Country Link
CN (1) CN103685557A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217173A (en) * 2014-08-27 2014-12-17 武汉理工大学 Method of encrypting data and files for browser
CN104915607A (en) * 2015-04-28 2015-09-16 武汉理工大学 Password data processing and exchanging method based on mobile terminal
CN105868321A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 File management method and device
CN106506676A (en) * 2016-11-24 2017-03-15 武汉理工大学 Document transmission processing method and aid system
CN108040115A (en) * 2017-12-21 2018-05-15 北京华夏电通科技有限公司 Document transmission method and device
CN108737558A (en) * 2018-05-30 2018-11-02 安徽四创电子股份有限公司 A kind of general management platform of file based on OCX controls
CN108809960A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 A kind of file uploads and method for down loading, device, equipment, system and storage medium
CN109474606A (en) * 2018-12-04 2019-03-15 平安科技(深圳)有限公司 Document transmission method, device, computer equipment and storage medium
CN109639819A (en) * 2018-12-28 2019-04-16 腾讯科技(深圳)有限公司 Document transmission method, client, server and system
CN110401689A (en) * 2018-11-23 2019-11-01 腾讯科技(深圳)有限公司 File management method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010042124A1 (en) * 2000-03-27 2001-11-15 Barron Robert H. Web-based method, apparatus, and system for secure data storage
CN102394894A (en) * 2011-11-28 2012-03-28 武汉大学 Network virtual disk file safety management method based on cloud computing
CN102497395A (en) * 2011-11-30 2012-06-13 北京京航计算通讯研究所 Breakpoint unloading application control method
CN102710758A (en) * 2012-05-22 2012-10-03 苏州云博信息技术有限公司 Method for continuously transferring breakpoint of data stream based on single chip system
CN102710630A (en) * 2012-05-29 2012-10-03 新华网股份有限公司 Cloud upload and download method and system of multi-threaded slice
CN103024015A (en) * 2012-12-05 2013-04-03 新华网股份有限公司 Flex based cross-platform method for uploading files after message digest 5 (md5) value is checked at browser end

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010042124A1 (en) * 2000-03-27 2001-11-15 Barron Robert H. Web-based method, apparatus, and system for secure data storage
CN102394894A (en) * 2011-11-28 2012-03-28 武汉大学 Network virtual disk file safety management method based on cloud computing
CN102497395A (en) * 2011-11-30 2012-06-13 北京京航计算通讯研究所 Breakpoint unloading application control method
CN102710758A (en) * 2012-05-22 2012-10-03 苏州云博信息技术有限公司 Method for continuously transferring breakpoint of data stream based on single chip system
CN102710630A (en) * 2012-05-29 2012-10-03 新华网股份有限公司 Cloud upload and download method and system of multi-threaded slice
CN103024015A (en) * 2012-12-05 2013-04-03 新华网股份有限公司 Flex based cross-platform method for uploading files after message digest 5 (md5) value is checked at browser end

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨雷: "Flex在可视化数据挖掘流程中的应用研究", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *
王帅: "基于集中型WLAN无线网络拓扑管理系统的设计与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104217173B (en) * 2014-08-27 2018-04-17 武汉理工大学 A kind of data and file encrypting method for browser
CN104217173A (en) * 2014-08-27 2014-12-17 武汉理工大学 Method of encrypting data and files for browser
CN104915607A (en) * 2015-04-28 2015-09-16 武汉理工大学 Password data processing and exchanging method based on mobile terminal
CN104915607B (en) * 2015-04-28 2018-02-09 武汉理工大学 A kind of code data processing and exchange method based on mobile terminal
CN105868321A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 File management method and device
CN106506676B (en) * 2016-11-24 2019-05-24 武汉理工大学 Document transmission processing method and auxiliary system
CN106506676A (en) * 2016-11-24 2017-03-15 武汉理工大学 Document transmission processing method and aid system
CN108040115A (en) * 2017-12-21 2018-05-15 北京华夏电通科技有限公司 Document transmission method and device
CN108040115B (en) * 2017-12-21 2021-03-02 北京华夏电通科技股份有限公司 File transmission method and device
CN108809960A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 A kind of file uploads and method for down loading, device, equipment, system and storage medium
CN108737558A (en) * 2018-05-30 2018-11-02 安徽四创电子股份有限公司 A kind of general management platform of file based on OCX controls
CN110401689A (en) * 2018-11-23 2019-11-01 腾讯科技(深圳)有限公司 File management method, device and storage medium
CN110401689B (en) * 2018-11-23 2021-12-10 腾讯科技(深圳)有限公司 File management method, device and storage medium
CN109474606A (en) * 2018-12-04 2019-03-15 平安科技(深圳)有限公司 Document transmission method, device, computer equipment and storage medium
CN109474606B (en) * 2018-12-04 2022-12-30 平安科技(深圳)有限公司 File transmission method and device, computer equipment and storage medium
CN109639819A (en) * 2018-12-28 2019-04-16 腾讯科技(深圳)有限公司 Document transmission method, client, server and system

Similar Documents

Publication Publication Date Title
CN103685557A (en) Method and device for uploading and downloading file
CN102891889B (en) A kind of information sharing method and device
US8179818B2 (en) Proxy terminal, server apparatus, proxy terminal communication path setting method, and server apparatus communication path setting method
US20180351734A1 (en) Cloud storage method and system
US10084888B2 (en) Method and apparatus for accelerating web service with proxy server
CN102833253A (en) Method and server for establishing safe connection between client and server
CN104602238A (en) Wireless network connecting method, device and system
CN103036872B (en) The encryption and decryption method of transfer of data, equipment and system
RU2020121403A (en) METHOD AND DEVICE FOR INSTALLING A GROUP OF USERS
CN104270470A (en) Remote service invocation method, device and system
CN102571790B (en) A kind of method and apparatus of the encrypted transmission for realize target file
CN105337935A (en) Method of establishing long connection of client and server and apparatus thereof
CN103118022B (en) A kind of without password heterodoxy Sign-On authentication method
JP2018064268A (en) Secure communication method and system
CN104967590A (en) Method, apparatus and system for transmitting communication message
CN103327034A (en) Safe login method, system and device
CN104378379A (en) Encryption transmission method, equipment and system for digital content
CN104811364A (en) Message pushing method, message pushing system, message proxy server and terminal equipment
CN105354505A (en) Image adaption method and electronic device
EP3242444A1 (en) Service processing method and device
CN103856938A (en) Encryption and decryption method, system and device
KR102121399B1 (en) Local information acquisition method, apparatus and system
KR101412698B1 (en) System for certificate distribution using relay server, method of certificate distribution, and apparatus for the same
CN102843335B (en) The processing method of streaming medium content and equipment
CN110768928A (en) Communication method and communication device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326