CN111131000A - Information transmission method, device, server and terminal - Google Patents

Information transmission method, device, server and terminal Download PDF

Info

Publication number
CN111131000A
CN111131000A CN201911350157.6A CN201911350157A CN111131000A CN 111131000 A CN111131000 A CN 111131000A CN 201911350157 A CN201911350157 A CN 201911350157A CN 111131000 A CN111131000 A CN 111131000A
Authority
CN
China
Prior art keywords
information
format
text information
target file
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911350157.6A
Other languages
Chinese (zh)
Other versions
CN111131000B (en
Inventor
刘硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Reach Best Technology Co Ltd
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Reach Best 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 Reach Best Technology Co Ltd filed Critical Reach Best Technology Co Ltd
Priority to CN201911350157.6A priority Critical patent/CN111131000B/en
Publication of CN111131000A publication Critical patent/CN111131000A/en
Application granted granted Critical
Publication of CN111131000B publication Critical patent/CN111131000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]
    • 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/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information transmission method, an information transmission device, a server and a terminal, wherein the method comprises the following steps: receiving character information and format indication information of the character information sent by a user terminal, wherein the format indication information is used for indicating the format of the character information; generating a target file comprising the text information according to the format indication information, wherein the type of the target file is matched with the format of the text information; and sending the target file to a target terminal for information interaction with the user terminal so that the target terminal displays the character information in the type of the target file. According to the format indication information of the information sent by the user terminal, the target file of the type which comprises the information sent by the user terminal and is matched with the format of the information sent by the user terminal is generated, and the target file is sent to the target terminal which is in information interaction with the user terminal, so that the text information can be displayed on the target terminal in the type of the target file, and the convenience of reading the text information by a target user is improved.

Description

