CN112838981A - Instant message processing method, device and system and electronic equipment - Google Patents

Instant message processing method, device and system and electronic equipment Download PDF

Info

Publication number
CN112838981A
CN112838981A CN202110170222.8A CN202110170222A CN112838981A CN 112838981 A CN112838981 A CN 112838981A CN 202110170222 A CN202110170222 A CN 202110170222A CN 112838981 A CN112838981 A CN 112838981A
Authority
CN
China
Prior art keywords
file
instant message
information
target file
address
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
CN202110170222.8A
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.)
Tibet Ningsuan Technology Group Co ltd
Original Assignee
Tibet Ningsuan Technology Group 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 Tibet Ningsuan Technology Group Co ltd filed Critical Tibet Ningsuan Technology Group Co ltd
Priority to CN202110170222.8A priority Critical patent/CN112838981A/en
Publication of CN112838981A publication Critical patent/CN112838981A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Abstract

The invention discloses an instant message processing method, a device, a system and an electronic device, wherein the method comprises the following steps: receiving fingerprint information and a destination address of a target file, wherein the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent; inquiring in the stored files according to the fingerprint information, and judging whether the stored files have the same content as the target file; if so, sending first file information to a destination corresponding to the address information, wherein the first file information comprises a first download address, and the first download address is a download address of a storage file with the same content. The scheme can identify the files with consistent content, so that only one file with the same content is stored at the instant message server, the storage space of the instant message server is saved, and the operation cost of an instant message service provider is reduced.

Description

