CN103024015A - Flex based cross-platform method for uploading files after message digest 5 (md5) value is checked at browser end - Google Patents
Flex based cross-platform method for uploading files after message digest 5 (md5) value is checked at browser end Download PDFInfo
- Publication number
- CN103024015A CN103024015A CN2012105128394A CN201210512839A CN103024015A CN 103024015 A CN103024015 A CN 103024015A CN 2012105128394 A CN2012105128394 A CN 2012105128394A CN 201210512839 A CN201210512839 A CN 201210512839A CN 103024015 A CN103024015 A CN 103024015A
- Authority
- CN
- China
- Prior art keywords
- value
- files
- browser
- flex
- checked
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000005516 engineering process Methods 0.000 claims abstract description 10
- 238000012795 verification Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 abstract description 4
- 230000007547 defect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 5
- 238000004321 preservation Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000003556 assay Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000000205 computational method Methods 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000002360 explosive Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a cross-platform method for uploading files after a message digest 5 (md5) value is checked by a browser. By means of the method, before a user uploads local files, the calculating of the md5 value of the files by a Flash embedded into a webpage is facilitated, and a mode that a Flex calls a C++ library function to calculate the md5 value is combined so as to achieve high speed calculation of the md5 value. The Flash is a cross-platform browser plug-in unit, so that the md5 value of the files can be calculated at a browser end in operating systems of windows, mac, linux and the like, and defects that the efficiency is low, the resources are wasted, traditional methods depend on the operating systems, the generality is absent, and the like in terms of the traditional methods that the md5 value can be started to be calculated at a server end only when the files are completely uploaded to the server are overcome. A Flex technology is utilized, the browser calculates the md5 value of the files before the files are uploaded, the md5 value is checked at the server end, and whether same files exist or not is judged. By means of the method, duplicated files are prevented from being uploaded, the flow is saved, the pressure of a server is reduced, the resources are reasonably utilized, and the file upload efficiency is greatly improved.
Description
Technical field:
After the present invention relates to a kind of cross-platform browser end based on Flex and carrying out file md5 verification, verify in conjunction with server end, carry out the method for File Upload, also relate to the technology of Flex technology, C/C++ technology and Java client and server end simultaneously, belong to software technology field.
Background technology:
Along with the raising of network speed and the fast development of the Internet, Flex possesses powerful interactive function as the rich internet client application technology of a new generation, and its application is more and more extensive.Flash is as a cross-platform browser plug-in, so that the Flex technology can be applied in the multiple web component application exploitation.
Along with the internet data explosive growth, the Data duplication phenomenon is obvious, and bandwidth, traffic demand are increasing, and the user experiences the key factor that also more and more becomes the internet industry development.The local computing of file md5 value can be saved the pressure that flow that the user uploads and server termination are subjected to data, can greatly shorten the stand-by period of File Upload.
But because Flex self design, the efficient of carrying out after the md5 algorithm is realized based on primary API is very low, also takies a large amount of system resource.In addition, that the virtual machine of Flash adopts in the past is AVM2, has also caused aspect the calculating of large file efficient very low.So all there is not at present the function of local computing file md5 value based on the transmitting assembly of Flex.
The present invention carried out the md5 value to it and calculates, and used the LLIV technology of Adobe Labs in conjunction with the Flex Rich Client Technology before local file is uploaded, realized that Flex calls the C/C++ function library and calculates the md5 value, had greatly promoted computational efficiency.This mode has remedied the defective that the ActiveX control that only limits to Windows operating system calculates the md5 mode, has realized that the cross-platform client on the operating systems such as Windows, Mac, Linux is calculated and efficient upload file.
Summary of the invention:
Primary technical problem to be solved by this invention provides a kind of method of the cross-platform browser verification md5 value upload file based on Flex.
Its technical scheme is as follows:
When using web cloud dish to select upload file with product, Flash reads the upload file of user selection, and the corresponding calculating of carrying out file md5 value.
What the present invention adopted is the LLIV virtual machine of Flash, C/C++ is compiled among the SWC of Flash, can realize calling C/C++ built-in function calculation document md5 value, realized the same speed of calculating with ActiveX control, add cross-platform advantage, make web cloud dish realize that ideally browser client calculates the mode of md5 value.
This method has increased fault-tolerant processing, when client is calculated abnormal, carries out the retry of certain number of times, unusually then directly enters brand-new upload logic if finally still calculate, and guarantees that the user finishes uploading of file smoothly.
Utilize File Upload function of the present invention, can greatly improve the efficient of multiple document uploading, solved cross-platform problem, effectively utilized the network bandwidth, reduced the stand-by period that the user uploads.
Description of drawings:
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, does not consist of limitation of the invention.In the accompanying drawings: Fig. 1 is that schematic flow sheet is uploaded in file md5 verification.
Embodiment:
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing implementation of the present invention is elaborated.At this, signal of the present invention is implemented and explanation is used for explaining the present invention, but not as a limitation of the invention.
Be divided into client on the overall system, detailed process such as accompanying drawing that application server two large divisions, its File md5 calculate and upload are shown in Figure 1.
When uploading, client is carried out respectively the inspection of home environment, and automatically determine the md5 computational methods, be divided into and be written into once that internal memory calculates and two kinds of segmentation parallel computations, the result who obtains cooperates Cloud Server to carry out the checking of authority and the existence verification of md5, finally determines the method that client file is uploaded, behind the client submission form, Cloud Server is saved in cloud storage and database with the data that obtain through Business Processing, and returns to client process result's message.Client is resolved message, provides friendly prompting, finishes upload procedure.
Concrete implementation procedure is described as follows:
1, selects local file, by the size of Flex in the client calculation document.
2, obtain file size after, calculate the residue free memory of current Flash client virtual machine, and judge whether to reach the threshold values of local computing method.
3, when file size does not reach threshold values, the speed of calculating for improving is written into internal memory and calculates the md5 value file is disposable.
4, when file size surpasses threshold values, according to user's local machine information, the dynamic setting buffer size, beginning is based on the calculating of document flow.
5, the multithreading that utilizes Flex is to each interval parallel calculating of file, and the continuous result of joint account, finally obtains the md5 value of file.If middle abnormal, then retry is final also unusual, then returns specific failure code.
6, calculate the md5 process and finish after, client is carried the information such as the result of calculating and User Status, initiates the purview certification request, after the cloud service termination is asked, the legitimacy of inspection user, and backtrack test result.When assay when being illegal, the Flash client provides the prompting of insufficient permission, and finishes this and upload according to the result who returns.
7, when assay when being legal, if calculated the md5 value, then the Flash client is initiated the md5 check request.After the cloud service termination was received request, whether Query Result existed from file md5 storehouse, and provided the result of verification.When check results does not exist, begin brand-new uploading, assembling form data and document stream.
8, when check results exists, show that then there is a copy of this document in the cloud service end, need not be again upload file stream again, enter quick second transmission method, and the assembling form data.
9, after data are ready, initiate the request upload, the cloud service termination is received other data of md5 parameter and submission, the again checking of at first carrying out md5 and uploading token is obtained data to prevent malice, by after inquire the cloud storage id of file.There are the data that then receive list, prepare the preservation operation of data.
10, when finding that cloud storage id does not exist, the cloud service end judges whether document flow exists, and if there is no, then returns failure information, finishes this and uploads.
11, when document flow exists, the cloud service termination is received list and document flow data, after question paper is written to the cloud storage, prepares the preservation operation of data.
12, carry out at last the preservation of data, and upgrade the md5 storehouse.
13, after operating successfully, return success message, after client arrives, resolve message, provide and upload successful prompting.Finished whole File Upload process.
Claims (3)
1. the method that verification md5 uploads is based on the Flex technology, and its calculating is finished in the Flash client.
2. adopted the mode in conjunction with C++, the streaming md5 calculating that C++ is compiled is bundled among the SWC, and by the Flex code call.
3. the method is finally used with the form of Flash transmitting assembly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210512839.4A CN103024015B (en) | 2012-12-05 | 2012-12-05 | A kind of based on the method for transmitting file in the cross-platform browser end verification md5 value of Flex |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210512839.4A CN103024015B (en) | 2012-12-05 | 2012-12-05 | A kind of based on the method for transmitting file in the cross-platform browser end verification md5 value of Flex |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103024015A true CN103024015A (en) | 2013-04-03 |
CN103024015B CN103024015B (en) | 2016-07-13 |
Family
ID=47972139
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210512839.4A Expired - Fee Related CN103024015B (en) | 2012-12-05 | 2012-12-05 | A kind of based on the method for transmitting file in the cross-platform browser end verification md5 value of Flex |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103024015B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685557A (en) * | 2013-12-26 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and device for uploading and downloading file |
CN103795809A (en) * | 2014-03-03 | 2014-05-14 | 深圳市华曦达科技股份有限公司 | File uploading method and system |
CN103955544A (en) * | 2014-05-21 | 2014-07-30 | 北京奇艺世纪科技有限公司 | File uploading method and file uploading system |
CN104280679A (en) * | 2013-07-12 | 2015-01-14 | 上海精密计量测试研究所 | High speed operation amplifier test circuit based on FLEX |
CN107172112A (en) * | 2016-03-07 | 2017-09-15 | 阿里巴巴集团控股有限公司 | A kind of computer documents transmission method and device |
CN108259585A (en) * | 2018-01-05 | 2018-07-06 | 携程旅游信息技术(上海)有限公司 | Call center's recording cloud storage method, system, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030120605A1 (en) * | 2001-12-20 | 2003-06-26 | Fontana Joseph M. | System and method for preventing unauthorized use of protected software utilizing a portable security device |
US6856991B1 (en) * | 2002-03-19 | 2005-02-15 | Cisco Technology, Inc. | Method and apparatus for routing data to a load balanced server using MPLS packet labels |
CN101826219A (en) * | 2010-05-05 | 2010-09-08 | 南京熊猫信息产业有限公司 | Rail transportation ticket-card processing intelligent system and data encryption auditing method |
CN102710630A (en) * | 2012-05-29 | 2012-10-03 | 新华网股份有限公司 | Cloud upload and download method and system of multi-threaded slice |
-
2012
- 2012-12-05 CN CN201210512839.4A patent/CN103024015B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030120605A1 (en) * | 2001-12-20 | 2003-06-26 | Fontana Joseph M. | System and method for preventing unauthorized use of protected software utilizing a portable security device |
US6856991B1 (en) * | 2002-03-19 | 2005-02-15 | Cisco Technology, Inc. | Method and apparatus for routing data to a load balanced server using MPLS packet labels |
CN101826219A (en) * | 2010-05-05 | 2010-09-08 | 南京熊猫信息产业有限公司 | Rail transportation ticket-card processing intelligent system and data encryption auditing method |
CN102710630A (en) * | 2012-05-29 | 2012-10-03 | 新华网股份有限公司 | Cloud upload and download method and system of multi-threaded slice |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104280679A (en) * | 2013-07-12 | 2015-01-14 | 上海精密计量测试研究所 | High speed operation amplifier test circuit based on FLEX |
CN104280679B (en) * | 2013-07-12 | 2018-08-24 | 上海精密计量测试研究所 | High speed operation amplifier test circuit based on FLEX |
CN103685557A (en) * | 2013-12-26 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and device for uploading and downloading file |
CN103795809A (en) * | 2014-03-03 | 2014-05-14 | 深圳市华曦达科技股份有限公司 | File uploading method and system |
CN103955544A (en) * | 2014-05-21 | 2014-07-30 | 北京奇艺世纪科技有限公司 | File uploading method and file uploading system |
CN107172112A (en) * | 2016-03-07 | 2017-09-15 | 阿里巴巴集团控股有限公司 | A kind of computer documents transmission method and device |
CN107172112B (en) * | 2016-03-07 | 2020-10-02 | 阿里巴巴集团控股有限公司 | Computer file transmission method and device |
CN108259585A (en) * | 2018-01-05 | 2018-07-06 | 携程旅游信息技术(上海)有限公司 | Call center's recording cloud storage method, system, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103024015B (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103024015A (en) | Flex based cross-platform method for uploading files after message digest 5 (md5) value is checked at browser end | |
CN109257427B (en) | Service processing method and system based on block chain | |
CN111163182B (en) | Block chain-based device registration method and apparatus, electronic device, and storage medium | |
CN109981279B (en) | Block chain system, communication method, device, equipment and medium | |
CN102222042B (en) | Automatic software testing method based on cloud computing | |
CN110995513B (en) | Data sending and receiving method in Internet of things system, internet of things equipment and platform | |
CN105072133A (en) | Login method and device for application program | |
CN105069152B (en) | data processing method and device | |
CN103986738A (en) | Inter-multi-terminal synchronization method and system | |
CN109586949B (en) | Block generation method and computer storage medium | |
CN112738294B (en) | Domain name resolution method and device based on block chain, electronic equipment and storage medium | |
CN112202647B (en) | Test method, device and test equipment in block chain network | |
CN113904847B (en) | Cloud platform binding method, system, equipment and medium of Internet of things card | |
CN107688512A (en) | One kind optimization virtual-machine data backup method and system | |
CN111507714A (en) | Verification method, verification device, server and storage medium | |
CN110222535A (en) | Processing unit, method and the storage medium of block chain configuration file | |
CN105740435A (en) | On-line preview design method of document on the basis of distribution | |
CN111026711A (en) | Block chain based data storage method and device, computer equipment and storage medium | |
CN108200157B (en) | Log synchronization method and device for triggering rollback by master node | |
US10853892B2 (en) | Social networking relationships processing method, system, and storage medium | |
JP5961471B2 (en) | Output comparison method in multiple information systems | |
CN116955355A (en) | Block data processing method and device and electronic equipment | |
CN113630445B (en) | Data storage method and device based on block chain network | |
CN112395012B (en) | Data emptying method and device based on double-core intelligent ammeter and computer equipment | |
CN114331092A (en) | Equipment shadow, remote scheduling management method, device and system for engineering mechanical equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
DD01 | Delivery of document by public notice |
Addressee: Ji Lianchun Document name: Notification of Passing Examination on Formalities |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160713 |
|
CF01 | Termination of patent right due to non-payment of annual fee |