CN104348705B - Picture mass-sending data processing method based on enterprise instant communication platform - Google Patents

Picture mass-sending data processing method based on enterprise instant communication platform Download PDF

Info

Publication number
CN104348705B
CN104348705B CN201310333016.XA CN201310333016A CN104348705B CN 104348705 B CN104348705 B CN 104348705B CN 201310333016 A CN201310333016 A CN 201310333016A CN 104348705 B CN104348705 B CN 104348705B
Authority
CN
China
Prior art keywords
picture
pictorial information
server
client
subnet
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.)
Expired - Fee Related
Application number
CN201310333016.XA
Other languages
Chinese (zh)
Other versions
CN104348705A (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.)
Nantong Aimu Network Technology Co ltd
Original Assignee
SHANGHAI YUNMU NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI YUNMU NETWORK TECHNOLOGY Co Ltd filed Critical SHANGHAI YUNMU NETWORK TECHNOLOGY Co Ltd
Priority to CN201310333016.XA priority Critical patent/CN104348705B/en
Publication of CN104348705A publication Critical patent/CN104348705A/en
Application granted granted Critical
Publication of CN104348705B publication Critical patent/CN104348705B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of picture based on enterprise instant communication platform to mass-send data processing method, this method receives pictorial information from server first and each client into subnet sends the message of reception picture, each client preferentially obtains the pictorial information when receiving pictorial information at a certain client out of same subnet, and judge whether obtain success in setting time, if it is not, then obtain the pictorial information from server.Compared with prior art, the present invention not only overcomes the drawbacks of picture is sent in existing group, also improves the speed that picture sends and presented, and occupancy of the Intranet user to network bandwidth is reduced, to ensure the normal use of enterprise network.

Description