Instant message processing method, device and system and electronic equipment
Technical Field
The invention belongs to the technical field of computer software application, and particularly relates to an instant message processing method, an instant message processing device, an instant message processing system and electronic equipment.
Background
The instant message function comprises character message chat, file transmission, romance, flashing screen vibration, voice communication, video communication and the like. Instant messaging, also known as instant messaging, is an IP technology communication software using the internet, and has become an open interworking online communication tool. The earliest occurrence in 1998 was rapidly widespread, with no uniform formal translation names, commonly referred to as "instant messaging", IM. At present, a plurality of IM products are available, and contents such as an electronic mailbox, a mobile phone short message, a file service and the like are fused to form a comprehensive network communication tool.
In a scene of sending a file message, an existing instant message system cannot judge files with the same content, so that an instant message server stores a large number of repeated files, the storage space of the server is wasted, and the operation cost of an instant message service provider is increased.
Disclosure of Invention
In order to solve the above problems, the present invention provides an instant message processing method, apparatus, system and electronic device, which can identify files with consistent content, so that only one file with the same content is stored in an instant message server, thereby saving the storage space of the instant message server and reducing the operation cost of an instant message service provider.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention discloses an instant message processing method, which comprises the following steps:
receiving fingerprint information and a destination address of a target file, wherein the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent;
inquiring in stored files according to the fingerprint information, and judging whether the stored files have the same content as the target file;
if so, sending first file information to a destination corresponding to the address information, wherein the first file information comprises a first download address, and the first download address is a download address of a storage file with the same content.
As an optional technical solution, when there is no stored file with the same content as the target file in the stored file, the following process is performed:
receiving and storing the uploaded target file, and storing fingerprint information of the target file at the same time;
generating a second download address, wherein the second download address is a download address of the stored target file;
and sending second file information to a destination corresponding to the address information, wherein the second file information comprises the second download address.
In a second aspect, the present invention also discloses an instant message processing apparatus, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving fingerprint information and a destination address of a target file, the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent;
the query judging module is used for querying in the stored files according to the fingerprint information and judging whether the stored files have the same content as the target file;
and the first sending module is used for sending first file information to a destination corresponding to the address information when a storage file with the same content as the target file exists, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content.
As an optional technical solution, the apparatus further includes:
the second receiving module is used for receiving and storing the uploaded target file and storing the fingerprint information of the target file at the same time when the target file does not have a storage file with the same content as the target file;
the generation module is used for generating a second download address, wherein the second download address is the download address of the stored target file;
and the second sending module is used for sending second file information to a destination corresponding to the address information, wherein the second file information comprises the second download address.
In a third aspect, the present invention also discloses an instant message processing method, which includes the following steps:
a first instant message client selects a target file which needs to be sent to a target address, generates fingerprint information according to the target file, and sends the fingerprint information and the target address to an instant message server, wherein the destination corresponding to the target address is a second instant message client, and the fingerprint information is identification information uniquely corresponding to the target file;
the instant message server receives the fingerprint information and the destination address, and judges whether the stored file has a stored file with the same content as the target file or not according to the received fingerprint information inquired in the stored file of the instant message server;
if a storage file with the same content as the target file exists in the instant message server, sending first file information to a second instant message client, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content;
after the second instant message client side successfully receives the first file information, the successfully received information is returned to the instant message server side;
and the instant message server side returns the message which is successfully received and the first download address to the first instant message client side.
As an optional technical solution, when there is no storage file with the same content as the target file in the instant messaging service end, the following process is performed:
the first instant message client uploads the target file to an instant message server;
the instant message server receives and stores the uploaded target file and simultaneously stores the fingerprint information of the target file;
generating a second download address, wherein the second download address is a download address of the stored target file;
sending second file information to a second instant message client, wherein the second file information comprises the second download address;
after the second instant message client side successfully receives the second file information, the successfully received information is returned to the instant message server side;
and the instant message server side returns the message of successful receiving and the second download address to the first instant message client side.
In a fourth aspect, the present invention further discloses an instant message processing system, which comprises a first instant message client, an instant message server and a second instant message client, wherein the first instant message client, the instant message server and the second instant message client perform data interaction with each other;
wherein the first instant messaging client comprises:
a selection module for selecting a target file to be sent to a destination address, the destination corresponding to the destination address being a second instant message client,
the fingerprint generation and sending module is used for generating fingerprint information according to the target file and sending the fingerprint information and the destination address to an instant message server, wherein the fingerprint information is identification information uniquely corresponding to the target file;
wherein, the instant message service end comprises:
the first receiving module is used for receiving fingerprint information and a destination address of a target file;
the query judging module is used for querying in the stored files according to the received fingerprint information and judging whether the stored files have the stored files with the same content as the target file;
the first sending module is used for sending first file information to a second instant message client when a storage file with the same content as the target file exists, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content;
wherein the second instant messaging client comprises:
the third receiving module is used for receiving the first file information;
the first result returning module is configured to return a message of successful receiving to the instant message server after the first file information is successfully received;
and when the instant message server receives the returned information of successful reception, the message of successful reception and the first download address are returned to the first instant message client.
As an optional technical solution, the first instant messaging client further includes:
the uploading module is configured to upload the target file to the instant message server when the instant message server does not have the stored file with the same content as the target file;
the instant message service terminal further comprises:
the second receiving module is used for receiving and storing the uploaded target file and storing the fingerprint information of the target file at the same time;
the generation module is used for generating a second download address, wherein the second download address is the download address of the stored target file;
the second sending module is used for sending second file information to a second instant message client, wherein the second file information comprises the second download address;
the second instant messaging client further comprises:
the fourth receiving module is used for receiving the second file information;
the second result returning module is configured to return a message of successful receiving to the instant message server after the second file information is successfully received;
and when the instant message server receives the returned information of successful reception, the message of successful reception and the second download address are returned to the first instant message client.
In a fifth aspect, the present invention also discloses an electronic device, including: one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the instant message processing method disclosed in the first aspect above.
In a sixth aspect, the present invention also discloses a computer-readable medium, which includes a computer program, when the computer program runs on a computer, the computer is caused to execute the instant message processing method disclosed in the first aspect.
The invention has the beneficial effects that: in the application, when the instant message client side uploads a file, the fingerprint information of the file is firstly calculated and sent to the instant message server side for prejudgment, if the instant message server side checks that the file fingerprint information exists, the file information is retrieved according to the file fingerprint information and forwarded, the instant message client side is not required to repeatedly upload files with the same content and store the same files in the instant message server side, the problems that the instant message server side stores redundant files and wastes storage space are solved, and the problems that in some scenes, the instant message client side has large delay and large network flow consumption when sending the file information, and user experience is influenced are solved.
Drawings
Fig. 1 is a flowchart illustrating an instant message processing method according to an embodiment.
Fig. 2 is a functional block diagram of an instant message processing apparatus according to an embodiment.
Fig. 3 is a flowchart illustrating an instant message processing method according to another embodiment.
Fig. 4 is a functional block diagram of a first instant messaging client in an embodiment.
Fig. 5 is a functional block diagram of an instant messaging service in an embodiment.
Fig. 6 is a functional block diagram of a second instant messaging client in an embodiment.
Fig. 7 is a schematic diagram of a process for sending an instant message file based on the existence of file fingerprint information.
Fig. 8 is a diagram illustrating a file transmission flow of an instant message based on absence of file fingerprint information.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention is further described with reference to the following figures and specific embodiments.
Examples
As shown in fig. 1, in a first aspect, the present invention discloses an instant message processing method, which includes the following steps:
receiving fingerprint information and a destination address of a target file, wherein the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent;
inquiring in stored files according to the fingerprint information, and judging whether the stored files have the same content as the target file;
if so, sending first file information to a destination corresponding to the address information, wherein the first file information comprises a first download address, and the first download address is a download address of a storage file with the same content.
As an optional implementation manner, when there is no stored file with the same content as the target file in the stored file, the following process is performed:
receiving and storing the uploaded target file, and storing fingerprint information of the target file at the same time;
generating a second download address, wherein the second download address is a download address of the stored target file;
and sending second file information to a destination corresponding to the address information, wherein the second file information comprises the second download address.
It should be noted that, in the above method disclosed in the present application, the steps are not necessarily performed in the above order, and some steps are performed in parallel in a proper manner and are also within the protection scope of the present application.
As shown in fig. 2, in a second aspect, the present invention also discloses an instant message processing apparatus, including:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving fingerprint information and a destination address of a target file, the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent;
the query judging module is used for querying in the stored files according to the fingerprint information and judging whether the stored files have the same content as the target file;
and the first sending module is used for sending first file information to a destination corresponding to the address information when a storage file with the same content as the target file exists, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content.
As an optional implementation, the apparatus further comprises:
the second receiving module is used for receiving and storing the uploaded target file and storing the fingerprint information of the target file at the same time when the target file does not have a storage file with the same content as the target file;
the generation module is used for generating a second download address, wherein the second download address is the download address of the stored target file;
and the second sending module is used for sending second file information to a destination corresponding to the address information, wherein the second file information comprises the second download address.
As shown in fig. 3, in a third aspect, the present invention also discloses an instant message processing method, which includes the following steps:
a first instant message client selects a target file which needs to be sent to a target address, generates fingerprint information according to the target file, and sends the fingerprint information and the target address to an instant message server, wherein the destination corresponding to the target address is a second instant message client, and the fingerprint information is identification information uniquely corresponding to the target file;
the instant message server receives the fingerprint information and the destination address, and judges whether the stored file has a stored file with the same content as the target file or not according to the received fingerprint information inquired in the stored file of the instant message server;
if a storage file with the same content as the target file exists in the instant message server, sending first file information to a second instant message client, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content;
after the second instant message client side successfully receives the first file information, the successfully received information is returned to the instant message server side;
and the instant message server side returns the message which is successfully received and the first download address to the first instant message client side.
As an alternative implementation, when there is no storage file in the instant messaging service end that has the same content as the target file, the following process is performed:
the first instant message client uploads the target file to an instant message server;
the instant message server receives and stores the uploaded target file and simultaneously stores the fingerprint information of the target file;
generating a second download address, wherein the second download address is a download address of the stored target file;
sending second file information to a second instant message client, wherein the second file information comprises the second download address;
after the second instant message client side successfully receives the second file information, the successfully received information is returned to the instant message server side;
and the instant message server side returns the message of successful receiving and the second download address to the first instant message client side.
It should be noted that, in the above method disclosed in the present application, the steps are not necessarily performed in the above order, and some steps are performed in parallel in a proper manner and are also within the protection scope of the present application.
In a fourth aspect, the present invention further discloses an instant message processing system, which comprises a first instant message client, an instant message server and a second instant message client, wherein the first instant message client, the instant message server and the second instant message client perform data interaction with each other;
as shown in fig. 4, the first instant message client includes:
a selection module for selecting a target file to be sent to a destination address, the destination corresponding to the destination address being a second instant message client,
the fingerprint generation and sending module is used for generating fingerprint information according to the target file and sending the fingerprint information and the destination address to an instant message server, wherein the fingerprint information is identification information uniquely corresponding to the target file;
as shown in fig. 5, the instant message service end includes:
the first receiving module is used for receiving fingerprint information and a destination address of a target file;
the query judging module is used for querying in the stored files according to the received fingerprint information and judging whether the stored files have the stored files with the same content as the target file;
the first sending module is used for sending first file information to a second instant message client when a storage file with the same content as the target file exists, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content;
as shown in fig. 6, the second instant messaging client includes:
the third receiving module is used for receiving the first file information;
the first result returning module is configured to return a message of successful receiving to the instant message server after the first file information is successfully received;
and when the instant message server receives the returned information of successful reception, the message of successful reception and the first download address are returned to the first instant message client.
As an optional implementation manner, the first instant messaging client further includes:
the uploading module is configured to upload the target file to the instant message server when the instant message server does not have the stored file with the same content as the target file;
the instant message service terminal further comprises:
the second receiving module is used for receiving and storing the uploaded target file and storing the fingerprint information of the target file at the same time;
the generation module is used for generating a second download address, wherein the second download address is the download address of the stored target file;
the second sending module is used for sending second file information to a second instant message client, wherein the second file information comprises the second download address;
the second instant messaging client further comprises:
the fourth receiving module is used for receiving the second file information;
the second result returning module is configured to return a message of successful receiving to the instant message server after the second file information is successfully received;
and when the instant message server receives the returned information of successful reception, the message of successful reception and the second download address are returned to the first instant message client.
In the embodiment, when the instant message client uploads the file, the fingerprint information of the file is firstly calculated and sent to the instant message server for prejudgment, if the instant message server checks that the file fingerprint information exists, the file information is retrieved according to the file fingerprint information and forwarded, the instant message client does not need to repeatedly upload files with the same content and store the same files at the instant message server, the instant message server only stores one file with the same content, the storage space is saved, the operation cost of a service provider is reduced, the instant message client can shorten the file transmission delay and reduce the network flow consumption under the scene that the instant message server uploads the existing files, the problems that the instant message server stores redundant files and wastes storage space are solved, and the problems that the instant message client has large delay and large network flow consumption when sending the file message are solved under certain scenes, the problem of influencing the user experience.
The following detailed description of the more specific implementation process is divided into two aspects: one aspect is an instant message file sending process based on the presence of file fingerprint information, and another aspect is an instant message file sending process based on the absence of file fingerprint information.
Fig. 7 is a schematic diagram of an instant message file sending process based on file fingerprint information, where a scenario is that a user a sends a file message to a user B, and the process involves an instant message client (i.e., a first instant message client), an instant message service end and an instant message client (i.e., a second instant message client) used by the user a, and the specific process includes:
step 1: user a uses the instant messaging client to select a file (represented using file 1) to send to user B and sends it through the instant messaging client a's human machine interface.
Step 2: the instant messaging client (denoted as instant messaging client a) used by user a generates fingerprint information (denoted as signature 1) for file1, signature1 being generated using existing techniques, such as the MD5 algorithm.
And step 3: the instant message client a sends a signature1 to the instant message server along with the destination address of the file message (the destination address in this scenario is the address of user B). The purpose of this step is: the instant message client a sends signalute 1 to the instant message server for detecting whether the instant message server already has files with the same content, and if the instant message server already has files with the same content, the instant message client a may not need to upload the files with the same content to the instant message server. The method avoids the redundant files with the same content stored by the instant message server side, wastes the storage space of the instant message server side, and saves the step of uploading the files by the instant message client side A, thereby obviously shortening the time of sending the file messages for large files and saving the network flow of users.
And 4, step 4: the instant message server searches the file address (the address is represented by fileUrl1) corresponding to the signature1 according to the signature 1. storage and retrieval of the signature1 and the fileuirl 1 are realized by a database technology, and the scheme adopts a MySq1 database.
And 5: the instant messaging service sends the file information (including the most important fileUrl1 in the file information) to the instant messaging client (denoted as instant messaging client B) used by user B.
Step 6: and after receiving the file information, the instant message client B returns a message of successful receiving to the instant message server.
Step 6.1: the instant message client B displays the file information to the user B.
And 7: the instant message server returns fileUrl1 and a result message of successful file transmission to the instant message client A.
And 8: the instant message client a presents the results to the user a.
On the other hand, as shown in fig. 8, it is a schematic diagram of an instant messaging file sending process based on absence of file fingerprint information, where a scenario is that a user a sends a file message to a user B, and the instant messaging client (i.e. a first instant messaging client) used by the user a, an instant messaging service end, and an instant messaging client (i.e. a second instant messaging client) used by the user B are involved, and the specific process is as follows:
step 1: user a uses the instant messaging client (represented by instant messaging client a) to select a file (represented by file 2) to be sent to user B and sends it through the human machine interface of instant messaging client a.
Step 2: the instant messaging client a generates fingerprint information (denoted using signature 2) for file2, and signature2 is generated using existing techniques, such as the MD5 algorithm.
And step 3: the instant message client a sends a signature2 to the instant message server along with the destination address of the file message (the destination address in this scenario is the address of user B).
And 4, step 4: and the instant message server side searches the address of the file2 to be null according to the signature 2. The address being null indicates that the instant message server does not save the same file as the file 2. In the subsequent flow, the instant messaging client a is required to upload the file2 to the instant messaging server.
And 5: the instant message server side returns the result that the signature2 does not exist in the instant message client side A.
Step 6: and the instant message client A uploads the file2 according to the result returned in the step 5.
And 7: the instant message server saves the file uploaded in the step 6 and generates a download address fileUrl2 of the file, and in addition, the instant message server stores the contents of the signature2 and the fileUrl2 and the corresponding relation of the two into a database. When another user sends file2 again through the instant messaging client, the instant messaging server can search for file Url2 according to the signature2 uploaded by the instant messaging client because the file2, the file Url2 and the signature2 are already stored, and the client does not need to upload file2 any more.
And 8: the instant messaging service sends the file information (including the most important fileUrl2 in the file information) to user B's instant messaging client (represented using instant messaging client B).
And step 9: and after receiving the file information, the instant message client B returns a message of successful receiving to the instant message server.
Step 9.1: the instant message client B displays the file information to the user B.
Step 10: the instant message server returns fileUrl2 and a result message of successful file transmission to the instant message client A.
Step 11: the instant message client a presents the results to the user a.
In a fifth aspect, the present invention also discloses an electronic device, including: one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the instant message processing method disclosed in the first aspect above.
The invention also discloses a computer readable medium comprising a computer program which, when run on a computer, causes the computer to perform the instant message processing method disclosed in the first aspect above.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus, the electronic device and the computer-readable medium described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules (units).
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a readable medium or on a network, and includes several instructions to enable an electronic device (which may be a personal computer, a server, a mobile terminal, or a network device) to execute the method according to the embodiments of the present application.
The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope disclosed in the present application, and all the technical solutions falling within the scope of the present invention defined by the claims fall within the scope of the present invention.