Information transmission method, device, server and terminal
Technical Field
The disclosure relates to the field of computers, in particular to an information transmission method, an information transmission device, a server and a terminal.
Background
Information interaction between users through applications such as Instant Messaging (Instant Messaging) is one of the most common ways of communication. Under the condition of sending the text information in the preset format, such as codes written in a certain computer language, between terminals of users, at present, the text information in the preset format can only be sent in a plain text mode, and the target terminal of a target user who performs information interaction with the user terminal can only display the text information in the preset format in the plain text mode, so that the target user is inconvenient to read the text information in the preset format.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides an information transmission method, apparatus, server, and terminal.
According to a first aspect of the embodiments of the present disclosure, there is provided an information transmission method, including:
receiving text information sent by a user terminal and format indication information of the text information, wherein the format indication information is used for indicating the format of the text information;
generating a target file comprising the text information according to the format indication information, wherein the type of the target file is matched with the format of the text information;
and sending the target file to a target terminal for information interaction with the user terminal so that the target terminal displays the text information according to the type of the target file.
In some embodiments, the generating a target file including the text information according to the format indication information includes:
and generating a file by the text information, and adding an extension matched with the format of the text information to the file to generate a target file.
In some embodiments, after the generating the target file including the text information according to the format indication information, the method further includes:
and storing the target file, acquiring the identification information of the target file, and packaging the identification information of the target file into a session message, wherein the session message comprises the file name of the target file and a file icon matched with the type of the target file.
In some embodiments, the sending the target file to a target terminal performing information interaction with the user terminal, so that the target terminal displays the text information in a type of the target file, includes:
and sending the conversation message to a target terminal for information interaction with the user terminal, so that the target terminal acquires the target file according to the identification information in the conversation message and displays the text information according to the type of the target file.
According to a second aspect of the embodiments of the present disclosure, there is provided an information transmission method, including:
detecting whether the format of the text information input by the user is a preset format or not;
when detecting that the format of the text information input by the user is a preset format and the user performs information sending indication operation, generating format indication information of the text information, wherein the format indication information of the text information is used for indicating the format of the text information;
and sending the text information input by the user and the format indication information of the text information to a server so that the server generates a target file comprising the text information according to the format indication information and sends the target file to a target terminal for information interaction with the user terminal, wherein the type of the target file is matched with the format of the text information.
In some embodiments, detecting whether the format of the text information input by the user is a preset format includes:
and detecting whether the format of the text information is a preset format or not in response to the fact that the number of the characters included in the text information is larger than a number threshold.
According to a third aspect of the embodiments of the present disclosure, there is provided an information transmission apparatus including:
the information receiving module is configured to receive text information sent by a user terminal and format indication information of the text information, wherein the format indication information is used for indicating the format of the text information;
the file generation module is configured to generate a target file comprising the text information according to the format indication information, wherein the type of the target file is matched with the format of the text information;
and the file sending module is configured to send the target file to a target terminal performing information interaction with the user terminal so that the target terminal displays the text information according to the type of the target file.
In some embodiments, the file generation module comprises:
and the target file generation submodule is configured to generate a file from the text information, and add an extension matched with the format of the text information to the file so as to generate a target file.
In some embodiments, the information transmission apparatus further comprises:
and the session message generation module is configured to store the target file and acquire identification information of the target file after generating the target file including the text information according to the format indication information, and package the identification information of the target file into a session message, wherein the session message includes a file name of the target file and a file icon matched with the type of the target file.
In some embodiments, the file sending module comprises:
and the trigger sending submodule is configured to send the session message to a target terminal performing information interaction with the user terminal, so that the target terminal acquires the target file according to the identification information in the session message and displays the text information according to the type of the target file.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information transmission apparatus including:
the format detection module is configured to detect whether the format of the text information input by the user is a preset format or not;
the information generating module is configured to generate format indication information of the text information when the format of the text information is detected to be a preset format and the user performs information sending indication operation, wherein the format indication information of the text information is used for indicating the format of the text information;
the information sending module is configured to send the text information and the format indication information of the text information to a server, so that the server generates a target file comprising the text information according to the format indication information and sends the target file to a target terminal which performs information interaction with the user terminal, wherein the type of the target file is matched with the format of the text information.
In some embodiments, the format detection module comprises:
the trigger detection submodule is configured to detect whether the format of the text information is a preset format or not in response to the fact that the number of the characters included in the text information is larger than a number threshold.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the format indication information of the information sent by the user terminal, the target file of the type which comprises the information sent by the user terminal and is matched with the format of the information sent by the user terminal is generated, and the target file is sent to the target terminal which is in information interaction with the user terminal, so that the text information can be displayed on the target terminal in the type of the target file, and the convenience of reading the text information by a target user of the target terminal is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating one embodiment of a method of information transmission, according to an example embodiment;
FIG. 2 is a flow chart illustrating one embodiment of a method of information transmission, according to an example embodiment;
FIG. 3 is a schematic diagram of an interaction process of the information transmission method;
fig. 4 is a block diagram illustrating a structure of an information transmission apparatus according to an exemplary embodiment;
fig. 5 is a block diagram illustrating a structure of an information transmission apparatus according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating the structure of a server in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a flow chart illustrating one embodiment of an information transfer method in accordance with an example embodiment. The various steps of the method may be performed by a server, the method comprising the steps of:
step 101, receiving the text information and the format indication information of the text information sent by the user terminal.
In this disclosure, the received text message sent by the user terminal may be a text message with a preset format, for example, a code with a preset format. The format of the received text message sent by the user terminal may be a preset format. The preset format may be HTML (HyperText Markup Language), XML (extensible Markup Language), JASON (JavaScript Object Notation), C Language format, and the like.
In the present disclosure, the format indication information of the received text message transmitted by the user terminal is used to indicate the format of the received text message transmitted by the user terminal. In the present disclosure, the received text information sent by the user terminal may be text information that is input by the user into an information input area in an information interaction application running on the user terminal by means of inputting characters. The received text information sent by the user terminal can also be text information pasted in an information input area in an information interaction application running on the user terminal by the user through pasting operation.
In the disclosure, a plug-in for detecting whether a format of text information input by a user is a preset format may be run on a user terminal, and whether the format of the text information input by the user is the preset format may be detected in real time by using the plug-in running on the user terminal. Every time the format of the information input by the user is detected to be the preset format on the terminal of the user, and the user performs information sending instruction operation on the user terminal, for example, clicking a button for instructing sending of the text information input by the user, the text information sent by the user terminal and the format instruction information of the text information can be received.
In the disclosure, it may be detected at the user terminal whether the format of the text information input by the user is the preset format by using the grammar rule information corresponding to a plurality of different preset formats. The grammar rule information corresponding to the preset format defines the characteristics of the objects in the text information belonging to the preset format. When detecting whether the format of the text information input by the user is the preset format or not on the user terminal, matching the grammar rule information corresponding to a plurality of different preset formats with the text information input by the user one by one, and when the text information input by the user is matched with the grammar rule information corresponding to any one preset format, detecting that the format of the text information input by the user is the preset format.
And 102, generating a target file comprising the text information according to the format indication information.
In the present disclosure, after receiving the text information and the format indication information of the text information sent by the user terminal, a target file including the received text information sent by the user terminal may be generated according to the format indication information.
In the present disclosure, the type of the target file matches the format of the received text message sent by the user terminal.
For example, when the format of the received text information transmitted by the user terminal is the HTML format, an HTML file including the received text information transmitted by the user terminal may be generated. When the format of the received text message sent by the user terminal is an XML format, an XML file including the received text message sent by the user terminal may be generated. When the format of the received text information sent by the user terminal is the JASON format, a JASON file including the received text information sent by the user terminal may be generated. When the format of the received text information sent by the user terminal is the C language format, a C language file including the received text information sent by the user terminal may be generated.
In some embodiments, when generating a target file including received text information sent by a user terminal according to received format indication information sent by the user terminal, the received text information sent by the user terminal may be first generated into a file, and then an extension matching the format of the text information may be added to the generated file to generate the target file.
For example, the received information sent by the user terminal is in an HTML format, and the received format indication information sent by the user terminal indicates that the format of the received information sent by the user terminal is in the HTML format. When generating an object file including the received text information transmitted by the user terminal according to the received format indication information transmitted by the user terminal, the received text information transmitted by the user terminal may be first generated into a file, and then an extension having a name of html, which is an extension matching the format of the text information, may be added to the generated file to generate the object file including the information transmitted by the user terminal.
And 103, sending the target file to a target terminal for information interaction with the user terminal so that the target terminal displays the text information according to the type of the target file.
In the disclosure, after transmitting an object file including text information transmitted by a user terminal to an object terminal performing information interaction with the user terminal, the object terminal may display the text information in the type of the object file.
For example, for a target file including received text information in HTML format sent by a user terminal, opening the target file including the received text information in HTML format sent by the user terminal on the target terminal by using a tool capable of opening the HTML file, such as development framework software capable of editing and viewing the content of the HTML file, and displaying the text information in the type of the target file includes: the grammar in the character information in the HTML format is highlighted, and the line number of each line of HTML sentence in the character information in the HTML format is displayed.
For an XML file including received text information in XML format sent by a user terminal, opening the XML file including the text information in XML format input by a user on a target terminal by using a tool capable of opening the XML file, such as development framework software capable of editing and viewing the content of the XML file, and displaying the text information in the type of the target file includes: highlighting grammar in the received information in the XML format sent by the user terminal, and displaying the line number of each line of XML sentences in the received information in the XML format sent by the user terminal.
For a target file comprising received character information in a C language format sent by a user terminal, for example, development framework software which can edit and view codes in a C language file by using a tool which can open a file comprising received codes written by the C language sent by the user terminal on the target terminal, and opening the target file comprising the received character information in the C language sent by the user terminal, wherein displaying the character information in the type of the target file comprises: highlighting grammar in the received C language format character information sent by the user terminal, and displaying the line number of each line of C sentences in the received C language format character information sent by the user terminal.
In some embodiments, after generating the target file including the text information according to the format indication information, the method further includes: storing the target file and acquiring the identification information of the target file, and packaging the identification information of the target file into a session message, wherein the session message comprises the file name of the target file and a file icon matched with the target file.
In the present disclosure, after generating an object file including received text information sent by a user terminal, the object file may be stored and identification information of the object file may be acquired, and then the identification information of the object file may be encapsulated as a session message, where the identification information of the object file may be a file name of the object file, and the session message may include the file name of the object file and a file icon matching the object file.
In some embodiments, sending the target file to a target terminal performing information interaction with the user terminal, so that the target terminal displays text information in the type of the target file, includes: and sending the conversation message to a target terminal for information interaction with the user terminal so that the target terminal acquires a target file according to the identification information in the conversation message and displays the text information according to the type of the target file.
In the present disclosure, after generating a session message including identification information of a target file, the session message may be transmitted to a target terminal that performs information interaction with a user terminal. The target terminal may first present the session message after receiving the session message. The target user of the target terminal may determine the format of the text information in the target file through the file icon in the session message presented on the target terminal, and then may determine whether to download the target file.
When the target user needs to download the target file including the received text information sent by the user terminal, the target user may perform an operation of instructing to download the target file including the received text information sent by the user terminal on the target user terminal. For example, the target user clicks on the session message at the target terminal, and a download request is generated at the target terminal. Then, a download request sent by the target terminal can be received, and the target file is sent to the target terminal. Therefore, when the target user needs to download the target file containing the received text information sent by the user terminal, the target file containing the received text information sent by the user terminal can be sent to the target user terminal.
Fig. 2 is a flow diagram illustrating one embodiment of an information transfer method in accordance with an example embodiment. The various steps of the method may be performed by a terminal, the method comprising the steps of:
step 201, detecting whether the format of the text information input by the user is a preset format.
In the present disclosure, the text information input by the user may be information input by the user into an information input area in an information interaction application running on the user terminal by inputting characters. The text information input by the user can also be information pasted into an information input area in an information interaction application running on the user terminal through pasting operation by the user.
It should be understood that the text information input by the user is not particularly limited to the information located in the information input area in the information interaction application running on the user terminal at a certain moment, and the information located in the information input area at any moment before the user performs the operation of sending the information indication, such as clicking a button for indicating to send the information, can be used as the text information input by the user.
In the disclosure, whether the format of the text information input by the user is the preset format or not can be detected in real time.
In the present disclosure, grammar rule information corresponding to each of a plurality of different preset formats may be set in advance, and the grammar rule information corresponding to a preset format defines characteristics of an object in text information belonging to the preset format.
When detecting whether the format of the text information input by the user is the preset format, the grammar rule information corresponding to a plurality of different preset formats can be utilized to match with the text information input by the user one by one, and when the text information input by the user is matched with the grammar rule information corresponding to any one preset format, the format of the text information input by the user can be detected to be the preset format.
For example, the syntax rule information corresponding to the HTML format defines each HTML tag in the information in the HTML format, the position of each HTML tag, and the like. The syntax rule information corresponding to the XML format defines each XML tag in the information in the XML format, the position of each XML tag, and the like. The grammar rule information corresponding to the JASON format defines each label and the position of each label in the information of the JASON format. The grammar rule information corresponding to the C language format defines the identifiers of the keywords and variables in the C language. When detecting whether the format of the text information input by the user is the preset format, the grammar rule information corresponding to the HTML format, the grammar rule information corresponding to the XML format, the grammar rule information corresponding to the JASON format, the grammar rule information corresponding to the C language format and the like can be adopted to match with the text information input by the user one by one. When the text information input by the user is matched with the grammar rule information corresponding to the HTML, the format of the text information input by the user can be detected to be the HTML format. When the text information input by the user is matched with the grammar rule information corresponding to the XML format, the text information input by the user can be detected to be in the XML format. When the text information input by the user is matched with the grammar rule information corresponding to the JASON format, the format of the text information input by the user can be detected to be the JASON format. When the text information input by the user is matched with the grammar rule information corresponding to the C language format, the format of the text information input by the user can be detected to be the C language format.
In some embodiments, detecting whether the text information input by the user is text information comprises: and detecting whether the format of the text information input by the user is a preset format or not in response to detecting that the number of characters included in the text information input by the user is greater than a number threshold.
In the method, whether the number of characters included in the text information input by the user is larger than a number threshold value or not can be detected in real time, and when the number of characters included in the text information input by the user is detected to be larger than the number threshold value, whether the format of the text information input by the user is a preset format or not is detected.
For example, the quantity threshold is 200. In the process of information interaction between a user and a target user, the user needs to send information in an HTML format, wherein the number of characters included in a document is more than 200, to the target user. The user first copies the HTML-formatted information by a copy operation, and the user pastes the HTML-formatted information to an information input area of an application running on the user terminal by a paste operation. The format of the text information input by the user is an HTML format. Then, it may be detected that the number of characters included in the text information input by the user is greater than 200, and it may be detected whether the format of the text information input by the user is a preset format.
Step 202, when it is detected that the format of the text information input by the user is a preset format and the user performs an information sending instruction operation, generating format instruction information of the text information.
For example, in the process of information interaction between a user and a target user, the user needs to send text information in an HTML format in a document to the target user. The user pastes the HTML-formatted character information to an information input area of an application running on the user terminal through a paste operation. The text information input by the user is the information in the HTML format. The information transmission instruction operation by the user is an operation of clicking a button for instructing transmission of the character information input by the user. After the user pastes the HTML-formatted character information to an information input area of an application running on the user terminal through a paste operation, when the user clicks a button for instructing transmission of the user-inputted character information, format instruction information for instructing the user-inputted character information to be in the HTML format may be generated.
Step 203, sending the text information input by the user and the format indication information of the text information to the server.
In the present disclosure, after the format indication information of the character information input by the user is generated, the character information input by the user and the format indication information of the character information input by the user may be transmitted to the server. The server can generate an object file comprising the text information input by the user according to the format indication information, wherein the type of the object file comprising the text information input by the user is matched with the format of the text information input by the user. And the server sends the target file comprising the character information input by the user to a target terminal for information interaction with the user terminal. Thus, the target file containing the text information input by the user can be opened on the target terminal by utilizing the tool capable of opening the target file containing the text information input by the user. Then, the text information input by the user is displayed in the type of the target file on the target user terminal.
Please refer to fig. 3, which illustrates an interaction process of the information transmission method.
The user terminal detects whether the format of the text information input by the user is a preset format.
The user terminal detects that the format of the text information input by the user is a preset format and the user performs information sending indication operation to generate format indication information.
And the user terminal sends the character information input by the user and the format indication information of the input character information to the server.
The server generates an object file including the text information input by the user, and the type of the object file is matched with the format of the input text information.
The server generates a session message including the file name of the target file and a file icon matching the target file type.
The server sends the session message to the target user terminal.
And the target terminal generates a downloading request according to the detected click message of the target user.
The target terminal sends a download request to the server.
And the target terminal receives a target file which is sent by the server and comprises the text information input by the user.
And displaying the text information input by the user on the target terminal according to the type of the target file.
Fig. 4 is a block diagram illustrating a structure of an information transmission apparatus according to an exemplary embodiment. Referring to fig. 4, the information transmission apparatus includes: the system comprises an information receiving module 401, a file generating module 402 and a file sending module 403.
The information receiving module 401 is configured to receive text information sent by a user terminal and format indication information of the text information, where the format indication information is used to indicate a format of the text information;
the file generating module 402 is configured to generate a target file including the text information according to the format indication information, wherein the type of the target file matches with the format of the text information;
the file sending module 403 is configured to send the target file to a target terminal performing information interaction with the user terminal, so that the target terminal displays the text information in a type of the target file.
In some embodiments, the file generation module 402 includes:
and the target file generation submodule is configured to generate a file from the text information, and add an extension matched with the format of the text information to the file so as to generate a target file.
In some embodiments, the information transmission apparatus further comprises:
and the session message generation module is configured to store the target file and acquire identification information of the target file after generating the target file including the text information according to the format indication information, and package the identification information of the target file into a session message, wherein the session message includes a file name of the target file and a file icon matched with the type of the target file.
In some embodiments, the file sending module 403 includes:
and the trigger sending submodule is configured to send the session message to a target terminal performing information interaction with the user terminal, so that the target terminal acquires the target file according to the identification information in the session message and displays the text information according to the type of the target file.
Fig. 5 is a block diagram illustrating a structure of an information transmission apparatus according to an exemplary embodiment. Referring to fig. 5, the information transmission apparatus includes: a format detection module 501, an information generation module 502 and an information sending module 503.
The format detection module 501 is configured to detect whether a format of text information input by a user is a preset format;
the information generating module 502 is configured to generate format indication information of the text information when detecting that the format of the text information is a preset format and the user performs an information sending indication operation, where the format indication information of the text information is used for indicating the format of the text information;
the information sending module 503 is configured to send the text information and the format indication information of the text information to a server, so that the server generates a target file including the text information according to the format indication information and sends the target file to a target terminal performing information interaction with the user terminal, where the type of the target file matches the format of the text information.
In some embodiments, format detection module 501 includes:
the trigger detection submodule is configured to detect whether the format of the text information is a preset format or not in response to the fact that the number of the characters included in the text information is larger than a number threshold.
FIG. 6 is a block diagram illustrating the structure of a server in accordance with an exemplary embodiment. Referring to fig. 6, server 600 includes a processing component 622 that further includes one or more processors and memory resources, represented by memory 632, for storing instructions, such as application programs, that are executable by processing component 622. The application programs stored in memory 632 may include one or more modules that each correspond to a set of instructions. Further, the processing component 622 is configured to execute instructions to perform the above-described methods.
The server 600 may also include a power component 626 configured to perform power management of the server 600, a wired or wireless network interface 650 configured to connect the server 600 to a network, and an input/output (I/O) interface 658. The server 600 may operate based on an operating system stored in memory 632, such as Windows Server, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Fig. 7 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment. For example, the terminal 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, terminal 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the terminal 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the terminal 700. Examples of such data include instructions for any application or method operating on terminal 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 706 provides power to the various components of terminal 700. Power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 700.
The multimedia component 708 comprises a screen providing an output interface between the terminal 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the terminal 700 is in an operating mode, such as a call mode, a recording mode, and a language identification mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of state assessment for the terminal 700. For example, sensor assembly 714 can detect an open/closed state of terminal 700, relative positioning of components, such as a display and keypad of terminal 700, change in position of terminal 700 or a component of terminal 700, presence or absence of user contact with terminal 700, orientation or acceleration/deceleration of terminal 700, and temperature change of terminal 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communications between the terminal 700 and other devices in a wired or wireless manner. The terminal 700 may access a wireless network based on a communication standard, such as WiFi, an operator network (e.g., 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the operations shown in fig. 1 or 2.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 704 comprising instructions, executable by a processor of a server to perform the steps performed by the server are also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by a server to perform the above method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as a memory comprising instructions, executable by a terminal to perform the above method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present application also provides a computer program comprising the operational steps as shown in fig. 1.
The present application also provides a computer program comprising the operational steps as shown in fig. 2.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. An information transmission method, characterized in that the method comprises:
receiving text information sent by a user terminal and format indication information of the text information, wherein the format indication information is used for indicating the format of the text information;
generating a target file comprising the text information according to the format indication information, wherein the type of the target file is matched with the format of the text information;
and sending the target file to a target terminal for information interaction with the user terminal so that the target terminal displays the text information according to the type of the target file.
2. The method according to claim 1, wherein the generating a target file including the text information according to the format indication information comprises:
and generating a file by the text information, and adding an extension matched with the format of the text information to the file to generate a target file.
3. The method according to claim 1 or 2, after generating the target file including the text information according to the format indication information, further comprising:
and storing the target file, acquiring the identification information of the target file, and packaging the identification information of the target file into a session message, wherein the session message comprises the file name of the target file and a file icon matched with the type of the target file.
4. The method of claim 3, wherein the sending the target file to a target terminal interacting with the user terminal to enable the target terminal to display the text information in a type of the target file comprises:
and sending the conversation message to a target terminal for information interaction with the user terminal, so that the target terminal acquires the target file according to the identification information in the conversation message and displays the text information according to the type of the target file.
5. An information transmission method, characterized in that the method comprises:
detecting whether the format of the text information input by the user is a preset format or not;
when the format of the text information is detected to be a preset format and the user performs information sending indication operation, generating format indication information of the text information, wherein the format indication information of the text information is used for indicating the format of the text information;
and sending the text information and the format indication information of the text information to a server so that the server generates a target file comprising the text information according to the format indication information and sends the target file to a target terminal for information interaction with the user terminal, wherein the type of the target file is matched with the format of the text information.
6. The method of claim 5, wherein detecting whether the format of the text message input by the user is a preset format comprises:
and detecting whether the format of the text information is a preset format or not in response to the fact that the number of the characters included in the text information is larger than a number threshold.
7. An information transmission apparatus, characterized in that the apparatus comprises:
the information receiving module is configured to receive text information sent by a user terminal and format indication information of the text information, wherein the format indication information is used for indicating the format of the text information;
the file generation module is configured to generate a target file comprising the text information according to the format indication information, wherein the type of the target file is matched with the format of the text information;
and the file sending module is configured to send the target file to a target terminal performing information interaction with the user terminal so that the target terminal displays the text information according to the type of the target file.
8. An information transmission apparatus, characterized in that the apparatus comprises:
the format detection module is configured to detect whether the format of the text information input by the user is a preset format or not;
the information generating module is configured to generate format indication information of the text information when the format of the text information is detected to be a preset format and the user performs information sending indication operation, wherein the format indication information of the text information is used for indicating the format of the text information;
the information sending module is configured to send the text information and the format indication information of the text information to a server, so that the server generates a target file comprising the text information according to the format indication information and sends the target file to a target terminal which performs information interaction with the user terminal, wherein the type of the target file is matched with the format of the text information.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 4.
10. A terminal, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any of claims 5 to 6.
CN201911350157.6A 2019-12-24 2019-12-24 Information transmission method, device, server and terminal Active CN111131000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911350157.6A CN111131000B (en) 2019-12-24 2019-12-24 Information transmission method, device, server and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911350157.6A CN111131000B (en) 2019-12-24 2019-12-24 Information transmission method, device, server and terminal

Publications (2)

Publication Number Publication Date
CN111131000A true CN111131000A (en) 2020-05-08
CN111131000B CN111131000B (en) 2022-01-25

Family

ID=70501997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911350157.6A Active CN111131000B (en) 2019-12-24 2019-12-24 Information transmission method, device, server and terminal

Country Status (1)

Country Link
CN (1) CN111131000B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665076A (en) * 2022-10-17 2023-01-31 北京达佳互联信息技术有限公司 Information sending method and device, electronic equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260316A (en) * 2005-03-18 2006-09-28 Fujitsu Ltd Sentence format conversion device, program and method
CN101577684A (en) * 2008-05-05 2009-11-11 中国电信股份有限公司 Method and system for processing e-mail
CN101599913A (en) * 2008-06-05 2009-12-09 英业达股份有限公司 Improve the system and the method thereof of executing efficiency of real-time communication
CN101673256A (en) * 2008-09-11 2010-03-17 北大方正集团有限公司 Method and system for automatically extracting article metadata information based on word flow
CN101827067A (en) * 2009-03-02 2010-09-08 北京千术宽文化传媒有限公司 Information distribution system and method thereof
CN102281205A (en) * 2010-06-10 2011-12-14 腾讯科技(深圳)有限公司 Text display method in instant messaging system, terminal and system
CN102591612A (en) * 2011-12-27 2012-07-18 厦门市美亚柏科信息股份有限公司 General webpage text extraction method based on punctuation continuity and system thereof
US20140278405A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Automatic note taking within a virtual meeting
CN104636320A (en) * 2015-01-29 2015-05-20 小米科技有限责任公司 Data processing method and device
CN106126485A (en) * 2016-06-14 2016-11-16 北京金山安全软件有限公司 Text format generation method, server and terminal
CN106598983A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Information display method and device
CN106775777A (en) * 2017-01-22 2017-05-31 合网络技术(北京)有限公司 Content interaction method and device
CN106970897A (en) * 2017-04-05 2017-07-21 北京小米移动软件有限公司 The method to set up and equipment of text formatting
CN108388551A (en) * 2018-02-07 2018-08-10 潘新怡 The edit methods of chemical formula and equation, system, storage medium, electronic equipment
CN110298021A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 A kind of method for message interaction, system and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260316A (en) * 2005-03-18 2006-09-28 Fujitsu Ltd Sentence format conversion device, program and method
CN101577684A (en) * 2008-05-05 2009-11-11 中国电信股份有限公司 Method and system for processing e-mail
CN101599913A (en) * 2008-06-05 2009-12-09 英业达股份有限公司 Improve the system and the method thereof of executing efficiency of real-time communication
CN101673256A (en) * 2008-09-11 2010-03-17 北大方正集团有限公司 Method and system for automatically extracting article metadata information based on word flow
CN101827067A (en) * 2009-03-02 2010-09-08 北京千术宽文化传媒有限公司 Information distribution system and method thereof
CN102281205A (en) * 2010-06-10 2011-12-14 腾讯科技(深圳)有限公司 Text display method in instant messaging system, terminal and system
CN102591612A (en) * 2011-12-27 2012-07-18 厦门市美亚柏科信息股份有限公司 General webpage text extraction method based on punctuation continuity and system thereof
US20140278405A1 (en) * 2013-03-15 2014-09-18 International Business Machines Corporation Automatic note taking within a virtual meeting
CN104636320A (en) * 2015-01-29 2015-05-20 小米科技有限责任公司 Data processing method and device
CN106598983A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Information display method and device
CN106126485A (en) * 2016-06-14 2016-11-16 北京金山安全软件有限公司 Text format generation method, server and terminal
CN106775777A (en) * 2017-01-22 2017-05-31 合网络技术(北京)有限公司 Content interaction method and device
CN106970897A (en) * 2017-04-05 2017-07-21 北京小米移动软件有限公司 The method to set up and equipment of text formatting
CN108388551A (en) * 2018-02-07 2018-08-10 潘新怡 The edit methods of chemical formula and equation, system, storage medium, electronic equipment
CN110298021A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 A kind of method for message interaction, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115665076A (en) * 2022-10-17 2023-01-31 北京达佳互联信息技术有限公司 Information sending method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111131000B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN106569800B (en) Front-end interface generation method and device
CN109032606B (en) Native application compiling method and device and terminal
CN107423106B (en) Method and apparatus for supporting multi-frame syntax
EP3147802B1 (en) Method and apparatus for processing information
CN106126025B (en) Interactive method and device for copying and pasting
EP3416054A1 (en) Method and device for page display, and storage medium
CN106547547B (en) data acquisition method and device
CN109063101B (en) Video cover generation method and device
CN108495168B (en) Bullet screen information display method and device
CN107239351B (en) Pasting method and device
US20220391446A1 (en) Method and device for data sharing
CN109117144B (en) Page processing method, device, terminal and storage medium
CN106790683B (en) Network data display method and device based on mobile terminal
CN107360322B (en) Information prompting method and device
CN107179837B (en) Input method and device
CN111131000B (en) Information transmission method, device, server and terminal
CN111079040B (en) Resource sniffing method, device, terminal, server and storage medium
CN110213062B (en) Method and device for processing message
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN114025317B (en) Method, device, server, terminal and storage medium for spreading multimedia resources
CN107679205B (en) Multimedia data playing method and device, computer equipment and storage medium
CN106712960B (en) Processing method and device of verification code information
CN105868354B (en) Webpage repairing method and device
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN111343510B (en) Information processing method, information processing device, electronic 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
GR01 Patent grant
GR01 Patent grant