CN117914815A - Instant message transmission method, intelligent device, system and storage medium - Google Patents

Instant message transmission method, intelligent device, system and storage medium Download PDF

Info

Publication number
CN117914815A
CN117914815A CN202211271747.1A CN202211271747A CN117914815A CN 117914815 A CN117914815 A CN 117914815A CN 202211271747 A CN202211271747 A CN 202211271747A CN 117914815 A CN117914815 A CN 117914815A
Authority
CN
China
Prior art keywords
message
instant message
instant
transfer file
storage
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
CN202211271747.1A
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.)
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shizhen Information 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 Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202211271747.1A priority Critical patent/CN117914815A/en
Publication of CN117914815A publication Critical patent/CN117914815A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides an instant message transmission method, an instant message communication method, intelligent equipment, a system and a medium. The instant message transmission method comprises the following steps: receiving an instant message body input by a user; responding to the sending operation of the user on the instant message body, if the size of the instant message body exceeds a preset size threshold, converting the instant message body into a message transfer file, and sending and transferring the message transfer file to a storage server; and receiving a storage address of the message transfer file returned by the storage server on the storage server, generating a transfer message according to the storage address of the message transfer file, and transmitting the transfer message to receiving terminal equipment. The method can break through the limit of the communication software or the communication server on the size of the instant message, immediately send the instant message, the size of the instant message is not limited any more, and the data processing difficulty and the message storage pressure of the communication server can be reduced.

Description