Claims (10)

1. An instant message processing method, comprising the steps of:
receiving fingerprint information and a destination address of a target file, wherein the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent;
inquiring in stored files according to the fingerprint information, and judging whether the stored files have the same content as the target file;
if so, sending first file information to a destination corresponding to the address information, wherein the first file information comprises a first download address, and the first download address is a download address of a storage file with the same content.
2. The method according to claim 1, wherein when there is no stored file having the same content as the target file among the stored files, the following procedure is performed:
receiving and storing the uploaded target file, and storing fingerprint information of the target file at the same time;
generating a second download address, wherein the second download address is a download address of the stored target file;
and sending second file information to a destination corresponding to the address information, wherein the second file information comprises the second download address.
3. An instant message processing apparatus, comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving fingerprint information and a destination address of a target file, the fingerprint information is identification information which is generated according to the target file and is uniquely corresponding to the target file, and the destination address is address information to which the target file needs to be sent;
the query judging module is used for querying in the stored files according to the fingerprint information and judging whether the stored files have the same content as the target file;
and the first sending module is used for sending first file information to a destination corresponding to the address information when a storage file with the same content as the target file exists, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content.
4. The instant message processing apparatus of claim 3, wherein the apparatus further comprises:
the second receiving module is used for receiving and storing the uploaded target file and storing the fingerprint information of the target file at the same time when the target file does not have a storage file with the same content as the target file;
the generation module is used for generating a second download address, wherein the second download address is the download address of the stored target file;
and the second sending module is used for sending second file information to a destination corresponding to the address information, wherein the second file information comprises the second download address.
5. An instant message processing method, comprising the steps of:
a first instant message client selects a target file which needs to be sent to a target address, generates fingerprint information according to the target file, and sends the fingerprint information and the target address to an instant message server, wherein the destination corresponding to the target address is a second instant message client, and the fingerprint information is identification information uniquely corresponding to the target file;
the instant message server receives the fingerprint information and the destination address, and judges whether the stored file has a stored file with the same content as the target file or not according to the received fingerprint information inquired in the stored file of the instant message server;
if a storage file with the same content as the target file exists in the instant message server, sending first file information to a second instant message client, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content;
after the second instant message client side successfully receives the first file information, the successfully received information is returned to the instant message server side;
and the instant message server side returns the message which is successfully received and the first download address to the first instant message client side.
6. The method according to claim 5, wherein when there is no file stored in the instant messaging service end that is identical to the content of the target file, the following procedure is performed:
the first instant message client uploads the target file to an instant message server;
the instant message server receives and stores the uploaded target file and simultaneously stores the fingerprint information of the target file;
generating a second download address, wherein the second download address is a download address of the stored target file;
sending second file information to a second instant message client, wherein the second file information comprises the second download address;
after the second instant message client side successfully receives the second file information, the successfully received information is returned to the instant message server side;
and the instant message server side returns the message of successful receiving and the second download address to the first instant message client side.
7. An instant message processing system is characterized by comprising a first instant message client, an instant message server and a second instant message client which are in data interaction with each other;
wherein the first instant messaging client comprises:
a selection module for selecting a target file to be sent to a destination address, the destination corresponding to the destination address being a second instant message client,
the fingerprint generation and sending module is used for generating fingerprint information according to the target file and sending the fingerprint information and the destination address to an instant message server, wherein the fingerprint information is identification information uniquely corresponding to the target file;
wherein, the instant message service end comprises:
the first receiving module is used for receiving fingerprint information and a destination address of a target file;
the query judging module is used for querying in the stored files according to the received fingerprint information and judging whether the stored files have the stored files with the same content as the target file;
the first sending module is used for sending first file information to a second instant message client when a storage file with the same content as the target file exists, wherein the first file information comprises a first download address, and the first download address is the download address of the storage file with the same content;
wherein the second instant messaging client comprises:
the third receiving module is used for receiving the first file information;
the first result returning module is configured to return a message of successful receiving to the instant message server after the first file information is successfully received;
and when the instant message server receives the returned information of successful reception, the message of successful reception and the first download address are returned to the first instant message client.
8. The instant message processing system of claim 7 wherein the first instant message client further comprises:
the uploading module is configured to upload the target file to the instant message server when the instant message server does not have the stored file with the same content as the target file;
the instant message service terminal further comprises:
the second receiving module is used for receiving and storing the uploaded target file and storing the fingerprint information of the target file at the same time;
the generation module is used for generating a second download address, wherein the second download address is the download address of the stored target file;
the second sending module is used for sending second file information to a second instant message client, wherein the second file information comprises the second download address;
the second instant messaging client further comprises:
the fourth receiving module is used for receiving the second file information;
the second result returning module is configured to return a message of successful receiving to the instant message server after the second file information is successfully received;
and when the instant message server receives the returned information of successful reception, the message of successful reception and the second download address are returned to the first instant message client.
9. An electronic device, comprising: one or more processors; one or more memories; the one or more memories store one or more computer programs, the one or more computer programs comprising instructions, which when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1 and 2.
10. A computer-readable medium, comprising a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 and 2.
CN202110170222.8A 2021-02-05 2021-02-05 Instant message processing method, device and system and electronic equipment Pending CN112838981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110170222.8A CN112838981A (en) 2021-02-05 2021-02-05 Instant message processing method, device and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110170222.8A CN112838981A (en) 2021-02-05 2021-02-05 Instant message processing method, device and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN112838981A true CN112838981A (en) 2021-05-25