Picture mass-sending data processing method based on enterprise instant communication platform
Technical field
The present invention relates to a kind of image data processing method, more particularly, to a kind of figure based on enterprise instant communication platform Piece mass-sends data processing method.
Background technology
Enterprise instant communication is a kind of network communication service for enterprise clerical workforce, the content of communication include word, Mutual hair of picture, voice, video and file etc..Wherein picture is a kind of form of expression of the expression true idea of communication person directly perceived, and And send what picture often generally used in group in multi-party communication as enterprise.
Picture is sent in the group of existing enterprise's immediate communication tool to realize typically by such pattern:Picture Sender the request for sending picture is sent to server, and the picture is uploaded onto the server, then each recipient receives The picture is downloaded after to instruction from server respectively.Because the user of enterprise instant communication tool is largely in same local Enterprise clerical workforce in net, their community network bandwidth, if each user is from server download pictures, then gesture Many bandwidth must be taken within a period of time, the speed that not only picture is downloaded and presented can be very slow, but also can influence it The normal use of his user to network bandwidth.
The content of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide one kind is instant based on enterprise The picture mass-sending data processing method of communication platform, not only overcome existing group in transmission picture the drawbacks of, also improve The speed that picture sends and presented, occupancy of the Intranet user to network bandwidth is reduced, to ensure the normal use of enterprise network.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of picture mass-sending data processing method based on enterprise instant communication platform, this method are received by server first Pictorial information and each client into subnet send the message of reception picture, preferentially from same when each client receives pictorial information Obtain the pictorial information at a certain client in one subnet, and judge whether obtain success in setting time, if it is not, then from Server obtains the pictorial information.
This method specifically includes following steps:
1) user end to server sends the request for sending picture in subnet, and pictorial information is transferred into server;
2) message of other client broadcasts " reception picture " of the server by Tcp into subnet;
3) after client receives the message of " reception picture " in subnet, judge locally to whether there is the picture, if so, then root Pictorial information is obtained according to the path that is locally stored of the picture, if it is not, then performing step 4);
4) judge whether downloading the picture, if so, then perform step 5), if it is not, then by Udp into subnet it is other Client sends inquiry message, and judges whether to receive within the setting response time and receive the response, if so, then sending link information Connect corresponding client and obtain pictorial information, and perform step 5), if it is not, then performing step 6);
5) judge whether successfully obtain picture within setting download time, if it is not, then obtaining the pictorial information from server;
6) judge whether picture is offline picture, if so, then the pictorial information is obtained from server, if it is not, then from same The pictorial information is obtained in subnet at a certain client.
Obtaining pictorial information in described step 6) in same subnet at a certain client is specially:
61) client in several subnets is selected to represent from server as representing and obtain pictorial information, and by wide Broadcast to other clients in addition to representative and send announcement information;
62) client for receiving announcement information judges whether with representing in same a group, if so, then connection is represented and obtained Pictorial information is taken, step 63) is performed, if it is not, then ignoring this announcement information;
63) judge whether successfully obtain picture within setting download time, if it is not, then obtaining picture letter from server Breath.
Described set the response time as 3 seconds.
Described set download time as 10~15 seconds.
The described number represented is three.
Compared with prior art, the present invention has advantages below:
1) speed that picture sends and presented is improved.Adaptive p 2 p technology of the present invention in units of subnet, uses udp The mode that broadcast+nat is penetrated, the technology that picture in subnet is quickly distributed is realized, Consumer's Experience is enhanced, improves picture Download, the speed of display.
2) occupancy of user network bandwidth is reduced.The quick ways of distribution of picture in the subnet that the present invention uses, can also subtract User is to the occupancy of community network bandwidth in few subnet, efficiently avoid network bandwidth overload for problem.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the present invention.
Embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention Premised on implemented, but protection scope of the present invention is not limited to following embodiments.
A kind of picture mass-sending data processing method based on enterprise instant communication platform, this method are received by server first Pictorial information and each client into subnet send the message of reception picture, preferentially from same when each client receives pictorial information Obtain the pictorial information at a certain client in one subnet, and judge whether obtain success in setting time, if it is not, then from Server obtains the pictorial information.This method is sent the request for sending picture by a certain user end to server in group, and should Picture is submitted to server, then other clients or from server download pictures or at client in subnet other groups in group Obtain picture and show, specifically include following steps:
1) user end to server sends the request for sending picture in subnet, and pictorial information is transferred into server;
2) message of other client broadcasts " reception picture " of the server by Tcp into subnet;
3) after client receives the message of " reception picture " in subnet, judge locally to whether there is the picture, if so, then root Pictorial information is obtained according to the path that is locally stored of the picture, if it is not, then performing step 4);
4) judge whether downloading the picture, if so, then perform step 5), if it is not, then by Udp into subnet it is other Client sends inquiry message, and judges whether to receive in 3 seconds and receive the response, if so, it is corresponding then to send link information connection Client obtain pictorial information, and step 5) is performed, if it is not, then performing step 6);
5) judge whether successfully obtained picture in 15 seconds, if it is not, then obtaining the pictorial information from server;
6) judge whether picture is offline picture, if so, then the pictorial information is obtained from server, if it is not, then from same The pictorial information is obtained in subnet at a certain client, is specially:
61) client in several subnets is selected to represent from server as representing and obtain pictorial information, and by wide Broadcast to other clients in addition to representative and send announcement information;
62) client for receiving announcement information judges whether with representing in same a group, if so, then connection is represented and obtained Pictorial information is taken, step 63) is performed, if it is not, then ignoring this announcement information;
63) judge whether successfully obtained picture in 10 seconds, if it is not, then obtaining the pictorial information from server.
Now by taking a group for there are 50 people as an example, it is described in detail with reference to flow chart as shown in Figure 1:
In step S101, a customer end A in group sends the request for sending picture to Http servers, and by the figure Piece is uploaded to Http servers;
In step s 102, connection server, with Tcp broadcast the message of " reception picture " to the customer end B in group, C, D…;
In step s 103, after customer end B, C, D ... receive the message from server " reception picture " in group, judge It is local to whether there is the picture, if so, then performing step S104, file path is notified into upper strata and obtains picture, if it is not, then holding Row step S105;
In step S105, when client oneself locally no picture in group, judge whether to download this picture, If so, then performing step S106, if do not obtained successfully in 15 seconds, server is gone to download immediately.If it is not, then perform step S107;
In step s 107, when recipient is not downloading the picture in group, broadcasted in subnet with Udp, to subnet Interior other clients send inquiry message, inquire that who has this picture file, wait receiveed the response to receive within 3 seconds.If there is response, Step S108 is then performed, connexon network users obtain picture, if being gone immediately under server if failed acquisition in 15 seconds Carry;If without response, step S109 is performed;
In step S109, recipient's other users in inquiry subnet not after the picture, judge the lower picture in group Whether it is offline picture, if so, then directly going Http servers to download;If it is not, then perform step S110;
In step s 110, judgement of the recipient Jing Guos the above finds the picture it's not true in subnet in group, ballot Select Three Represents and download the picture from Http servers;
In step S111, recipient judges whether lower oneself be representative in group, if so, step S112 is then performed, if It is no, then perform step S113;
In step S112, selected representative is broadcast to son after the completion of download from Http server download pictures with Udp Other client hair message, then perform step S114 in net;
In step S113, the client represented is not chosen as, wait represents download pictures, represents successfully download pictures Afterwards, other recipients obtain picture from representative office in group, do not complete within 10 seconds if downloading, recipient directly takes from Http in group Business device download pictures, if the stand-by period, more than 30 seconds, recipient is directly from Http server download pictures in group;
In step S114, after the client in subnet receives broadcast message, under judgement whether in same a group, if so, Step S115 is then performed, the user is connected and obtains picture file, if it is not, then performing step S116, ignores the broadcast message.