Instant message transmission method, intelligent device, system and storage medium
Technical Field
The embodiments of the present disclosure relate to the field of instant messaging technology, and in particular, to an instant messaging method, an intelligent device, a system, and a computer readable storage medium.
Background
Instant messaging (INSTANT MESSAGING, IM), also known as instant messaging, refers to tools that can communicate in real time on-line, so-called on-line chat tools. In broad terms, instant messaging includes communication with all online, such as a web chat room, web conferencing system, etc.; in a narrow sense, instant messaging refers to communication under the control of a set of IM servers.
In the field of instant messaging, in consideration of message processing storage pressure, message transmission efficiency and the like of a communication server, the size of a message body of each instant message is limited, and instant messages exceeding a certain size threshold cannot be immediately transmitted, and communication software is required to divide a long message body into a plurality of short message body segments for transmission, so that the data processing difficulty of the communication software is increased, and the transmission efficiency is slower.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an instant message transmission method, an instant message communication method, an intelligent device, a system, and a computer-readable storage medium. The method can break through the limit of the communication software or the communication server on the size of the instant message, immediately send the instant message, the size of the instant message is not limited any more, and the data processing difficulty of the communication software and the storage pressure of the communication server can be reduced.
According to a first aspect of an embodiment of the present disclosure, there is provided an instant message transmission method applied to a transmitting end device, including the steps of:
Receiving an instant message body input by a user;
Responding to the sending operation of the user on the instant message body, if the size of the instant message body exceeds a preset size threshold, converting the instant message body into a message transfer file, and sending and transferring the message transfer file to a storage server;
And receiving a storage address of the message transfer file returned by the storage server on the storage server, generating a transfer message according to the storage address of the message transfer file, and transmitting the transfer message to receiving terminal equipment.
According to a second aspect of embodiments of the present disclosure, there is provided an instant messaging method including the steps of:
The method comprises the steps that a sending terminal device receives an instant message body input by a user, responds to the sending operation of the user on the instant message body, and converts the instant message body into a message transfer file if the size of the instant message body exceeds a preset size threshold, and sends and transfers the message transfer file to a storage server;
the storage server receives the message transfer file for storage, generates a storage address and returns the storage address to the sending end equipment;
The sending end equipment receives a storage address of the message transfer file returned by the storage server on the storage server, generates a transfer message according to the storage address of the message transfer file, and transmits the transfer message to the communication server;
the communication server receives and forwards the transfer message to the receiving terminal equipment;
The receiving end equipment receives the transfer message, acquires a storage address of the message transfer file on a storage server from the transfer message, and initiates a transfer file downloading request to the storage server based on the storage address;
The storage server receives the transfer file downloading request, acquires a storage address from the transfer file downloading request, searches a corresponding message transfer file according to the storage address and transmits the message transfer file to the receiving end equipment;
the receiving terminal equipment receives the message transfer file issued by the storage server, and acquires the instant message body from the message transfer file.
According to a third aspect of embodiments of the present disclosure, there is provided a smart device comprising at least one processor and at least one memory;
the memory is electrically connected with the processor;
Wherein the memory stores a computer program adapted to be loaded by the processor and to perform the instant messaging method as described in the above embodiments.
According to a fourth aspect of embodiments of the present disclosure, there is provided an instant messaging system comprising: the device comprises a transmitting end device, a receiving end device, a storage server and a communication server which can communicate with each other;
the sending terminal equipment receives an instant message body input by a user, responds to the sending operation of the user on the instant message body, and converts the instant message body into a message transfer file if the size of the instant message body exceeds a preset size threshold, and sends and transfers the message transfer file to a storage server;
the storage server receives the message transfer file storage, then generates a storage address and returns the storage address to the sending end equipment;
The sending terminal equipment receives a storage address of the message transfer file returned by the storage server on the storage server, generates a transfer message according to the storage address of the message transfer file, and transmits the transfer message to the communication server;
the communication server receives and forwards the transfer message to the receiving terminal equipment;
The receiving end equipment receives the transfer message, acquires a storage address of the message transfer file on the storage server from the transfer message, and initiates a transfer file downloading request to the storage server based on the storage address;
The storage server receives the transfer file downloading request, acquires a storage address from the transfer file downloading request, searches a corresponding message transfer file according to the storage address and transmits the message transfer file to the receiving end equipment;
and the receiving terminal equipment receives the message transfer file issued by the storage server and acquires the instant message body from the message transfer file.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the instant message transmission method as described in the above embodiments.
According to the technical scheme, after the size of the instant message body exceeds the preset size threshold, the instant message body is converted into the message transfer file, the message transfer file is uploaded to the storage server for storage, the storage address of the message transfer file is obtained, and the storage address is sent to the receiving terminal device, so that the receiving terminal device can initiate a message transfer file downloading request to the storage server based on the storage address, and the instant message body is obtained from the message transfer file and displayed. According to the instant message transmission method, the instant message body occupying large storage space is forwarded through the storage server, and is not forwarded through the communication server, so that the limit of communication software or the communication server on the size of the instant message can be broken through, the instant message occupying large memory with more contents can be quickly sent, and long messages are not required to be sent after being divided into short messages, and the message processing difficulty and the message storage pressure of the communication server are reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
For a better understanding and implementation, the present disclosure is described in detail below with reference to the drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is an application scenario diagram of an instant message transmission method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of an instant messaging method provided in one embodiment of the present disclosure;
Fig. 3 is a flowchart of step S12 of an instant message transmission method according to an embodiment of the present disclosure;
fig. 4 is a flowchart of step S124 of the instant message transmission method according to one embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an instant message transmission device according to an embodiment of the present disclosure;
FIG. 6 is a flow chart of an instant message receiving method provided by one embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an instant message receiving device according to an embodiment of the present disclosure;
Fig. 8 is a schematic structural diagram of an intelligent device according to an embodiment of the present disclosure;
fig. 9 is a timing diagram of an instant messaging method according to an embodiment of the present disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present disclosure more apparent, the embodiments of the present disclosure will be described in further detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments in this disclosure without inventive faculty, are intended to fall within the scope of this disclosure.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the disclosure as detailed in the accompanying claims.
In the description of the present disclosure, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish similar objects, and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this disclosure will be understood by those of ordinary skill in the art as the case may be. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination". Furthermore, in the description of the present disclosure, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In the existing instant messaging field, the instant message is usually stored and forwarded through the communication servers, and when each communication server simultaneously provides a store-and-forward service for multiple paths of instant messaging lines, the storage pressure of the communication server is very high, and the instant message needs to be matched and forwarded with the corresponding receiving end equipment in time, so that the data processing pressure of the communication server is also very high. Therefore, in order to reduce the storage pressure and the data processing pressure of the communication server, the size of the instant message is generally limited, and if the storage space occupied by the instant message is larger, the instant message is divided into a plurality of instant short messages with shorter length and smaller storage space, and the instant short messages are sent for multiple times.
In the instant message transmission method of the scheme, a storage server is additionally arranged in the instant message transmission system, and the storage server is different from an instant communication server in the traditional related technology. The instant messaging server needs to store the instant message to be transmitted, and actively searches the receiving end equipment according to the identification of the receiving end equipment so as to forward the instant message to the corresponding receiving end equipment. The storage server can provide permanent message transfer file storage service for a plurality of sending end devices, and only searches for the corresponding message transfer file to issue when the receiving end device initiates a transfer file downloading request, but does not actively search for the message transfer file issued by the receiving end device, so that the data processing capacity is relatively small.
The storage server is specially used for storing the instant message body exceeding the preset size threshold and issuing the instant message body when the receiving end equipment initiates the downloading request, so that the instant message body with longer length can be stored without a communication server, and the problems of large storage pressure and large data processing pressure of the communication server caused by longer instant message body in the traditional related technology are solved.
The instant messaging method of the present disclosure is described in detail below in connection with various embodiments.
The application environments of the instant message transmission method and the instant message receiving method shown in the embodiments of the present disclosure are instant message transmission systems.
Referring to fig. 1, fig. 1 is an application scenario diagram of an instant message transmission method according to an embodiment of the present disclosure.
The instant message transmission system comprises a transmitting end device 100, a receiving end device 200, a storage server 300 and a communication server 400 which can communicate with each other, wherein the communication mode between the intelligent devices in the instant message transmission system can be wire communication or wireless network communication, and in order to improve the communication convenience and communication efficiency of the instant message transmission system, the communication between the intelligent devices can be realized through a wide area network or through a mobile communication network, only the corresponding communication module is required to be installed on each intelligent device of the instant message transmission system, and the communication module can be an Ethernet card, a 4G communication module or a 5G communication module.
Alternatively, the instant messaging system may be a collaborative system for editing or using collaboration by multiple persons, for example, multiple persons editing, calling, or modifying a document simultaneously through different intelligent devices, respectively.
The transmitting end device 100 and the receiving end device 200 may be intelligent devices such as a computer, a smart phone, a tablet computer, an interactive tablet, a conference tablet, and the like, which is not limited in this embodiment. The transmitting end device 100 and the receiving end device 200 are both provided with instant messaging software or can run web page instant messaging windows. In the instant messaging system, the instant messages are mutually transmitted, so the sending end device 100 may be the receiving end device 200, and the receiving end device 200 may also be the sending end device 100 at different moments, which does not make a fixed limitation of the device in this embodiment.
The storage server 300 is used as a transfer service device between each sender device 100 and each receiver device 200, and in order to meet the transfer requirements of various instant messages, the storage server 300 needs to be a computer service device with better processor performance and stronger storage capability, and the specific form is not limited in the disclosure.
The communication server 400 is a server capable of providing instant message forwarding for instant messaging software, and also serves as a transit service device for each of the sender device 100 and the receiver device 200, the communication server 400 limits the size of the instant message transmitted each time by the instant messaging software or the instant messaging window installed on the sender device 100, and the instant message above the preset size threshold must not be directly transmitted through the communication server 400, but needs to be forwarded through the storage server 300.
The instant message transmission method of the embodiment of the disclosure is applied to an instant message transmission system, and is particularly applied to a transmitting end device 100 capable of transmitting instant messages, wherein instant communication software or a web page version instant communication window capable of running is installed on the transmitting end device 100, and the method can be implemented by the execution of the instant communication software or the execution of the web page version instant communication window or by a plug-in program matched with the instant communication software.
According to a first aspect of the embodiments of the present disclosure, an instant message transmission method is provided, which is applied to a sender device 100, where the sender device 100 may implement the instant message transmission method of the present disclosure in a pure software manner, or may implement the instant message transmission method in a combination of software and hardware manner. The sender device 100 may run an application for performing the instant messaging method, which may be in the form of an adapted electronic device, for example an APP application, and in some examples may also be in the form of a system plug-in, a web plug-in, etc.
Referring to fig. 2, fig. 2 is a flowchart of an instant message transmission method according to an embodiment of the disclosure.
The instant message transmission method, applied to the sender device 100, comprises the following steps:
S11: an instant message body entered by a user is received.
In this embodiment, the instant messaging software or web page version of the instant messaging window is run on the sender device 100, receives the instant message body input by the user, and then determines the size of the instant message body to determine whether the instant message body can be directly forwarded by the communication server 400.
The instant message body may be an instant message body input by a user through instant messaging software or a web page version instant messaging window. The message type of the instant message body may be plain text information, image files, video files, and other files to be transmitted. The operation type of the instant message body may include operations such as insertion, deletion, modification, or remarking, which is not limited in this embodiment.
S12: responding to the sending operation of the user to the instant message body, if the size of the instant message body exceeds the preset size threshold, converting the instant message body into a message transfer file, and sending the message transfer file to a storage server.
In the instant messaging field, in consideration of the message processing storage pressure of the messaging server 400, the message transmission efficiency, and the like, the size of the message body of each instant message to be transmitted is limited, and the instant message exceeding a certain size threshold cannot be immediately sent. After the user inputs the instant message body in the instant messaging software window or the web page version instant messaging window, the user needs to click the sending control or click the sending button to send the instant message body to the receiving end device 200, so that after responding to the sending operation of the user on the instant message body, the size of the instant message body is judged.
In this embodiment, the preset size threshold may be a size limit of the instant messaging server 400 on the instant message, or may be a size limit of the instant messaging software on the instant message, or may be a size threshold set by the instant messaging method according to the embodiment based on the messaging software or the transmission capability of the messaging server 400.
In response to a user's sending operation on the instant message body, if the size of the instant message body does not exceed the preset size threshold, the sending end device 100 may send the instant message body to the receiving end device 200 through the communication server 400, and after the receiving end device 200 receives the instant message body, a corresponding operation may be performed, for example, inserting and displaying an instant message text into a document being edited.
The message dump file is a storage file obtained by the sender device 100 according to the instant message body conversion, and the message dump file may be downloaded from a storage server by the receiver device 200, and processed to obtain the instant message body.
Referring to fig. 3, fig. 3 is a flowchart of step S12 of the instant message transmission method according to the embodiment of the disclosure.
In response to the user' S sending operation of the instant message body, if it is determined that the size of the instant message body exceeds the preset size threshold, step S12 may be implemented by:
S121: and responding to the sending operation of the user on the instant message body, and if the size of the instant message body exceeds a preset size threshold, converting the instant message body into a plain text document.
And responding to the sending operation of the user on the instant message body, acquiring the content length of the instant message body, calculating the size of the instant message body in real time, and converting the instant message body into a plain text document if the size of the instant message body exceeds a preset size threshold.
In the field of computer storage, any data is stored based on binary data, and the type of the instant message body can be plain text information, an image file or a video file, if the instant message body is an image or a video file or a file in other formats, the instant message body needs to be converted into a binary media stream in a plain text form. The method of converting the image file or the video file into the binary media stream in the form of plain text is not limited.
S122: the instant message body is analyzed to determine a message operation type, and a message operation description is generated according to the message operation type, wherein the message operation type comprises insertion, deletion, modification or remarks.
In this embodiment, the message operation type may be determined based on the current application scenario of the instant message transmission method, for example, when the current application scenario is a document editing by collaboration of multiple people, and the editing type of the document includes insertion, deletion, modification or remark, then the message operation type may also be insertion, deletion, modification or remark. When the user inputs text information in a blank document, the message operation type is insert, and the latest document after text information is inserted can be displayed on the receiving end device 200.
S123: the message operation description of the plain text document and the instant message body is synthesized into a message dump file.
The message operation description of the plain text document and the instant message body is combined into a message dump file, so that the receiving end device 200 can perform corresponding operation on the plain text document according to the message operation description after downloading the message dump file from the storage server 300.
In an alternative embodiment, if the receiving end device 200 establishes communication with multiple sending end devices 100 simultaneously, in order to distinguish which sending end device 100 sent the instant message, the plain text document, the message operation description of the instant message body, and the sending end device 100 identification composite message dump file may be used.
In an alternative embodiment, to ensure the security of instant messaging, the plain text document, the message operation description of the instant message body, and the sender device 100 identification composite message dump file may also be based on a preset encryption protocol. Accordingly, after the receiving end device 200 downloads the message transfer file, the message transfer file needs to be parsed based on the same preset encryption protocol.
S124: and sending the message transfer file to a storage server.
The message transfer file is transmitted to the storage server 300 so that the storage server 300 stores the message transfer file and returns an address for storing the message transfer file to the transmitting-end device 100.
In an alternative embodiment, the sender device 100 may initiate an Ajax request to the storage server 300 to attempt to establish a communication link with the storage server 300 via the Ajax request, and send the message dump file to the storage server 300.
Ajax: namely asynchronous JavaScript and XML. Ajax is a technique for creating fast dynamic web pages. By exchanging a small amount of data with the server in the background, ajax can enable asynchronous updates of the web page, which means that some part of the web page can be updated without reloading the entire web page. Whereas a conventional web page (without Ajax) would have to reload the entire web page if the content needs to be updated.
Referring to fig. 4, fig. 4 is a flowchart of step S124 of the instant message transmission method according to the embodiment of the disclosure.
Step S124 may be implemented by the following steps:
S1241: creating an XML Http Request object based on the message transfer file;
s1242: creating an Http Request for the XML Http Request object through an open function in the XML Http Request object;
S1243: setting a function for responding to the Http request state change, and setting a statement for acquiring the returned data of the storage server;
s1244: the Http request is sent to a storage server.
S13: and receiving a storage address of the message transfer file returned by the storage server on the storage server, generating a transfer message according to the storage address of the message transfer file, and transmitting the transfer message to the receiving end equipment.
The storage address of the message transfer file on the storage server 300 is notified to the receiving end device 200, so that the receiving end can initiate a message transfer file downloading request to the storage server 300 according to the storage address, further download the message transfer file from the storage server 300, and analyze and obtain the instant message body.
In an alternative embodiment, the transfer message may be transmitted to the sink device 200 based on the Websocket protocol.
WebSocket is a protocol that performs full duplex communication over a single TCP connection. The WebSocket communication protocol was set by IETF as standard RFC 6455 in 2011 and is complemented by RFC 7936. WebSocket API is also standardized by W3C.
In an alternative embodiment, storage server 300 is a web server; based on the Http request, the storage address is a storage link of the message dump file on the web server.
In an alternative embodiment, if the receiving end device 200 establishes communication with multiple sending end devices 100 at the same time, in order to distinguish the source of the instant message body, when generating the transfer information according to the storage address of the message transfer file, the sending end device 100 identifier may be added, that is, the transfer information may be generated according to the storage address of the message transfer file and the identification number of the sending end device 100.
According to the instant message transmission method, after the size of the instant message body exceeds the preset size threshold, the instant message body is converted into the message transfer file, the message transfer file is sent to the storage server 300 for storage, then the storage server 300 obtains the storage address, and the storage address is sent to the receiving end device 200, so that the receiving end device 200 can initiate a message transfer file downloading request to the storage server 300 based on the storage address, and further the instant message body is obtained from the message transfer file and displayed.
The instant message transmission method does not transmit the instant message body with larger content through the communication server 400, but transmits the instant message body through the storage server 300, thereby breaking through the limitation of the communication software or the communication server on the size of the instant message, rapidly transmitting the instant message with more content, ensuring that the size of the instant message is not limited any more, and reducing the message processing difficulty and the message storage pressure of the communication server 400 because long messages are not required to be transmitted after being divided into short messages.
According to a second aspect of the embodiments of the present disclosure, there is provided an instant message transmission apparatus, which may be used to perform the content of the instant message transmission method according to the corresponding embodiments of the present disclosure, and has corresponding functions and advantages. For details not disclosed in the embodiments of the instant messaging device of the present disclosure, please refer to the content of the instant messaging method of the present disclosure.
Fig. 5 is a schematic structural diagram of an instant message transmission device according to an embodiment of the disclosure.
The instant message transmission apparatus 500 includes:
a first receiving module 501, configured to receive an instant message body input by a user;
The transfer module 502 is configured to respond to a sending operation of the user on the instant message body, and if the size of the instant message body exceeds a preset size threshold, convert the instant message body into a message transfer file, send the message transfer file, and transfer the message transfer file to the storage server;
the message transmission module 503 is configured to receive a storage address of the message dump file returned by the storage server on the storage server, generate a relay message according to the storage address of the message dump file, and transmit the relay message to the receiving end device.
According to the embodiment of the disclosure, after the size of the instant message body exceeds the preset size threshold, the instant message transmission device converts the instant message body into the message transfer file, sends the message transfer file to the storage server for storage, acquires the storage address through the storage server, and sends the storage address to the receiving end device, so that the receiving end device can initiate a message transfer file downloading request to the storage server based on the storage address, and further acquires the instant message body from the message transfer file and displays the instant message body.
According to the instant message transmission method, the instant message body occupying large storage space is forwarded through the storage server, and is not forwarded through the communication server, so that the limit of communication software or the communication server on the size of the instant message can be broken through, the instant message occupying large memory with more contents can be quickly sent, and long messages are not required to be sent after being divided into short messages, and the message processing difficulty and the message storage pressure of the communication server are reduced.
It should be noted that, in the embodiment of the instant message transmission apparatus, each module included is only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present disclosure.
According to a third aspect of embodiments of the present disclosure, an instant message receiving method is provided.
The instant message receiving method provided by the embodiment of the present disclosure is applied to the receiving end device 200, where the receiving end device 200 may implement the instant message receiving method of the present disclosure in a pure software manner, and may also implement the instant message receiving method in a manner of combining software and hardware. The receiving end device 200 may run an application for performing the instant message receiving method, which may be in the form of an adapted electronic device, for example an APP application, and in some examples may also be in the form of a system plug-in, a web plug-in, etc.
Referring to fig. 6, a flowchart of an instant message receiving method according to an embodiment of the present disclosure is shown.
The instant message receiving method is applied to receiving end equipment and comprises the following steps:
S21: and receiving the transfer message, and acquiring the storage address of the message transfer file on the storage server from the transfer message.
In this embodiment, the relay message is generated according to the storage address of the message transfer file, so that the receiving end device 200 can obtain the storage address of the message transfer file from the relay message.
S22: and initiating a dump file downloading request to a storage server based on the storage address.
In this embodiment, a file transfer downloading request may be initiated to the storage server 300 based on the Ajax request and based on the storage address, so as to download the message transfer file from the storage server 300, thereby obtaining the instant message body.
S23: and receiving the message transfer file issued by the storage server, and acquiring the instant message body from the message transfer file.
In an alternative embodiment, if the message transfer file includes an instant message body and a message operation description for the instant message body, the instant message receiving method further includes:
and carrying out corresponding operation on the instant message body based on the message operation description, and obtaining and displaying the latest document.
The instant message receiving method is applied to receiving end equipment, after receiving end equipment 200 receives transfer information, the receiving end equipment obtains a storage address of an instant message body from the transfer information, and then initiates a message transfer file downloading request to a storage server 300 based on the storage address, and further obtains and displays the instant message body from the message transfer file.
The instant message receiving method receives the instant message body through the storage server 300, thereby breaking through the limit of the communication software on the size of the instant message, rapidly sending the instant message with more contents and larger occupied memory, and sending the instant message after the long message is divided into short messages, thereby reducing the message processing difficulty and the message storage pressure of the communication server 400.
According to a fourth aspect of embodiments of the present disclosure, there is provided an instant message receiving apparatus.
Fig. 7 is a schematic structural diagram of an instant message receiving device according to an embodiment of the disclosure.
An instant message receiving apparatus 700, comprising:
A second receiving module 701, configured to receive a relay message, and obtain a storage address of a message transfer file on a storage server from the relay message;
A downloading module 702, configured to initiate a download request of the dump file to the storage server based on a storage address of the message dump file on the storage server;
The obtaining module 703 is configured to receive a message transfer file sent by the storage server, and obtain an instant message body from the message transfer file.
The instant message receiving device is applied to a receiving end device, after receiving the transfer information, the receiving end device 200 obtains the storage address of the instant message body from the transfer information, and then initiates a message transfer file downloading request to the storage server 300 based on the storage address, and further obtains and displays the instant message body from the message transfer file. The instant message receiving method receives the instant message body through the storage server 300, thereby breaking through the limit of the communication software on the size of the instant message, rapidly sending the instant message with more contents and larger occupied memory, and sending the instant message after the long message is divided into short messages, thereby reducing the message processing difficulty and the message storage pressure of the communication server 400.
It should be noted that, in the embodiment of the instant message receiving apparatus, each module included is only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a smart device. The smart device includes at least one processor and at least one memory; the memory is electrically connected with the processor;
wherein the memory stores a computer program adapted to be loaded by the processor and to perform the instant messaging method of the above embodiments.
The smart device may be any smart terminal with instant message processing and transmission capabilities, such as a computer, smart phone, tablet, interactive tablet, smart blackboard, or conference tablet, among others.
Fig. 8 is a schematic structural diagram of an intelligent device according to an embodiment of the disclosure.
The smart device includes at least one processor 110, at least one network interface 120, a user interface 130, a memory 140, and at least one communication bus 150.
Wherein the communication bus 150 is used to enable connected communication between these components.
The user interface 130 may include a standard wired interface, a wireless interface, among others.
The network interface 120 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi interface), among others.
Wherein the processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various portions of the overall smart device 100, performing various functions of the smart device 100 and processing data by executing or executing instructions, programs, code sets, or instruction sets stored in the processor 110, and invoking data stored in the memory 140. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal processing (DIGITAL SIGNAL processing, DSP), field-programmable gate array (field-programmable GATE ARRAY, FPGA), programmable logic array (Programmable logic arrays, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented by a single chip.
The memory 140 may include a random access memory (Random Access Memory, RAM) or a read-only memory (read-only memory). Optionally, the memory 140 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 140 may also optionally be at least one storage device located remotely from the aforementioned processor 110. As shown in fig. 8, an operating system, a network communication module, a user interface module, and an operating application of the smart device 100 may be included in the memory 140, which is one type of computer storage medium.
In the smart device shown in fig. 8, the user interface 130 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 110 may be used to invoke the operating application of the smart device 100 stored in the memory 140 and perform the relevant operations in the instant messaging method or the instant message receiving method of the above-described embodiments.
The intelligent device can be used for executing the content of the instant message transmission method or the instant message receiving method according to the corresponding embodiment of the disclosure, and has corresponding functions and beneficial effects.
According to a sixth aspect of embodiments of the present disclosure, an instant messaging system is provided.
As shown in fig. 1, the instant messaging system includes: a transmitting-end device 100, a receiving-end device 200, a storage server 300, and a communication server 400 that can communicate with each other.
As shown in fig. 9, which is a timing diagram of instant messaging as indicated by an alternative embodiment of the present disclosure.
The transmitting terminal device 100 receives an instant message body input by a user, and determines the size of the instant message body in response to a transmitting operation of the user on the instant message body; if the size of the instant message body exceeds the preset size threshold, converting the instant message body into a message transfer file, and sending and transferring the message transfer file to the receiving end device 200 of the storage server 300; if the size of the instant message body does not exceed the preset size threshold, the instant message body is sent through the communication server;
The storage server 300 receives the message transfer file storage, and then generates a storage address to return to the sender device 100;
the transmitting end device 100 receives the storage address of the message transfer file returned by the storage server 300 on the storage server 300, generates a transfer message according to the storage address of the message transfer file, and transmits the transfer message to the communication server 400;
The communication server 400 receives and forwards the transfer message to the receiving end device 200;
The receiving end device 200 receives the transfer message, acquires the storage address of the message transfer file on the storage server 300 from the transfer message, and initiates a transfer file downloading request to the storage server 300 based on the storage address;
The storage server 300 receives the download request of the transfer file, acquires the storage address from the download request of the transfer file, searches the corresponding message transfer file according to the storage address, and transmits the message transfer file to the receiving end device 200;
the receiving end device 200 receives the message transfer file issued by the storage server 300, and obtains the instant message body from the message transfer file.
According to the technical scheme, after receiving the instant message body input by the user, the sending end device judges the size of the instant message body, if the size of the instant message body exceeds the preset size threshold, the sending end device converts the instant message body into a message transfer file, uploads the message transfer file to the storage server for storage, acquires the storage address of the message transfer file and sends the storage address to the receiving end device, so that the receiving end device can initiate a message transfer file downloading request to the storage server based on the storage address, acquire the instant message body from the message transfer file, and display the instant message body after corresponding processing.
According to the instant message transmission method, the instant message body occupying large storage space is forwarded through the storage server, and is not forwarded through the communication server, so that the limit of communication software or the communication server on the size of the instant message can be broken through, the instant message with more contents occupying large memory can be quickly sent, the size of the instant message body is not limited any more, and long messages are not required to be sent after being divided into short messages, so that the message processing difficulty and the message storage pressure of the communication server are reduced.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an instant messaging method implemented by the instant messaging system of the above embodiments. The method comprises the following steps:
The method comprises the steps that a sending terminal device receives an instant message body input by a user, responds to the sending operation of the user on the instant message body, and converts the instant message body into a message transfer file if the size of the instant message body exceeds a preset size threshold, and sends and transfers the message transfer file to a storage server;
the storage server receives the message transfer file for storage, generates a storage address and returns the storage address to the sending end equipment;
The sending end equipment receives a storage address of the message transfer file returned by the storage server on the storage server, generates a transfer message according to the storage address of the message transfer file, and transmits the transfer message to the communication server;
the communication server receives and forwards the transfer message to the receiving terminal equipment;
The receiving end equipment receives the transfer message, acquires a storage address of the message transfer file on a storage server from the transfer message, and initiates a transfer file downloading request to the storage server based on the storage address;
The storage server receives the transfer file downloading request, acquires a storage address from the transfer file downloading request, searches a corresponding message transfer file according to the storage address and transmits the message transfer file to the receiving end equipment;
the receiving terminal equipment receives the message transfer file issued by the storage server, and acquires the instant message body from the message transfer file.
Optionally, if the message transfer file includes an instant message body and a message operation description for the instant message body, the instant message communication method further includes:
and the receiving end equipment correspondingly operates the instant message body based on the message operation description, and obtains and displays the latest document.
According to the instant message communication method, the instant message body with larger occupied memory is forwarded through the storage server, and is not forwarded through the communication server, so that the limit of communication software or the communication server on the size of the instant message can be broken through, the instant message with more occupied memory can be quickly sent, the size of the instant message body is not limited any more, and long messages are not required to be sent after being divided into short messages, so that the message processing difficulty and the message storage pressure of the communication server are reduced.
According to an eighth aspect of embodiments of the present disclosure, there is provided a storage medium containing computer executable instructions which, when executed by a computer processor, are adapted to carry out the relevant operations in the instant messaging method provided by any of the embodiments of the present disclosure, and having corresponding functions and benefits.
Where computer readable media includes both permanent and non-permanent, removable and non-removable media, information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Note that the above is only a preferred embodiment of the present disclosure and the technical principle applied. Those skilled in the art will appreciate that the present disclosure is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions can be made by those skilled in the art without departing from the scope of the disclosure. Therefore, while the present disclosure has been described in connection with the above embodiments, the present disclosure is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present disclosure, the scope of which is determined by the scope of the appended claims.

Claims (10)

1. An instant message transmission method applied to a sender device, comprising the following steps:
Receiving an instant message body input by a user;
Responding to the sending operation of a user on the instant message body, if the size of the instant message body exceeds a preset size threshold, converting the instant message body into a message transfer file, and sending and transferring the message transfer file to a storage server, wherein the message transfer file is a storage file obtained by a sending end device according to the instant message body conversion, and the message transfer file can be downloaded from the storage server by a receiving end device and is processed to obtain the instant message body;
And receiving a storage address of the message transfer file returned by the storage server on the storage server, generating a transfer message according to the storage address of the message transfer file, and transmitting the transfer message to receiving terminal equipment.
2. The method for transmitting instant messages according to claim 1, wherein said responding to the user's sending operation of the instant message body, if the size of the instant message body exceeds the preset size threshold, converting the instant message body into a message transfer file, and sending and transferring the message transfer file to a storage server, comprises:
responding to the sending operation of the user on the instant message body, and if the size of the instant message body exceeds a preset size threshold, converting the instant message body into a plain text document;
analyzing the instant message body to determine a message operation type, and generating a message operation description according to the message operation type, wherein the message operation type comprises insertion, deletion, modification or remarks;
Synthesizing the message operation instruction of the pure text document and the instant message body into a message dump file;
and sending the message transfer file to a storage server.
3. The method of instant messaging according to claim 2, wherein said sending the message dump file to a storage server comprises:
Creating an XML Http Request object based on the message transfer file;
Creating an Http Request for the XML Http Request object through an open function in the XML Http Request object;
setting a function responding to the Http request state change, and setting a statement for acquiring the returned data of the storage server;
And sending the Http request to the storage server.
4. The instant message transmission method of claim 3, wherein the storage server is a web server;
Based on the Http request, the storage address is a storage link of the message dump file on the web server.
5. The instant messaging method of claim 1, wherein the instant message body comprises one or more of the following message types:
plain text information, image files, or video files.
6. An instant messaging method comprising the steps of:
The method comprises the steps that a sending terminal device receives an instant message body input by a user, responds to the sending operation of the user on the instant message body, and converts the instant message body into a message transfer file if the size of the instant message body exceeds a preset size threshold, and sends and transfers the message transfer file to a storage server;
the storage server receives the message transfer file for storage, generates a storage address and returns the storage address to the sending end equipment;
The sending end equipment receives a storage address of the message transfer file returned by the storage server on the storage server, generates a transfer message according to the storage address of the message transfer file, and transmits the transfer message to the communication server;
the communication server receives and forwards the transfer message to the receiving terminal equipment;
The receiving end equipment receives the transfer message, acquires a storage address of the message transfer file on a storage server from the transfer message, and initiates a transfer file downloading request to the storage server based on the storage address;
The storage server receives the transfer file downloading request, acquires a storage address from the transfer file downloading request, searches a corresponding message transfer file according to the storage address and transmits the message transfer file to the receiving end equipment;
the receiving terminal equipment receives the message transfer file issued by the storage server, and acquires the instant message body from the message transfer file.
7. The method of claim 6, wherein if the message transfer file includes an instant message body and a message operation description for the instant message body,
The instant message communication method further comprises the following steps:
and the receiving end equipment correspondingly operates the instant message body based on the message operation description, and obtains and displays the latest document.
8. A smart device comprising at least one processor and at least one memory;
the memory is electrically connected with the processor;
wherein the memory stores a computer program adapted to be loaded by the processor and to perform the instant messaging method of any of claims 1 to 5.
9. An instant messaging system, comprising: the device comprises a transmitting end device, a receiving end device, a storage server and a communication server which can communicate with each other;
the sending terminal equipment receives an instant message body input by a user, responds to the sending operation of the user on the instant message body, and converts the instant message body into a message transfer file if the size of the instant message body exceeds a preset size threshold, and sends and transfers the message transfer file to a storage server;
the storage server receives the message transfer file storage, then generates a storage address and returns the storage address to the sending end equipment;
The sending terminal equipment receives a storage address of the message transfer file returned by the storage server on the storage server, generates a transfer message according to the storage address of the message transfer file, and transmits the transfer message to the communication server;
the communication server receives and forwards the transfer message to the receiving terminal equipment;
The receiving end equipment receives the transfer message, acquires a storage address of the message transfer file on the storage server from the transfer message, and initiates a transfer file downloading request to the storage server based on the storage address;
The storage server receives the transfer file downloading request, acquires a storage address from the transfer file downloading request, searches a corresponding message transfer file according to the storage address and transmits the message transfer file to the receiving end equipment;
and the receiving terminal equipment receives the message transfer file issued by the storage server and acquires the instant message body from the message transfer file.
10. A computer readable storage medium having stored thereon a computer program which when executed by a processor implements the instant message transmission method of any of claims 1 to 5.
CN202211271747.1A 2022-10-18 2022-10-18 Instant message transmission method, intelligent device, system and storage medium Pending CN117914815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211271747.1A CN117914815A (en) 2022-10-18 2022-10-18 Instant message transmission method, intelligent device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211271747.1A CN117914815A (en) 2022-10-18 2022-10-18 Instant message transmission method, intelligent device, system and storage medium

Publications (1)

Publication Number Publication Date
CN117914815A true CN117914815A (en) 2024-04-19

Family

ID=90693222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211271747.1A Pending CN117914815A (en) 2022-10-18 2022-10-18 Instant message transmission method, intelligent device, system and storage medium

Country Status (1)

Country Link
CN (1) CN117914815A (en)

Similar Documents

Publication Publication Date Title
JP6283132B2 (en) Mobile device, communication method and recording medium
US20020138653A1 (en) Workstation system, computer, data transfer method, data editing method, computer program generation method, computer program and storage medium
EP2025139A1 (en) Multi-media messaging system for mobile telephone
CN108540515B (en) Data processing method and server
JPH03238961A (en) Network system
US20160277460A1 (en) Method and apparatus for initiating network conference
US7120573B2 (en) Message processing for handling unsupported character codes
US11657214B2 (en) Message input and display method and apparatus, electronic device and readable storage medium
CN105207886A (en) Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system
CN112073307A (en) Mail processing method and device, electronic equipment and computer readable medium
CN103491162A (en) Method and system for sharing information based on mobile Internet
CN103136042A (en) Method and device for processing information
CN109766315B (en) File display method and terminal, computer storage medium and computer equipment
KR20130065777A (en) Apparatus and method for sharing web contents using inspector script
JP4866422B2 (en) Peer-to-peer communication system
CN109479026B (en) Methods, systems, and computer program products for selectively modifying and sending messaging data
US8983850B2 (en) Translation system and method for multiple instant message networks
CN117914815A (en) Instant message transmission method, intelligent device, system and storage medium
KR100732968B1 (en) Method for transmitting message by bluetooth transmission between a mobile phone and a PC
CN110071925B (en) Data transmission method and corresponding server and computer readable storage medium
CN111404977B (en) Document remote demonstration and viewing method and terminal equipment
CN112653747A (en) Communication method, system and storage medium based on B/S architecture
US8407726B2 (en) Collaboration in low bandwidth applications
US20060135129A1 (en) System and method for transmitting MIDlet data using SMS
CN113873044B (en) Data transmission method, system, equipment and storage medium

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