CN109408650A - Electronic photo batch uploads asynchronous process platform and method - Google Patents

Electronic photo batch uploads asynchronous process platform and method Download PDF

Info

Publication number
CN109408650A
CN109408650A CN201811215795.2A CN201811215795A CN109408650A CN 109408650 A CN109408650 A CN 109408650A CN 201811215795 A CN201811215795 A CN 201811215795A CN 109408650 A CN109408650 A CN 109408650A
Authority
CN
China
Prior art keywords
photo
student
electronic
electronic photo
uploads
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
CN201811215795.2A
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.)
Hongcheng Science And Technology Development Co Ltd
Original Assignee
Hongcheng Science And Technology Development 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 Hongcheng Science And Technology Development Co Ltd filed Critical Hongcheng Science And Technology Development Co Ltd
Priority to CN201811215795.2A priority Critical patent/CN109408650A/en
Publication of CN109408650A publication Critical patent/CN109408650A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Asynchronous process platform is uploaded the invention discloses a kind of electronic photo batch and method, the platform include: electronic photo configuration module: being configured for the parameter configuration to photo;Electronic photo uploading module: it for verifying the format of electronic photo, and uploads onto the server after a successful authentication, while decompressing photo to temporary folder;Electronic photo matching module: for matching student's basic data with the naming rule of photo, successful match then by photo upload to file server and updates student's photo path.The present invention optimizes the upload process of photo in such a way that asynchronous upload is handled, and matching verification is optimized in asynchronous process, corresponding student information is searched according to naming rule in advance and is remained in map dictionary, matching student is carried out using map set, improves the efficiency of processing.

Description

