CN110247949A - Lossless photo uploading method and system - Google Patents

Lossless photo uploading method and system Download PDF

Info

Publication number
CN110247949A
CN110247949A CN201910344788.0A CN201910344788A CN110247949A CN 110247949 A CN110247949 A CN 110247949A CN 201910344788 A CN201910344788 A CN 201910344788A CN 110247949 A CN110247949 A CN 110247949A
Authority
CN
China
Prior art keywords
upload
photo
queue
uploading
module
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
Application number
CN201910344788.0A
Other languages
Chinese (zh)
Other versions
CN110247949B (en
Inventor
万传兴
段立斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xianmeng Photography Co ltd
Original Assignee
Guangdong Hucai Image 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 Guangdong Hucai Image Co ltd filed Critical Guangdong Hucai Image Co ltd
Priority to CN201910344788.0A priority Critical patent/CN110247949B/en
Publication of CN110247949A publication Critical patent/CN110247949A/en
Application granted granted Critical
Publication of CN110247949B publication Critical patent/CN110247949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention relates to the technical field of photo uploading, in particular to a lossless photo uploading method.A photo uploading module is adopted to directly upload a photo to a cloud server, so that the definition of the photo is greatly reserved; if the uploading fails, returning the uploading failure result to the photo uploading module, and if the uploading is completed, returning the uploading success result to the photo uploading module for definitely knowing whether the photo is uploaded successfully or not through the photo uploading module; according to the lossless photo uploading system, the photo can be directly uploaded to the cloud server through the uploading module, and the definition of the photo is greatly reserved.

Description

A kind of lossless photo upload method and its system
Technical field
The present invention relates to photo upload technical field, a kind of lossless photo upload method and its system are referred in particular to.
Background technique
Universal with smart phone and camera, present cellie and camera user is bat at any time According to photo can be sent to cloud by also some industries such as photog sparetime university part photographer, but be sent to server Photo can be compressed in the process, and causing photo to will appear pixel and high definition reduces, but for some industries and its pursues photograph The high definition of piece, such as wedding gauze kerchief, photographic match industry, therefore need a kind of to keep the method for uploading of photo high definition and be System.
Summary of the invention
The present invention provides a kind of method and system that lossless upload can be carried out to photo for problem of the prior art.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme:
A kind of lossless photo upload method provided by the invention, including
Step 1: photo upload module receives user and requests to upload, and will upload file data and be added to upload queue;
Step 2: uploading queue and return to policy and callback interface that picture uploads;
Step 3: after photo upload module obtains policy, photo upload module can directly open uploading channel will be on photo Reach cloud server;
Step 4: after cloud server gets upload data, calling callback interface, update the transmission uploaded in queue State uploads queue for result is uploaded and is back to cloud server;
Step 5: uploading queue inspection and upload whether data upload completion;Failure result will be uploaded if uploading failure to return To photo upload module, successful result will be uploaded if uploading completion and is back to photo upload module.
Preferably, the uploading channel is provided with a plurality of, the photo upload module can upload multiple photos simultaneously.
Preferably, the photo upload module, which re-requests, will upload file data addition when photo upload failure To upload queue.
Preferably, current network state is detected when the photo upload module receives user's request upload, File data will be uploaded by, which then stopping when network state occurs abnormal, is added to upload queue.
Preferably, the photo upload module can format to photo and size verify.
Preferably, the upload queue can store the intermediate file generated in upload procedure.
A kind of lossless photo upload system, including photo upload module, uploading channel, upload queue and cloud server, It requests to upload for receiving user described in the photo upload module, file data will be uploaded and be added to the upload queue, institute It states and uploads policy and callback interface that queue uploads queue return picture upload, the photo upload module, which receives, uploads queue Uploading channel is opened after the policy of return;The data that the uploading channel is used to upload the photo upload module upload To cloud server;The cloud server is used to receive the data of uploading channel upload and calls callback interface, updates upload Transmission state in queue uploads queue for result is uploaded and is back to cloud server.
Preferably, the lossless photo upload system further includes risk assessment sub-module, the risk assessment sub-module For being scanned to each photo in the lossless photo upload queue.
Preferably, the lossless photo upload system further includes creation module, the creation module is according to upload queue The uploading channel of different item numbers is arranged in the policy of return.
Preferably, the uploading channel be provided with it is a plurality of.
Beneficial effects of the present invention:
A kind of lossless photo upload method provided by the invention, the present invention is using photo upload module directly by photo upload To cloud server, the clarity of photo is greatly remained, and photo upload module is worked as in the upload queue of this method for uploading When requesting upload pictures, uploads queue and return to policy and callback interface that picture uploads, greatly ensure that the safety of upload Property and stability, result will be uploaded there are also the upload queue of this method and is back to cloud server, queue inspection is uploaded and upload number According to whether uploading completion;Failure result will be uploaded if uploading failure is back to photo upload module, it will be upper if uploading completion It passes successful result and is back to photo upload module, explicitly know whether photo uploads into for photo upload module can be passed through Function.
A kind of lossless photo upload system provided by the invention, including photo upload module, uploading channel, upload queue and Cloud server requests to upload described in the photo upload module for receiving user, will upload file data and is added to described Queue is uploaded, and for receiving the policy for uploading queue and returning;The uploading channel is used for the photo upload module The data of biography are uploaded to cloud server;The cloud server is used to receive the data of uploading channel upload and readjustment is called to connect Mouthful, update the transmission state uploaded in queue, upload queue and will upload result and be back to cloud server, this uploading system can will Photo is directly uploaded to cloud server by uploading module, greatly remains the clarity of photo.
Detailed description of the invention
Fig. 1 is the flow chart of lossless photo upload method of the invention.
Fig. 2 is the frame diagram of lossless photo upload system of the invention.
Appended drawing reference is respectively as follows:
Photo upload module -- 1, uploading channel -- 2, upload queue -- 3, cloud server -- 4.
Specific embodiment
For the ease of the understanding of those skilled in the art, the present invention is made further below with reference to embodiment and attached drawing Bright, the content that embodiment refers to not is limitation of the invention.The present invention is described in detail below in conjunction with attached drawing.
Embodiment one
As shown in Figure 1, 2, it a kind of lossless photo upload method provided by the invention, including step 1: shines Piece uploading module 1 receives user and requests to upload, and will upload file data and be added to upload queue 3;Step 2: uploading queue 3 and return Return policy and callback interface that picture uploads;Step 3: after photo upload module 1 obtains policy, directly opening uploading channel 2 by photo upload to cloud server 4;Step 4: after cloud server 4 gets upload data, calling callback interface, more The new transmission state uploaded in queue 3 uploads queue 3 for result is uploaded and is back to cloud server 4;Step 5: uploading queue 3 It checks and uploads whether data upload completion;Failure result will be uploaded if uploading failure and is back to photo upload module 1, if uploading Successful result will then be uploaded by, which completing, is back to photo upload module 1.
The present invention, directly by photo upload to cloud server 4, greatly remains photo using photo upload module 1 Clarity, and the upload queue 3 of this method for uploading uploads queue 3 and returns to figure when photo upload module 1 requests upload pictures The policy and callback interface that piece uploads, greatly ensure that the safety and stability of upload, there are also the upload teams of this method Column 3 are back to cloud server 4 for result is uploaded, and upload queue 3 and check whether upload data upload completion;If uploading failure Failure result will be uploaded and be back to photo upload module 1, successful result will be uploaded if uploading completion and is back to photo upload mould Block 1 explicitly knows whether photo uploads success for that can pass through photo upload module 1.
In the present embodiment, to guarantee that the stability and rapidity that upload, the uploading channel 2 are provided with a plurality of, the photograph Piece uploading module 1 can upload multiple photos simultaneously.
In the present embodiment, when photo upload failure, the photo upload module 1, which re-requests, adds upload file data Enter to upload queue 3.
In the present embodiment, when the photo upload module 1 receives user's request upload, current network state is examined It surveys, file data will be uploaded by, which then stopping when network state occurs abnormal, is added to upload queue 3.
In the present embodiment, the photo upload module 1 can format to photo and size verify, the upload queue 3 can store the intermediate file generated in upload procedure.
Embodiment two
As shown in Figure 1, 2, a kind of lossless photo upload system, including photo upload module 1, uploading channel 2, upload queue 3 and cloud server 4, request to upload for receiving user described in the photo upload module 1, will upload file data be added to The upload queue 3, it is described upload queue 3 and upload queue 3 return to policy and callback interface that picture uploads, on the photo Transmission module 1 opens uploading channel 2 after receiving the policy for uploading the return of queue 3;The uploading channel 2 is used for the photo The data that uploading module 1 uploads are uploaded to cloud server 4;The cloud server 4 is used to receive the number of the upload of uploading channel 2 According to and call callback interface, update upload queue 3 in transmission state, upload queue 3 by upload result be back to cloud service Photo can be directly uploaded to cloud server 4 by uploading module, greatly remain the clear of photo by device 4, this uploading system Clear degree.
In the present embodiment, the lossless photo upload system further includes risk assessment sub-module, the risk score mould For being scanned to each photo in the lossless photo upload queue 3, risk assessment sub-module will can effectively shine block The content of piece is filtered.
In the present embodiment, the lossless photo upload system further includes creation module, and the creation module is according to upload team The uploading channel 2 of different item numbers is arranged in the policy that column 3 return.
In the present embodiment, to guarantee the stability and rapidity that upload, the uploading channel 2 is provided with a plurality of.
The above is only present pre-ferred embodiments, is not intended to limit the present invention in any form, although The present invention is disclosed as above with preferred embodiment, and however, it is not intended to limit the invention, any person skilled in the art, It does not depart within the scope of technical solution of the present invention, when the technology contents using the disclosure above make a little change or are modified to equivalent change The equivalent embodiment of change, but without departing from the technical solutions of the present invention, technology refers to above embodiments according to the present invention Made any simple modification, equivalent change and modification, belong in the range of technical solution of the present invention.

Claims (10)

1. a kind of lossless photo upload method, it is characterised in that: including
Step 1: photo upload module receives user and requests the picture uploaded, will upload file data and be added to upload queue;
Step 2: uploading queue and return to policy and callback interface that picture uploads;
Step 3: after photo upload module obtains policy, directly opening uploading channel for photo upload to cloud server;
Step 4: after cloud server gets upload file data, calling callback interface, update the transmission uploaded in queue State uploads queue for result is uploaded and is back to cloud server;
Step 5: uploading queue inspection and upload whether data upload completion;Failure result will be uploaded if uploading failure is back to photograph Piece uploading module will upload successful result if uploading completion and be back to photo upload module.
2. a kind of lossless photo upload method according to claim 1, it is characterised in that: the uploading channel is provided with more Item, the photo upload module can upload multiple photos simultaneously.
3. a kind of lossless photo upload method according to claim 1, it is characterised in that: when photo upload failure, institute It states photo upload module re-request upload file data is added to upload queue.
4. a kind of lossless photo upload method according to claim 1, it is characterised in that: the photo upload module receives When requesting to upload to user, current network state is detected, is then stopped when network state occurs abnormal by upper transmitting file Data are added to upload queue.
5. a kind of lossless photo upload method according to claim 1, it is characterised in that: the photo upload module can be right The format and size of photo are verified.
6. a kind of lossless photo upload method according to claim 1, it is characterised in that: the upload queue can store The intermediate file generated during passing.
7. a kind of lossless photo upload system, it is characterised in that: including photo upload module, uploading channel, upload queue and cloud Server is held, the upload file data of upload is requested described in the photo upload module for receiving user, number of files will be uploaded According to being added to the upload queue, the upload queue returns to policy and callback interface that picture uploads, the photo upload Module opens uploading channel after receiving the policy for uploading queue return;The uploading channel is used for the photo upload mould The data that block uploads are uploaded to cloud server;The cloud server is used to receive the data of uploading channel upload and calls back It adjusts interface, update the transmission state uploaded in queue, upload queue for result is uploaded and be back to cloud server.
8. a kind of lossless photo upload system according to claim 7, it is characterised in that: the lossless photo upload system It further include risk assessment sub-module, the risk assessment sub-module is used for each photo in the lossless photo upload queue It is scanned.
9. a kind of lossless photo upload system according to claim 8, it is characterised in that: the lossless photo upload system It further include creation module, the uploading channel that different item numbers are arranged according to the policy that queue returns is uploaded in the creation module.
10. a kind of lossless photo upload system according to claim 8, it is characterised in that: the uploading channel is provided with It is a plurality of.
CN201910344788.0A 2019-04-26 2019-04-26 Lossless photo uploading method and system Active CN110247949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910344788.0A CN110247949B (en) 2019-04-26 2019-04-26 Lossless photo uploading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910344788.0A CN110247949B (en) 2019-04-26 2019-04-26 Lossless photo uploading method and system

Publications (2)

Publication Number Publication Date
CN110247949A true CN110247949A (en) 2019-09-17
CN110247949B CN110247949B (en) 2022-04-01

Family

ID=67883402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910344788.0A Active CN110247949B (en) 2019-04-26 2019-04-26 Lossless photo uploading method and system

Country Status (1)

Country Link
CN (1) CN110247949B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685150A (en) * 2012-09-03 2014-03-26 腾讯科技(深圳)有限公司 File uploading method and device
CN104391930A (en) * 2014-11-21 2015-03-04 用友软件股份有限公司 Distributed file storage device and method
CN105162863A (en) * 2015-09-01 2015-12-16 北京皮尔布莱尼软件有限公司 Picture uploading device and method and computing equipment
CN105306249A (en) * 2015-07-10 2016-02-03 深圳市美贝壳科技有限公司 Method for displaying uploading status in real time in process of uploading pictures to Cloud
CN108614820A (en) * 2016-12-09 2018-10-02 腾讯科技(深圳)有限公司 The method and apparatus for realizing the parsing of streaming source data
CN108712319A (en) * 2018-04-20 2018-10-26 广州沐思信息科技有限公司 A kind of voice transmitting method, device and terminal based on instant messaging

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685150A (en) * 2012-09-03 2014-03-26 腾讯科技(深圳)有限公司 File uploading method and device
CN104391930A (en) * 2014-11-21 2015-03-04 用友软件股份有限公司 Distributed file storage device and method
CN105306249A (en) * 2015-07-10 2016-02-03 深圳市美贝壳科技有限公司 Method for displaying uploading status in real time in process of uploading pictures to Cloud
CN105162863A (en) * 2015-09-01 2015-12-16 北京皮尔布莱尼软件有限公司 Picture uploading device and method and computing equipment
CN108614820A (en) * 2016-12-09 2018-10-02 腾讯科技(深圳)有限公司 The method and apparatus for realizing the parsing of streaming source data
CN108712319A (en) * 2018-04-20 2018-10-26 广州沐思信息科技有限公司 A kind of voice transmitting method, device and terminal based on instant messaging

Also Published As

Publication number Publication date
CN110247949B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
WO2021135391A1 (en) Image quality evaluation method and apparatus
CN105959530A (en) Method and system for invoking a camera function according to an individualized property of an application
US9948847B2 (en) Wearable device, photography device and associated photographing method
US8838730B2 (en) Apparatus for displaying an image, system processing image data, and method of processing image data
CN106228493A (en) Car accident processing method and processing device
US10116791B2 (en) Methods and apparatus for transmitting data
CN110113538B (en) Intelligent shooting equipment, intelligent control method and device
WO2016146060A1 (en) Sharing method and device for picture
CN108694995B (en) Medical diagnosis system and method
US20180338004A1 (en) Internet of things information system
CN105812667A (en) System and method for photographing PPT rapidly
CN102542393A (en) Method, system and device for realizing real-name registration of user identity information
US20140055627A1 (en) Information processing apparatus, data distribution system, method of controlling information processing apparatus, and storage medium
CN105897570A (en) Pushing method and device
CN110247949A (en) Lossless photo uploading method and system
WO2019196240A1 (en) Photographing method, apparatus, computer device, and storage medium
CN116300773B (en) Flexible control method, device and storage medium for fully automatic assembly of electronic products
WO2020048504A1 (en) Method and apparatus for deploying resource required for network function, storage medium, and electronic device
CN106131479A (en) It is applied to many equipment display packing and the system of aircraft
CN106657963B (en) A kind of data processing equipment and method
JP3955508B2 (en) Image attached mail relay device, image attached mail relay method, and image attached mail relay program
CN110519400B (en) Method for realizing Internet of things platform for carrying out multi-inlet separation on equipment flow
US20220215518A1 (en) Photographing method, apparatus and system, and computer readable storage medium
JP2001256498A (en) Method and device for judging picture and computer readable recording medium
KR101990200B1 (en) System for automatic recovery of video of mobile terminal when communications break down, and method thereof

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 523000 room 1501, unit 1, building 1, No. 17, Keji 4th Road, Songshanhu Park, Dongguan City, Guangdong Province

Patentee after: Xianmeng photography Co.,Ltd.

Address before: 523000 2nd floor, building C, No.20 Houhu Road, Huangcun community, Humen Town, Dongguan City, Guangdong Province

Patentee before: Guangdong Hucai Image Co.,Ltd.

CP03 Change of name, title or address