Claims (4)

1. it is a kind of based on enterprise instant communication platform picture mass-sending data processing method, it is characterised in that this method first by Server receives pictorial information and each client into subnet sends the message for receiving picture, and each client receives pictorial information Shi Youxian obtains the pictorial information at a certain client out of same subnet, and judges whether obtained into setting time Work(, if it is not, then obtaining the pictorial information from server, this method specifically includes following steps:
1) user end to server sends the request for sending picture in subnet, and pictorial information is transferred into server;
2) message of other client broadcasts " reception picture " of the server by Tcp into subnet;
3) after client receives the message of " reception picture " in subnet, judge locally to whether there is the picture, if so, then basis should The path that is locally stored of picture obtains pictorial information, if it is not, then performing step 4);
4) judge whether downloading the picture, if so, then perform step 5), if it is not, then by Udp into subnet other clients End sends inquiry message, and judges whether to receive within the setting response time and receive the response, if so, then sending link information connection Corresponding client obtains pictorial information, and performs step 5), if it is not, then performing step 6);
5) judge whether successfully obtain picture within setting download time, if it is not, then obtaining the pictorial information from server;
6) judge whether picture is offline picture, if so, then the pictorial information is obtained from server, if it is not, then from same subnet The pictorial information is obtained at interior a certain client, is specially:
61) select client in several subnets as representing, represent from server and obtain pictorial information, and by broadcast to Other clients in addition to representative send announcement information;
62) client for receiving announcement information judges whether with representing in same a group, if so, then connection represents and obtains figure Piece information, step 63) is performed, if it is not, then ignoring this announcement information;
63) judge whether successfully obtain picture within setting download time, if it is not, then obtaining the pictorial information from server.
2. a kind of picture mass-sending data processing method based on enterprise instant communication platform according to claim 1, it is special Sign is that described set the response time as 3 seconds.
3. a kind of picture mass-sending data processing method based on enterprise instant communication platform according to claim 1, it is special Sign is that described set download time as 10~15 seconds.
4. a kind of picture mass-sending data processing method based on enterprise instant communication platform according to claim 1, it is special Sign is that the described number represented is three.
CN201310333016.XA 2013-08-01 2013-08-01 Picture mass-sending data processing method based on enterprise instant communication platform Expired - Fee Related CN104348705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310333016.XA CN104348705B (en) 2013-08-01 2013-08-01 Picture mass-sending data processing method based on enterprise instant communication platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310333016.XA CN104348705B (en) 2013-08-01 2013-08-01 Picture mass-sending data processing method based on enterprise instant communication platform