Electronic photo batch uploads asynchronous process platform and method
Technical field
The present invention relates to computer processing technical fields, and in particular to a kind of electronic photo batch upload asynchronous process platform And method.
Background technique
In the practical business of educational system, the scenes such as annual new life admission, student's graduation, conferment of degree can all have largely Student's electronic photo need to upload in system, although every student's photo has limited size and size, and by photo Summarize the file upload for being packaged into ZIP, but the packaging file size of thousands of up to ten thousand electronic photos is still very considerable, reaches 50M or more.
When electronic photo uploads in original system, the file after packing is first passed through into page uploading into system, file uploads After the completion, call decompression program decompressing files into temporary folder;Then file in program scanning temporary folder, according to matching The photo naming rule matching verification file name set, and modified and learned according to the certificate number provided in file name or examinee number Raw corresponding electronic photo information.
Time-consuming for this treatment process, low efficiency, and due to directly being handled in current page, prolonged page card , also affect the normal use of user.
It is the function of reducing teacher workload that electronic photo batch, which uploads, for carrying out large batch of photo upload and place Reason, the demand of teacher are relatively high.Original implementation is limited to the influence of hardware environment and execution efficiency, and time-consuming, and meeting That there is a situation where the pages is stuck, loses response, and simple HardwareUpgring can not solve the problems, such as this.
Summary of the invention
The purpose of the present invention is to provide a kind of electronic photo batches to upload asynchronous process platform and method, solves original Implementation is limited to the influence of hardware environment and execution efficiency, and time-consuming, and can occur that the page is stuck, loses asking for response Topic.
In order to solve the above technical problems, the invention adopts the following technical scheme:
A kind of electronic photo batch upload asynchronous process platform, the platform include:
Electronic photo configuration module: it is configured for the parameter configuration to photo;
Electronic photo uploading module: it for verifying the format of electronic photo, and after a successful authentication uploads onto the server, together When decompression photo to temporary folder;
Electronic photo matching module: for matching student's basic data with the naming rule of photo, successful match then will Photo upload is to file server and updates student's photo path.
Preferably, the photo parameter configuration includes photo size, height, width, format and naming rule.
Preferably, the naming rule is using the name of student or student number as the file name of photo.
A kind of electronic photo batch upload asynchronous processing method, comprising the following steps:
S1: electronic photo configuration module is configured the parameter configuration of photo;
S2: electronic photo uploading module verifies the format of electronic photo, and after a successful authentication uploads onto the server, simultaneously Photo is decompressed to temporary folder;
S3: electronic photo matching module matches student's basic data with the naming rule of photo, and successful match will then shine Piece uploads to file server and updates student's photo path.
Preferably, the photo parameter configuration includes photo size, height, width, format and naming rule, wherein ordering Name rule is using the name of student or student number as the file name of photo.
Preferably, in the S2 step by electronic photo upload onto the server using asynchronous upload handle form, when File sends a message to activeMq after uploading successfully, after background service monitoring receives the successful message of upload, parsing is obtained Upload document location and in the server decompressing files to temporary folder.
Preferably, in the S3 step electronic photo matching module by student's basic data and the naming rule of photo into The matched specific method of row is that electronic photo matching module reads student's basic data and is saved in map dictionary, reads definition Photo rule, photo and student's basic information are carried out according to the dictionary content of student's basic data and photo naming rule Whether the file matched, and verify importing meets rule, and successful match then by photo upload to file server and updates student's photograph Piece path, it fails to match then records unsuccessfully log.
Compared with prior art, the beneficial effects of the present invention are:
The present invention optimizes the upload process of photo in such a way that asynchronous upload is handled, and optimizes in asynchronous process Matching verification, corresponding student information searched and remain to according to naming rule in advance in map dictionary, using map gather into Row matching student, improves the efficiency of processing.
On the other hand, the present invention is by the way of asynchronous upload processing, and operator can be into during file uploads Other vocational works of row wait background message processing to go to know processing result after the completion, when improving use in this way Interactive experience, and not will lead to the prolonged Caton of the page and waiting, treatment effeciency is high.
Detailed description of the invention
Fig. 1 is flow chart of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
For one embodiment of platform of the invention, a kind of electronic photo batch upload asynchronous process platform is described flat Platform includes:
Electronic photo configuration module: it is configured for the parameter configuration to photo;
Electronic photo uploading module: it for verifying the format of electronic photo, and after a successful authentication uploads onto the server, together When decompression photo to temporary folder;
Electronic photo matching module: for matching student's basic data with the naming rule of photo, successful match then will Photo upload is to file server and updates student's photo path.
Platform in the present embodiment passes through parameter needed for electronic photo configuration module has configured electronic photo first, such as Photo size, height, width, format and naming rule etc., upload when teacher the page selection compressed file upload, File type is verified in upload procedure, if file type mismatches can prompt information, such as prompt information " can only upload ZIP Compressed file!", file size can be also verified, for example following information can be prompted " to go up transmitting file no more than if size is not met 50M " provides upload progress when page uploading and speed show, and file is sent a message to after the completion of uploading after the completion of file upload Send a message to activeMq, carry out asynchronous process, and page prompts teacher " in file asynchronous process, later can be down to disappearing Processing result is checked at breath center." after the completion of upload, background service monitoring message queue receives the new upload in message queue After message, parsing obtains uploading document location and other page parameters.Decompressing files to temporary folder, reading faces in service When file in file name list.It reads student's basic data and is saved in map dictionary, read the photo rule of definition, According to the dictionary content of student's basic data and photo naming rule matching files title and student's basic information, importing is verified Whether file meets rule, and is student's photo present in system, verifies whether student can upload if being matched to student Within the scope of photo, if having existed the photo of upload, do not meet prompt corresponding information such as and (example: " do not uploading range It is interior!").Successful match picture uploads to file server and updates student's photo path, record failure log that it fails to match.
Further, for another embodiment of platform of the invention, in order to standardize photo more, therefore can pass through Management platform presets the parameter of photo, and for the photo form that subsequent authentication uploads, the photo parameter configuration includes shining Piece size, height, width, format and naming rule.
Further, for another embodiment of platform of the invention, the naming rule be by the name of student or File name of the student number as photo.By the name or student number (examinee number) of the name setting student of photo, convenient for by student's Basic information is matched with corresponding photo.
For one embodiment of method of the invention, as shown in Figure 1, a kind of electronic photo batch uploads asynchronous process side Method, comprising the following steps:
S1: electronic photo configuration module is configured the parameter configuration of photo;
S2: electronic photo uploading module verifies the format of electronic photo, and after a successful authentication uploads onto the server, simultaneously Photo is decompressed to temporary folder;
S3: electronic photo matching module matches student's basic data with the naming rule of photo, and successful match will then shine Piece uploads to file server and updates student's photo path.
Further, the photo parameter configuration includes photo size, height, width, format and naming rule, wherein ordering Name rule is using the name of student or student number as the file name of photo.
Further, in the S2 step by electronic photo upload onto the server using asynchronous upload handle form, when File sends a message to activeMq after uploading successfully, after background service monitoring receives the successful message of upload, parsing is obtained Upload document location and in the server decompressing files to temporary folder.
Further, in the S3 step electronic photo matching module by student's basic data and the naming rule of photo into The matched specific method of row is that electronic photo matching module reads student's basic data and is saved in map dictionary, reads definition Photo rule, photo and student's basic information are carried out according to the dictionary content of student's basic data and photo naming rule Whether the file matched, and verify importing meets rule, and successful match then by photo upload to file server and updates student's photograph Piece path, it fails to match then records unsuccessfully log.
Parameter needed for having configured electronic photo by electronic photo configuration module first in this method, such as photo are big Small, height, width, format and naming rule etc., upload when teacher the page selection compressed file upload, on be transmitted through File type is verified in journey, if file type mismatch if can prompt information, such as prompt information " can only upload ZIP compression text Part!", file size can be also verified, if size, which is not met, can prompt for example following information " upper transmitting file is no more than 50M ", Upload progress is provided when page uploading and speed is shown, file, which sends a message to after the completion of file uploads to send after the completion of uploading, to disappear Cease activeMq, carry out asynchronous process, and page prompts teacher " in file asynchronous process, later can be down to message center Check processing result." after the completion of upload, background service monitoring message queue, after receiving the new upload message in message queue, Parsing obtains uploading document location and other page parameters.Decompressing files reads temporary file to temporary folder in service File name list in folder.Electronic photo matching module reads student's basic data and is saved in map dictionary, reads definition Photo rule, according to the dictionary content of student's basic data and photo naming rule matching files title and student's basic information, Whether the file that verifying imports meets rule, and is student's photo present in system, and verifying student if being matched to student is It is no can be within the scope of upload pictures, if having existed the photo of upload, do not meet prompt corresponding information (example: " not upper such as It passes in range!").
" one embodiment ", " another embodiment ", " embodiment ", " preferred implementation spoken of in the present specification Example " etc., referring to combining specific features, structure or the feature of embodiment description includes describing extremely in the application generality In few one embodiment.It is not centainly to refer to the same embodiment that statement of the same race, which occur, in multiple places in the description.Into one For step, when describing a specific features, structure or feature in conjunction with any embodiment, what is advocated is to combine other implementations Example realizes that this feature, structure or feature are also fallen within the scope of the present invention.
Although reference be made herein to invention has been described for multiple explanatory embodiments of the invention, however, it is to be understood that Those skilled in the art can be designed that a lot of other modification and implementations, these modifications and implementations will fall in this Shen It please be within disclosed scope and spirit.More specifically, disclose in the application, drawings and claims in the range of, can With the building block and/or a variety of variations and modifications of layout progress to theme combination layout.In addition to building block and/or layout Outside the modification and improvement of progress, to those skilled in the art, other purposes also be will be apparent.