Family

ID=75930943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110170222.8A Pending CN112838981A (en) 2021-02-05 2021-02-05 Instant message processing method, device and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112838981A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010138466A1 (en) * 2009-05-26 2010-12-02 Wabsense, Inc. Systems and methods for efficeint detection of fingerprinted data and information
CN103581230A (en) * 2012-07-26 2014-02-12 深圳市腾讯计算机系统有限公司 File transmission system and method, receiving end and sending end
CN104156376A (en) * 2013-05-15 2014-11-19 腾讯科技(深圳)有限公司 Storage method, device and server for file
CN105357321A (en) * 2015-12-11 2016-02-24 北京元心科技有限公司 File transmission method based on abstract value, terminal, and file server
CN107547352A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Document sending method, apparatus and system
CN108848172A (en) * 2018-06-22 2018-11-20 深圳云之家网络有限公司 A kind of document transmission method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010138466A1 (en) * 2009-05-26 2010-12-02 Wabsense, Inc. Systems and methods for efficeint detection of fingerprinted data and information
CN103581230A (en) * 2012-07-26 2014-02-12 深圳市腾讯计算机系统有限公司 File transmission system and method, receiving end and sending end
CN104156376A (en) * 2013-05-15 2014-11-19 腾讯科技(深圳)有限公司 Storage method, device and server for file
CN105357321A (en) * 2015-12-11 2016-02-24 北京元心科技有限公司 File transmission method based on abstract value, terminal, and file server
CN107547352A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Document sending method, apparatus and system
CN108848172A (en) * 2018-06-22 2018-11-20 深圳云之家网络有限公司 A kind of document transmission method and system