Publications (2)

Publication Number Publication Date
CN104348705A CN104348705A (en) 2015-02-11
CN104348705B true CN104348705B (en) 2017-12-15

Family

ID=52503562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310333016.XA Expired - Fee Related CN104348705B (en) 2013-08-01 2013-08-01 Picture mass-sending data processing method based on enterprise instant communication platform

Country Status (1)

Country Link
CN (1) CN104348705B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107295114A (en) * 2016-04-05 2017-10-24 北京京东尚科信息技术有限公司 Distributed Services addressing method and system
CN111970284A (en) * 2020-08-19 2020-11-20 网易(杭州)网络有限公司 Message processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447642A (en) * 2010-09-30 2012-05-09 腾讯科技(深圳)有限公司 Method and device for managing messages and pictures based on IM (Instant Messaging) client
CN103179156A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Method, system and device for sharing pictures

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100563197C (en) * 2006-03-16 2009-11-25 腾讯科技(深圳)有限公司 A kind of image sharing system and method
CN101127623A (en) * 2007-09-27 2008-02-20 腾讯科技(深圳)有限公司 Data processing method, device and system
CN102457480A (en) * 2010-10-22 2012-05-16 江苏真云计算科技有限公司 Cloud computing safty architecture
US8676908B2 (en) * 2010-11-25 2014-03-18 Infosys Limited Method and system for seamless interaction and content sharing across multiple networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447642A (en) * 2010-09-30 2012-05-09 腾讯科技(深圳)有限公司 Method and device for managing messages and pictures based on IM (Instant Messaging) client
CN103179156A (en) * 2011-12-22 2013-06-26 腾讯科技(深圳)有限公司 Method, system and device for sharing pictures

Also Published As

Publication number Publication date
CN104348705A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN104158808B (en) Portal authentication method and its device based on APP applications
JP4740328B2 (en) Messenger notification system and method using sink server
US20170155609A1 (en) Method and device for prompting dynamic information about contact person
CA2440159A1 (en) Integration of e-mail with instant messaging services
CN103326929B (en) Method and device for transmitting messages
CN102185924A (en) Method and equipment for sharing video screenshot
EP2224670A3 (en) cookie verification methods and apparatus for use in providing application services to communication devices
CN1653829A (en) Providing instant messaging functionality in non-instant messaging environments
CN104954492B (en) Instant communication method, the distribution server, user terminal and instant communicating system
EP1635505A3 (en) Distributed messaging system and method for sharing network status data
WO2010001182A3 (en) Method and system for communicating between mobile users of a social network system
CN101217510A (en) An integrated information interactive system and the corresponding method
CN108111322B (en) Network conference control method and device
CN103023744A (en) Method and system for information management in instant messaging tool
CN104348705B (en) Picture mass-sending data processing method based on enterprise instant communication platform
KR101543425B1 (en) Method for providing chat service and system therefor
JP4633842B2 (en) Notification system and method using messenger
CN102821064B (en) JICQ sets instant user's figure calibration method, client and system
CN104954227B (en) A kind of cross-platform information push method of preemptive type and server
CN105959126A (en) Dynamic background sharing method and device in audio chatting room
US20140287787A1 (en) Connection System and Method to Dynamically Create and Collect a Group of Contextual Contacts
CN108268640A (en) A kind of striding equipment file open method, device and system
NZ587500A (en) A method for presenting an updated status overview of persons staying in one or more specific geographical locations abroad
CN100518342C (en) Universal message system and implementing method thereof
US10084730B2 (en) Apparatus and method for quickly sending messages

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210310

Address after: Inside qingzhihua garden, 377 Century Avenue, Nantong City, Jiangsu Province, 226000

Patentee after: Nantong Aimu Network Technology Co.,Ltd.

Address before: 200436 room 505, no.250, JIANGCHANG Third Road, Zhabei District, Shanghai

Patentee before: SHANGHAI YUNMU NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171215