Claims (7)

1. a kind of electronic photo batch uploads asynchronous process platform, it is characterised in that: the platform includes:
Electronic photo configuration module: it is configured for the parameter configuration to photo;
Electronic photo uploading module: it for verifying the format of electronic photo, and after a successful authentication uploads onto the server, together When decompression photo to temporary folder;
Electronic photo matching module: for matching student's basic data with the naming rule of photo, successful match then will Photo upload is to file server and updates student's photo path.
2. electronic photo batch according to claim 1 uploads asynchronous process platform, it is characterised in that: the photo parameter Configuration includes photo size, height, width, format and naming rule.
3. electronic photo batch according to claim 2 uploads asynchronous process platform, it is characterised in that: the naming rule For using the name of student or student number as the file name of photo.
4. a kind of electronic photo batch uploads asynchronous processing method, it is characterised in that: the following steps are included:
S1: electronic photo configuration module is configured the parameter configuration of photo;
S2: electronic photo uploading module verifies the format of electronic photo, and after a successful authentication uploads onto the server, simultaneously Photo is decompressed to temporary folder;
S3: electronic photo matching module matches student's basic data with the naming rule of photo, and successful match will then shine Piece uploads to file server and updates student's photo path.
5. electronic photo batch according to claim 4 uploads asynchronous processing method, it is characterised in that: the photo parameter Configuration includes photo size, height, width, format and naming rule, and wherein naming rule is to make the name of student or student number For the file name of photo.
6. electronic photo batch according to claim 5 uploads asynchronous process platform, it is characterised in that: in the S2 step By electronic photo upload onto the server using asynchronous upload handle form, sent a message to after file uploads successfully ActiveMq, background service monitoring receives upload successful message after, parsing obtains uploading document location and in the server Decompressing files is to temporary folder.
7. electronic photo batch according to claim 6 uploads asynchronous process platform, it is characterised in that: in the S3 step It is electronic photo that student's basic data and the naming rule of photo are carried out matched specific method by electronic photo matching module Student's basic data is read with module and is saved in map dictionary, the photo rule of definition is read, according to student's basic data Dictionary content and photo naming rule match photo with student's basic information, and whether the file for verifying importing meets rule Then, successful match then by photo upload to file server and updates student's photo path, and it fails to match then records unsuccessfully log.
CN201811215795.2A 2018-10-18 2018-10-18 Electronic photo batch uploads asynchronous process platform and method Pending CN109408650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811215795.2A CN109408650A (en) 2018-10-18 2018-10-18 Electronic photo batch uploads asynchronous process platform and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811215795.2A CN109408650A (en) 2018-10-18 2018-10-18 Electronic photo batch uploads asynchronous process platform and method