Similar Documents

Publication Publication Date Title
CN1988535B (en) Synchronous method, system for file storage and customer terminal
US9219808B2 (en) Contact information synchronization system and method
US20150227496A1 (en) Method and system for microblog resource sharing
CN107239701B (en) Method and device for identifying malicious website
CN110096664B (en) Distributed text information processing method, device, system, equipment and storage medium
CN104468852A (en) Method, device and system for client to select IP link address
CN111679916B (en) Video recommendation method, target service providing terminal, service calling terminal and system
CN110311855B (en) User message processing method and device, electronic equipment and storage medium
US7543030B2 (en) Peer-to-peer communication for instant messaging between different instant message application types
WO2017185631A1 (en) Data downloading method and device
US20210112025A1 (en) Method and server for processing messages
CN113064918B (en) Enterprise data query method and device, electronic equipment and storage medium
CN109587197B (en) Method, device and system for associating reported data
WO2016037489A1 (en) Method, device and system for monitoring rcs spam messages
CN111147585B (en) Equipment upgrading method, device, storage medium and system
US9306884B2 (en) Computer-based method and system for processing a file request in response to a message received from a user mobile device
CN106487653B (en) Message processing method and server
CN112838981A (en) Instant message processing method, device and system and electronic equipment
CN114390452B (en) Message sending method and related equipment
CN116821215A (en) OPC UA server searching method based on port inquiry
CN102986173B (en) Method for setting message status and converged internet protocol message (CPM) traffic server
CN106803830B (en) Method, device and system for identifying internet access terminal and User Identity Module (UIM) card
US20150065103A1 (en) Device and Method for Enhancing a Call
CN113242307B (en) Service request processing method, device, server and storage medium
CN115460226A (en) Data synchronization management system, method, equipment, medium and product

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: 20210525