Publications (1)

Publication Number Publication Date
CN109408650A true CN109408650A (en) 2019-03-01

Family

ID=65467615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811215795.2A Pending CN109408650A (en) 2018-10-18 2018-10-18 Electronic photo batch uploads asynchronous process platform and method

Country Status (1)

Country Link
CN (1) CN109408650A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615885A (en) * 2020-12-29 2021-04-06 格美安(北京)信息技术有限公司 Cross-border transmission method based on directory dynamic control and storage device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622344A (en) * 2011-01-09 2012-08-01 华东师范大学 Control method and control system for picture batch uploading facing to Mediawiki
CN102685072A (en) * 2011-03-11 2012-09-19 腾讯科技(深圳)有限公司 Picture uploading method and terminal equipment
CN103002133A (en) * 2012-11-20 2013-03-27 广东欧珀移动通信有限公司 Mobile phone and method for setting contact photos in batch mode thereof
CN104423786A (en) * 2013-09-07 2015-03-18 镇江雅迅软件有限责任公司 Implementation method for asynchronously uploading multiple pictures based on Ajax (Asynchronous Java Scrip and XML) technology
CN106168874A (en) * 2016-07-07 2016-11-30 深圳艾派网络科技股份有限公司 A kind of multimedia message editing method based on webpage and device
CN106325878A (en) * 2016-08-30 2017-01-11 贵阳朗玛信息技术股份有限公司 Picture mass uploading or downloading progress display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622344A (en) * 2011-01-09 2012-08-01 华东师范大学 Control method and control system for picture batch uploading facing to Mediawiki
CN102685072A (en) * 2011-03-11 2012-09-19 腾讯科技(深圳)有限公司 Picture uploading method and terminal equipment
CN103002133A (en) * 2012-11-20 2013-03-27 广东欧珀移动通信有限公司 Mobile phone and method for setting contact photos in batch mode thereof
CN104423786A (en) * 2013-09-07 2015-03-18 镇江雅迅软件有限责任公司 Implementation method for asynchronously uploading multiple pictures based on Ajax (Asynchronous Java Scrip and XML) technology
CN106168874A (en) * 2016-07-07 2016-11-30 深圳艾派网络科技股份有限公司 A kind of multimedia message editing method based on webpage and device
CN106325878A (en) * 2016-08-30 2017-01-11 贵阳朗玛信息技术股份有限公司 Picture mass uploading or downloading progress display method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄正果: "《"数字校园"建设方案》", 30 April 2015, 重庆大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615885A (en) * 2020-12-29 2021-04-06 格美安(北京)信息技术有限公司 Cross-border transmission method based on directory dynamic control and storage device
CN112615885B (en) * 2020-12-29 2023-04-18 格美安(北京)信息技术有限公司 Cross-border transmission method based on directory dynamic control and storage device

Similar Documents

Publication Publication Date Title
CN107766940B (en) Method and apparatus for generating a model
CA2930415C (en) Document management and collaboration system
CN107133578B (en) Facial expression recognition method and system based on file transmission
JP2018530079A (en) Apparatus and method for video analysis techniques for identifying individuals in face recognition and contextual video streams
US20110238859A1 (en) Information processing apparatus and document data producing method
US8990638B1 (en) Self-stabilizing network nodes in mobile discovery system
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN111931188B (en) Vulnerability testing method and system in login scene
CN110738323B (en) Method and device for establishing machine learning model based on data sharing
CN110211121B (en) Method and device for pushing model
CN110399306B (en) Automatic testing method and device for software module
WO2019095667A1 (en) Database data collection method, application server, and computer readable storage medium
CN106055575A (en) Method and device for optimized loading of website page
CN112631884A (en) Pressure measurement method and device based on data synchronization, computer equipment and storage medium
CN109408650A (en) Electronic photo batch uploads asynchronous process platform and method
CN108509396A (en) Pdf document turns method, electronic device and the computer readable storage medium of picture
CN112541150A (en) Job submitting method, job processing method and electronic equipment
CN111047657A (en) Picture compression method, device, medium and electronic equipment
CN111062374A (en) Identification method, device, system, equipment and readable medium of identity card information
CN110728593A (en) Case planning method and device, electronic device, and storage medium
CN114896161A (en) File construction method and device based on artificial intelligence, computer equipment and medium
US20200186675A1 (en) System and method for determining compression rates for images comprising text
CN112669000A (en) Government affair item processing method and device, electronic equipment and storage medium
CN114443290A (en) Resource data processing method and device, storage medium and electronic equipment
CN112668298A (en) Questionnaire recording method, system, equipment and storage medium based on mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20190301