CN106209575B - Method for sending information, acquisition methods, device and interface system - Google Patents
Method for sending information, acquisition methods, device and interface system Download PDFInfo
- Publication number
- CN106209575B CN106209575B CN201610463536.6A CN201610463536A CN106209575B CN 106209575 B CN106209575 B CN 106209575B CN 201610463536 A CN201610463536 A CN 201610463536A CN 106209575 B CN106209575 B CN 106209575B
- Authority
- CN
- China
- Prior art keywords
- information
- file
- type
- binary
- receiving end
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/066—Format adaptation, e.g. format conversion or compression
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Abstract
This application discloses a kind of method for sending information, to solve in existing instant messaging, the lower problem of efficiency existing for the information sender formula taken under the scene for sending different types of information.Method includes: that transmitting terminal determines the information for being sent at least two types of receiving end;It is the file destination for having predetermined format by information coding to be encoded according to the coding mode made an appointment with receiving end;Wherein, the information to be encoded, including at least the information of at least two type;The file destination for having predetermined format is encapsulated into data packet, and the data packet is sent to receiving end.A kind of information transmitting apparatus and a kind of information acquisition method and device and a kind of interface system is also disclosed in the application.
Description
Technical field
This application involves field of computer technology more particularly to a kind of method for sending information, acquisition methods, device and interfaces
System.
Background technique
User during being exchanged using instant communication client, can by send different types of information to
Other users are intended to express.Wherein, type mentioned here usually divides information according to the form of expression of information
Obtained from, for example can include but is not limited to text, picture, audio, animation or video etc..
According to the prior art, between user when being exchanged using instant messaging tools, the transmission of single information can only be sent out
Send a type of information.For example, when user A it is expected to user B sending information " hello ", picture " head portrait of smile " and audio
When " hello ", need to send the information of these three types respectively.
Above- mentioned information sending method has a drawback in that efficiency is lower.
Summary of the invention
The embodiment of the present application provides a kind of method for sending information, to solve in existing instant messaging, is sending inhomogeneity
The lower problem of efficiency existing for the information sender formula taken under the scene of the information of type.
The embodiment of the present application also provides a kind of information transmitting apparatus and a kind of information acquisition method and device.
The embodiment of the present application also provides a kind of interface system.
The embodiment of the present application adopts the following technical solutions:
A kind of method for sending information, comprising: transmitting terminal determines the information for being sent at least two types of receiving end;
It is to have the target of predetermined format by information coding to be encoded according to the coding mode made an appointment with receiving end
File;Wherein, the information to be encoded, including at least the information of at least two type;
The file destination for having predetermined format is encapsulated into data packet, and the data packet is sent to reception
End.
A kind of information acquisition method, comprising:
Receiving end receives the data packet that transmitting terminal is sent;The data packet, the file destination comprising predetermined format;The mesh
Mark the information that file includes at least two types;
According to the decoding process made an appointment with transmitting terminal, the file destination for having predetermined format is decoded,
To obtain the information of at least two type.
A kind of information transmitting apparatus, comprising:
Information determination unit, for determining the information for being sent at least two types of receiving end;
Coding unit, for being to have by information coding to be encoded according to the coding mode made an appointment with receiving end
The file destination of predetermined format;Wherein, the information to be encoded, the information including at least two type;
Transmission unit, for the file destination for having predetermined format to be encapsulated into data packet, and by the data
Packet is sent to receiving end.
A kind of information acquisition device, comprising:
Data packet receiving unit, for receiving the data packet of transmitting terminal transmission;The data packet, comprising having predetermined format
File destination;The file destination includes the information of at least two types;
Decoding unit, for according to the decoding process made an appointment with transmitting terminal, to the target for having predetermined format
File is decoded, to obtain the information of at least two type.
A kind of interface system, comprising:
Information determination unit to be sent, for determining the information for being sent at least two types of receiving end;
Information sends control, sends instruction for detection information;After detecting that the information sends instruction, according to preparatory
It is the file destination for having predetermined format by information coding to be encoded with the coding mode of information receiving end agreement;It will be described
The file destination for having predetermined format is encapsulated into data packet, and the data packet is sent to receiving end;Wherein, described wait compile
The information of code, the information including at least two type that information determination unit to be sent is determined.
The embodiment of the present application use at least one above-mentioned technical solution can reach it is following the utility model has the advantages that
Since transmitting terminal can will be sent at least the two of receiving end according to the coding mode made an appointment with receiving end
The information coding of seed type is the file destination for having predetermined format, and is sent to receiving end, so as to realize in a number
According at least two different types of information are carried in packet, the information improved under the scene for sending different types of information is sent
Efficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of specific implementation flow schematic diagram of method for sending information provided by the embodiments of the present application;
Fig. 2 is the schematic diagram that the first client and the second client carry out instant messaging;
Fig. 3 is a kind of schematic diagram at interface shown by the first client in mobile phone 1;
Fig. 4 be mobile phone 1 in the first client shown by another interface schematic diagram;
Fig. 5 obtains the implementation process of the information of at least two type for the second client in the embodiment of the present application
Figure;
Fig. 6 is a kind of concrete structure schematic diagram of information transmitting apparatus provided by the embodiments of the present application;
Fig. 7 is a kind of concrete structure schematic diagram of information acquisition device provided by the embodiments of the present application;
Fig. 8 is a kind of concrete structure schematic diagram of interface system provided by the embodiments of the present application;
Fig. 9 is a kind of schematic diagram of user interface provided by the embodiments of the present application;
Figure 10 is the schematic diagram of another user interface provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Embodiment 1
For the information sender formula in the existing instant messaging of solution, taken under the scene for sending different types of information
The lower problem of existing efficiency, the embodiment of the present application provide a kind of method for sending information.The execution master of the method for sending information
Body can be various user terminals, for example can be PC (Personal Computer, PC), smart phone, plate
Computer, wearable device (such as smartwatch or intelligent helmet).The method for sending information specifically can be by the user
The client installed in terminal is completed.Client mentioned here, for example can be instant communication client;Alternatively,
It can be other kinds of client, such as social platform client or online shopping class client, etc..The executing subject is not
Constitute the restriction to the application.
For ease of description, the executing subject of the embodiment of the present application in this way be instant communication client for, to the party
The specific implementation of method is described in detail.
It referring to Figure 1, is a kind of specific implementation flow schematic diagram of method for sending information provided by the embodiments of the present application.It should
Method mainly includes the following steps:
Step 11, instant communication client (rear to claim the first client) determination is sent to receiving end (the second client)
The information of at least two types;
Below in conjunction with attached drawing 2 and attached drawing 3, illustrate some optional implementations of step 11.
As shown in Fig. 2, to carry out the schematic diagram of the first client and the second client of instant messaging.In Fig. 2, peace is used
The user A of mobile phone 1 equipped with the first client is passing through service with the user B of the mobile phone for being equipped with the second client 2 is used
(also referred to as server) is held to carry out instant messaging.
As shown in figure 3, for the schematic diagram at interface shown by the first client in mobile phone 1.In the interface in Fig. 3,
Include following display areas:
Chat content viewing area 31: for showing the chat content of user A and user B.Wherein, in Fig. 3, chat content is aobvious
Show that present displayed content includes: the cartoon character 311 of user A, the cartoon character 312 of user B and user A and use in area 31
Family B carries out the information that instant messaging is interacted, such as text " hello ".
Input text area 32: for receiving and showing text being inputted by user A, being sent to user B, in figure
Text " has been had a meal ".
Animation selects area 33: for showing the title for the animation file being arranged in the first client.Wherein, referred to herein
Animation file, can be the openable animation file of the first client and the second client.If the first client is opened
The corresponding animation file of title (being hereinafter the animation file of selection) for the animation file that user A chooses, the then use in Fig. 3
If the cartoon character 311 of family A can generate corresponding animation effect --- for example, the first client opens the animation that user A chooses
File " extremely happy ", the then cartoon character 311 of user A can make the very happy behavior of expression for comparing exaggeration, to indicate
" extremely happy " this mood.The animation file that user A chooses can also be sent to the second client used in user B, the
Two clients can make the cartoon character 311 of user A shown by the second client generate accordingly by opening the animation file
Animation effect.
The title position of animation file in animation selection area 33 is provided with control.First client can benefit
With the control, click behavior of the user A for the title of animation file is monitored.If monitoring user A to some animation file
Title click behavior has occurred, then the first client can by the corresponding animation file of the title for the animation file being clicked,
It is determined as the selected animation file of user A.User A selected animation file, it can as being sent to the second client
Animation file.
It should be noted that after user selectes the title of the animation file shown in animation selection area 33, to use
Family A knows which the animation file selected is specifically, and the first client can also determine corresponding with the animation file selected
Text, and be shown in input text area 32.As shown in figure 3, the text " [smile fatuously animation] " in input text area 32, as
The corresponding text of the animation file that user A has been selected.First client can determine input text area 32 according to character " [] "
In text whether be text corresponding to animation.Specifically, if text is in the character [], illustrate that the text is pair
It should be in the text of animation file;And if text is not in character [], illustrates that text does not correspond to the text of animation file
This.
In addition, also comprising " animation selection and text input switching push button " 34, which is in interface shown in Fig. 3
The control that first client provides.Depending on actual demand, in interface shown in Fig. 3, the button can also not included.
If user clicks the button 34 shown in Fig. 3, the first client can be triggered by showing the interface shown in Fig. 3, cut
It is changed to and shows interface as shown in Figure 4.The interface shown in Fig. 4, specifically includes that
Trigger the button 41 of the first client recording voice --- that is, showing the button of " pin and speak ";
The title of various animation files, such as smile, dance lightly, smile fatuously;
Switching the Show Button of the title of the animation file of different moods --- that is, interface bottom show it is happy, angry
Or the button of the texts such as calmness.
Based on interface as shown in Figure 4, if user pins the button 41 of recorded speech, can trigger the first client into
Row voice recording.First client can save the audio data recorded, and by the audio data of preservation, as to
It is sent to one of the information of the second client.
In the embodiment of the present application, if classifying according to the difference of the form of expression of information to information, input text area
Text in 32 belongs to " text " this type, and animation selects animation file corresponding to the title of the animation file in area 33,
Belong to " animation " this type, and the audio data of the first client recording, then belong to " audio " this type.The application is implemented
In example, mainly by taking " type of information is divided according to the form of expression of information " such case as an example, it is introduced.
In the embodiment of the present application, the first client determines the opportunity for being sent to the information of the second client, it is, in general, that
It is this period of " the first client after completing primary information and sending, before carrying out another primary information transmission ".At this
What the period was determined is sent to the information of the second client, can be sent to visitor when carrying out another primary information transmission
Family end.
For example, in the embodiment of the present application, it is assumed that after the first client completes primary information transmission, user A is defeated in text
Enter to have input in area 32 text " hello ", and have selected the title " smiling fatuously " of animation file in animation selection area 33, such as Fig. 3 institute
Show.So, " transmission " button in Fig. 3 is clicked in user A, and before triggering the another primary information transmission of the first client progress, the
One client can determine the information of the information both types in text " hello " and the animation file of entitled " smiling fatuously "
For the information for being sent to the second client (receiving end).
For another example, if assuming after the first client completes primary information transmission, user A is inputted in input text area 32
Text " hello ", and the title " smiling fatuously " of animation file is had selected in animation selection area 33, as shown in figure 3, in addition, user
A also triggers the first client and is switched to interface as shown in Figure 4, and triggers the first client recording audio data.So, exist
User A clicks " transmission " button in Fig. 4, and before triggering the another primary information transmission of the first client progress, the first client can
To determine the information of information and audio data these three types in the animation file of text " hello ", entitled " smiling fatuously "
For the information for being sent to the second client.
In the embodiment of the present application, after the first client completes primary information transmission, before carrying out another primary information transmission, the
One client under the control of user A, can also obtain picture file or video file of the camera shooting of mobile phone 1 etc., make
For the information for being sent to the second client.
What the first client was determined is sent to the information of the second client, can save in memory, so as into
Row subsequent processing.
The specific implementation of the subsequent processing introduced below.
Step 12, information coding to be encoded is by the first client according to the coding mode made an appointment with receiving end
The file destination for having predetermined format;
Wherein, the information to be encoded, including the letter by executing at least two type that step 11 is determined
Breath.
If being sent to the information of the second client, including two kinds of information, then the mesh for having predetermined format
Mark the information in file comprising described two types;If being sent to the information of the second client, the information including three types,
It then include the information of the three types in the file destination for having predetermined format;The rest may be inferred.
Due to method provided by the embodiments of the present application, primarily directed to the information for being sent to the second client determined
Include the case where the information of at least two types, therefore, for ease of description, is sent to the second client for what is determined hereinafter
The information at end, referred to as " information of at least two types ".
In the embodiment of the present application, in order to enable the second client is subsequent to get the target text for having predetermined format
It, can be using the information reading manner to match with information type, in the file destination for having predetermined format after part
The information of at least two type is read out, can also will be " for characterizing the information of at least two type respectively class
The type information of type " is encoded to and described has in the file destination of predetermined format.For ease of description, will be used to characterize institute hereinafter
State the respective type of type information of information of at least two types, referred to as type information.
The information respective type of type information mentioned here for being used to characterize at least two type, can be described
The mark of the respective correct reading manner of the information of at least two types;Or, the respective class of information of at least two type
Type mark;Or, being also possible to the information of other any respective types of information that can characterize at least two type.
It is at least two type when the respective type of type information of information for characterizing at least two type
The respective correct reading manner of information mark when, for the second client, the second client according to the type information,
Corresponding correct reading manner can be called, the information of at least two type is read out.
For example, if there is the information of " picture " type in the information of at least two type, then, the data packet
In " picture " type information correct reading manner mark, can be and correctly read institute according to the reading manner of picture file
The mark x for stating the read method of the information of " picture " type, according to mark x, the second client can call corresponding reading
Method correctly reads the information of " picture " type;If there is " text " in the information of at least two type
The information of type, then, the mark of the correct reading manner of the information of " text " type, can be according to text in the data packet
The reading manner of this document correctly reads the mark y of the read method of the information of " text " type, according to mark y, the second visitor
Family end can call corresponding read method, correctly be read to the information of " text " type.Above-mentioned read method x,
Y can be set in advance in the second client.
When the type information, when being the respective type identification of information of at least two type, for the second client
For end, the second client can call corresponding correct reading manner, at least two type according to the type information
Information be read out.
For example, if there is the information of " video " type in the information of at least two type, then, the second client
Type identification and reading side according to the type identification p of the information of " video " type in the data packet, by searching for information
The mapping relations of method, can determine the read method with type identification p phase mapping, and according to the read method determined, to " depending on
Frequently the information of type is correctly read ";If there is the information of " text " type in the information of at least two type, that
, the second client is according to the type identification q of the information of " text " type in the data packet, by searching for the type of information
The mapping relations of mark and read method, can determine the read method with type identification q phase mapping, and according to the reading determined
Method is taken, the information of " text " type is correctly read.Above-mentioned mapping relations and read method p, q, can be preparatory
It is arranged in the second client.
It is described in detail below how by the information of type information and at least two type, be encoded to and have predetermined format
File destination.
In the embodiment of the present application, following two coding mode is provided:
Mode one: the coding of packing manner.Which mainly includes the following steps:
Step I: the information of at least two type is saved as corresponding different types of information text by the first client
Part;
Specifically, the first client can sort out the information at least two type determined, and will return
The same type of information that class obtains, saves as the file of respective type.For example the information of audio types is stored as audio text
The information of part, animation types is stored as animation file, etc..Audio file and animation file mentioned here, may be collectively referred to as letter
Cease file.
Step II: the first client according to the coding mode information (such as compression coding mode) arranged with the second client,
By the information configuration file of containing type information, and the different types of message file that step I saves is executed, compiled
Code is compressed file.The compressed file as has the file destination of predetermined format.It is distinguished with showing, it is mentioned here pre- to fix
Formula can be described as the first predetermined format.
Wherein, the information configuration file, for example can be using following manner generation:
According to the respective type of information at least two type determined, the letter of at least two type is determined
The mark (or type identification of the information of at least two type) of the reading manner of breath;Described at least two will determined
The mark (or type identification of the information of at least two type) of the reading manner of the information of type is used as type information, and
Type information is saved as into information configuration file.
The information configuration file can be a text file.This article this document may include several records.It is described
The quantity of several records, can be identical as the number of types of at least two type.It is described several record in each
Record, record has the corresponding type information of information of one of the information of at least two type type respectively, in addition, also
It can recorde the unique identifier of the information of the type.
Wherein, the unique identifier of the certain type of information recorded in individual event record, can be and calculated using eap-message digest
The information that method the 5th edition (Message Digest Algorithm 5, MD5) is calculated and generated to the information of the type is plucked
Want (MD5 value).Based on the unique identifier in information configuration file, may be implemented for the corresponding information in the file destination
Completeness check.For example, the second client is after receiving the file destination, for some type of in the file destination
Information, the second client can calculate the corresponding MD5 value of information of the type, and more calculated MD5 value and the target
Whether the MD5 value of the information corresponding to the type in file is consistent;If consistent, it is determined that the information of the type is complete;
If inconsistent, it is determined that the information of the type is incomplete.For incomplete information, the second client can be abandoned to it
Reading.
In the embodiment of the present application, in order to enable the second client after receiving the file destination, is capable of determining that institute
The information for stating at least two types respectively corresponds which record in information configuration file, can have predetermined format described
In file destination, the information mapping recorded corresponding with the information configuration file for establishing at least two type is closed
System.For example, information the putting in order in the file destination of at least two type can be made, match with the information
Set corresponding, this corresponding relationship sequentially, so that it may as described at least two that puts in order of every record in file
The information of type and the corresponding mapping relations recorded in the information configuration file.
Certainly, the mapping relations can also be just directly recorded in information configuration file.For example, some information configuration
Content in file can be such that
{"audio":"file1.mp3","text":"desc.txt"}
This is the content of a json format, which specifically includes two key-value pairs, and " key " is message file in system
In mark, the also as type of message file, such as audio " audio " or text " text ", " value " is the text of message file
Part name.According to the information configuration file, receiving end can have predetermined format from what is received according to the type represented by " key "
File destination in, read using " value " corresponding with " key " --- file1.mp3 as filename message file, as audio
File.It should be noted that " reading " described in the embodiment of the present application and a kind of decoding.For example, for file destination
In the message file using file1.mp3 as filename for, " reading " message file, refer to according to filename
The decoding process that suffix matches decodes the message file.Specifically, can be pressed according to the suffix " .mp3 " of file name
According to the decoding process of the file for this format of mp3, message file file1.mp3 is decoded.Similarly, for extended formatting
Message file, can also be decoded using corresponding decoding process, the embodiment of the present application no longer illustrates.
Text is connected, in order to enable the second client after receiving the file destination, is capable of determining that described at least two
The information of seed type respectively corresponds which record in information configuration file, and the first client and the second client can also be preparatory
Arrange putting in order for different types of information in the file destination.For example, the first client and the second client can be about
Determine the sequence of different types of information in the file destination successively are as follows: " picture ", " text " and " video ", in such case
Under, if the information at least two type that the first client is determined only includes the information of " text " and " video " type,
It then can be using certain information for making an appointment as the information of " picture " type, with " text " and " video " type for determining
Information is ranked up, and using all information after information configuration file and sequence, generates the file destination.
In the embodiment of the present application, the first client is also possible to according to the coding mode information arranged with the second client
Other modes in addition to compression coding mode, the embodiment of the present application is to this without limiting.
Mode two: the coding of informix mode
Which mainly includes the following steps:
Step I: the information of at least two type is saved as corresponding different types of information text by the first client
Part;
Specifically, the first client can sort out the information at least two type determined, and will return
The same type of information that class obtains, saves as the file of respective type.For example the information of audio types is stored as audio text
The information of part, animation types is stored as animation file, etc..Audio file and animation file mentioned here, may be collectively referred to as letter
Cease file.
Step II: the first client is according to the first coding mode arranged with the second client, by least two class
The corresponding message file of the information of type and corresponding type information, saving as specified file (for example can be one two
Binary file);Then, according still further to the second coding mode arranged with the second client, the specified file is encoded to and is had
The file destination of predetermined format.It is distinguished with showing, predetermined format mentioned here can be described as the second predetermined format.
First coding mode and the second coding mode collectively form the letter of the first client and the second client agreement
Cease coding mode.
It, therefore, can be passing through in view of for computer, each file can be considered as binary file
All message files that step I obtains are executed, comprehensive storage is into the same binary file F.Below to according to the thinking come
A kind of mode of implementation steps II is described in detail:
Which can specifically include following steps:
Step 1: the binary file F for saving message file is created;
Step 2: determining the binary length value of a message file obtained by execution step I, and by determining two
After system length value carries out binary coding, write-in passes through the binary file F for executing step 1 creation;
Assuming that include File1, File2 and File3 by executing the obtained all message files of step I, then, by holding
Row step 2, for example can determine the binary length value of message file File1.Wherein, File1, File2 and File3 are letters
Cease the title of file.
The binary length value of File1, generally refers to the total bytes of File1.Assuming that the binary length value of File1 is
512 bytes obtain corresponding 32 binary numbers " 0,000 0000 it is possible to carry out binary coding to 512
0000 0,000 0,000 0,010 0,000 0000 " the binary file F, and by the binary number is written.
Step 3: the mark of the corresponding reading manner of a message file described in step 2 is subjected to binary coding
Afterwards, the binary file F is written;
For example by after the mark progress binary coding of the corresponding reading manner of File1, the binary file F is written.
Step 4: after the type identification of a message file described in step 2 is carried out binary coding, institute is written
State binary file F;
For example by after the type identification progress binary coding of File1, the binary file F is written.
In the embodiment of the present application, the type identification of message file can be stored in for saving " sorting out for type identification
In this table of table ", and the mapping relations of the type identification of message file and message file are established, for example, can establish information
The mapping relations of the type identification of the title " File1 " and the message file of file.By taking " File1 " as an example, being somebody's turn to do based on foundation
Mapping relations can be determined and the type identification of " File1 " phase mapping according to " File1 ".
Step 5: by some message file described in step 2 itself, the binary file F is written.
Step 2~step 5 is executed to each message file respectively, may be implemented each message file and corresponding
The binary file F is written in binary length, the mark of reading manner and type identification.
By executing in the binary file F (being distinguished with showing, hereinafter referred to as binary file F') that above-mentioned steps obtain, respectively
The arrangement mode of kind content is such as follows:
The corresponding binary system of mark of the reading manner of the corresponding binary number -> File1 of the binary length value of File1
Corresponding binary number -> File1 of the type identification of number -> File1 -> File2 corresponding binary system of binary length value itself
Corresponding binary number -> the File2 of type identification of the corresponding binary number -> File2 of the mark of the reading manner of number -> File2
The corresponding binary number-of mark of the reading manner of -> File3 corresponding binary number -> File3 of binary length value in itself
Corresponding binary number -> File3 of the type identification of > File3 itself.
To the execution sequence of two~step 4 of above-mentioned steps without limiting in the embodiment of the present application, as long as the first client
Execution sequence is arranged in advance with the second client, namely in agreement binary file F' various contents arrangement it is suitable
Sequence, so that the second client can determine putting in order for various contents in binary file F'.
After obtaining binary file F', the first client can be according to the second coding mode to the binary file F'
It is encoded, to obtain the file destination for having predetermined format.When the second coding mode is compression coding mode, obtain
The file destination for having predetermined format is a compressed file.
Second coding mode, is also possible to the other modes in addition to compression coding mode, the embodiment of the present application pair
This is without limiting.
Using the coding of informix mode, since the first coding mode generally only has client and server can
Know, therefore there is a degree of confidentiality.In this case, when being packaged with the file destination for having predetermined format
After data packet is intercepted by third party, since third party is difficult to know first coding mode, the content ratio in data packet
Less easily it is cracked.As it can be seen that the anti-of the data packet being subsequently generated can be made to crack energy using the coding of informix mode
Power is higher, to guarantee the safety of information transmission process.
First client executes following step 13 after being successfully generated the file destination for having predetermined format.
Step 13, the first client will be encapsulated into number by executing the file destination for having predetermined format that step 12 obtains
According in packet, and the data packet is sent to receiving end.
Generally, in order to send information to the second client, user A often refers to the input information transmission of the first client
It enables, to trigger the first client end response in the instruction, sends information to the second client.For example, user A can be by clicking such as
" transmission " button in Fig. 3 sends instruction to the first client input information;First client receive the information transmission refer to
After order, the data packet for being packaged with the file destination for having predetermined format can be sent to the second client.
In the embodiment of the present application, the first client be can be after receiving the information and sending instruction, according to the first client
The communication protocol that end and the second client use claims the file destination encapsulation for having predetermined format comprising the target text
Then the data packet of part sends the data packet to the second client again.Wherein, which can be used as the data packet
Imformosome.
Particularly, when the first client and the second client are instant communication client, the first client end response in
Information sends instruction, using the data packet as instant communication message, is sent to the second client.
Using above scheme provided by the embodiments of the present application, since the first client can be according to preparatory with the second client
The information coding for being sent at least two types of the second client is the mesh for having predetermined format by the coding mode of agreement
File is marked, and is sent to the second client, carries at least two different types of letters in a data packet so as to realize
Breath improves the information transmitting efficiency under the scene for sending different types of information.
Also, since the type information is also sent to second other than the information for sending at least two type
Client, so that the second client can be determined according to the type information for correctly reading described at least two
The reading manner of the information of seed type, and then be read out using information of the reading manner at least two type,
To carry out information displaying.
How the second client is read out and be shown to the information of at least two type further below, is carried out
It is discussed in detail.
Referring to FIG. 5, obtaining the reality of the information of at least two type for the second client in the embodiment of the present application
Existing flow chart, mainly includes the following steps:
Step 51, the second client receives the data packet that the first client is sent;
The data packet, from the foregoing it will be appreciated that including the file destination for having predetermined format;The file destination includes
The information of at least two types.
If the first client and the second client are instant communication client, the second client specifically can be reception
The data packet that first client is sent, as instant communication message.
Step 52, the second client is according to the decoding process made an appointment with transmitting terminal, has predetermined format to described
File destination is decoded, to obtain the information of at least two type.
Second client uses after receiving the data packet first, in accordance between the first client and the second client
Communication protocol, the data packet is decapsulated, to get the file destination for having predetermined format;Then,
The file destination for having predetermined format can be decoded, using the decoding process made an appointment to obtain
State the information of at least two types.
As introduction above it is found that when the first client has the file destination of predetermined format described in the generation, at least may be used
To use two ways.Mode first is that packing manner coding, mode second is that informix mode coding.
When the first client using mode for the moment, the second client to the file destination for having predetermined format into
After row decoding, the message file and corresponding configuration file can be directly obtained.For example, when the volume of the first client use
When code mode is certain compression coding mode, then the second client can use corresponding compression coding mode, to the target
File unzips it, to get the message file and corresponding configuration file.
And when the first client is using mode two, the second client can be encoded according to previously described second
The corresponding decoding process of mode (can be described as the second decoding process), is decoded, is obtained to further to the file destination
Decoded file specifically such as can be the binary file F';Then, further using with above described the
The corresponding decoding process of one coding mode (can be described as the first decoding process), solve to described to further decoded file
Code, for example, being decoded to the binary file F', to obtain each message file.
When the first client is using mode a period of time, the second client can get information from the data packet and match
Set the corresponding message file of information of file and at least two type.Due to including class in the information configuration file
Type information, also, the information of the type information in the information configuration file and the message file has mapping relations, because
This, after getting type information, the subsequent information to at least two type is shown the second client, then may be used
Be read out to the information in corresponding message file according to all types of information in configuration file, and reading is obtained
Information is shown.
Specifically, when the second client is from the file destination, the type information got is " picture " class
When the mark x of the reading manner of the information of type, according to the type information, the second client can be called and mark x phase mapping
Reading manner, be read out to getting with the information of " picture " type of mark x phase mapping, obtain corresponding picture
File, and shown;When the second client is from the file destination, another type information got is " text " class
When the mark y of the correct reading manner of the information of type, according to the type information, the second client can be called and mark y phase
The read method of mapping is read out to getting with the information of " text " type of mark y phase mapping, is obtained corresponding
Text file, and shown.Wherein, above-mentioned each reading manner, can be set in advance in the second client, also, the
The calling path of each reading manner and the mapping of corresponding mark (such as above-mentioned x, y) are generally additionally provided in two clients
Relationship, to call reading manner according to mark is correct.
It should be noted that if the second client also from the file destination, gets the MD5 value of such as message file
Unique identifier, then the second client before being read out to the information in message file, can also according to the first client
The unique identifier calculation made an appointment is held, the unique identifier of message file is calculated separately;Then, more calculated
Whether unique identifier and the corresponding unique identifier got from the data packet are consistent;If consistent, can determine
The message file is completely, to be read out to the message file;If inconsistent, it can determine that the message file is endless
It is whole, to be not read out to the message file.
When the second client is using mode two, the second client can get packet from the file destination
Containing the corresponding message file of information of at least two type and the specified file of corresponding type information, such as above
The binary file F'.By taking binary file F' as an example, due in binary file F', including at least two type
The corresponding message file of information and corresponding type information, also, the second client can be pre- with the first client
First arrange different types of information and corresponding type information putting in order in binary file F', therefore, the second visitor
After getting binary file F', the subsequent information to at least two type is shown at family end, then can be from
Type information is obtained in binary file, and the information in corresponding message file is read out according to type information, and
The information read is shown.
Below by for getting the binary file F' in the file destination, introduce the second client to two into
The processing step of file F' processed:
Step 1: the second client is decoded the file destination using the second decoding process, to obtain two
After binary file F', a text file (or a internal storage data) is created for storing information configuration table;
Step 2: the second client reads imformosome since the specified reading position of binary file F' in order
In binary number, and the binary number in addition to message file that will be read successively is saved in information configuration by reading order
In table;
For example, precedent is continued to use, when the content in binary file F' is as follows:
The corresponding binary system of mark of the reading manner of the corresponding binary number -> File1 of the binary length value of File1
Corresponding binary number -> File1 of the type identification of number -> File1 -> File2 corresponding binary system of binary length value itself
Corresponding binary number -> the File2 of type identification of the corresponding binary number -> File2 of the mark of the reading manner of number -> File2
The corresponding binary number-of mark of the reading manner of -> File3 corresponding binary number -> File3 of binary length value in itself
Corresponding binary number -> File3 of the type identification of > File3 itself.
Also, in addition to each message file itself, when other each binary numbers are respectively 32, the second client can be from two
The first bit of binary file F' starts, and preceding 32 bit is extracted, as first in binary file F'
The binary length of message file (i.e. File1);The 33rd~the 64th is extracted, as first letter in binary file F'
Cease the mark of the reading manner of file;The 65th~the 96th is extracted, as first message file in binary file F'
Type identification.Those data extracted, can be stored in information configuration table.Corresponding to the data of same message file,
It is saved in the same item of information configuration table.
It should be noted that being withdrawn as binary file F' according to the binary length of first message file
In first message file (i.e. File1) type identification binary number after, can be according to the binary length (such as 512
Position), determine the binary number of the binary length (such as 512) in binary file F', being arranged in after the type mark,
As first message file in binary file F'.
Step 3: the second client calculates separately unique identifier (such as MD5 of each message file in binary file F'
Value), and be recorded in information configuration table;
By executing step 2 and step 3, the items in information configuration table respectively correspond a message file.In individual event
The information of record includes: the binary length of some message file (such as File1) in binary file F', the message file
The type identification of the mark of reading manner, the message file.
Step 4: when the second client will be shown all types of information in the binary file F', the
Two clients read information configuration table, and according to the information in information configuration table, realize to the letter in the binary file F'
Cease the reading of file.
For example, after the second client is received for the information displaying instruction of the binary file F', the second client
End is from information configuration table, the binary length being successively read in items, and data (such as reading manner as type information
Mark or message file type identification), and according to the binary length, determine letter from the binary file F'
File is ceased, and then use pattern information is read out the message file determined.
Step 5: the second client is shown the message file read.
In the embodiment of the present application, a variety of exhibition methods can be used.
Specifically, the different types of message file read can be separately shown.For example, when reading
To message file include picture file and audio file when, the picture file that can will be read is shown in the second client
Interface in, meanwhile, the audio file read is played out.Alternatively, the picture file that will be read, is shown in the second visitor
In the interface at family end, and after completing to the 2nd second after the display of the picture file, the audio file read is broadcast
It puts.
Alternatively, displaying can be associated to the different types of message file read, also referred to as compound displaying.For example,
When the message file read includes animation file and audio file, the second client can determine dynamic according to audio file
How the animating image drawn in file should correspondingly carry out shape of the mouth as one speaks variation, i.e., the shape of the mouth as one speaks of animating image is determined according to audio file
Variation pattern;After determining export-oriented variation pattern, the second client can play dynamic while playing audio file
File is drawn, and according to the shape of the mouth as one speaks variation pattern, changes the shape of the mouth as one speaks of animating image in the animation file.
It should be noted that the first client is before encoding message file, Huo Zhe in the embodiment of the present application
Two clients can carry out the type conversion of information after successfully being read to message file.For example, being directed to the first client
For end, the first client is before encoding message file, and some type of information that user can be inputted is (such as " text
Originally " the information of type), it is converted into another type of information (such as the information of " audio " type), the letter for then again obtaining conversion
It ceases and is encoded to together as one of the information of at least two type with other kinds of information and type information
The file destination for having predetermined format.And for the second client, the second client after being read out to message file,
The certain type of file that can will be read, is converted into other kinds of file.For example, the audio file that will be read, turns
Text file is turned to, and the text information obtained to conversion is shown.
Embodiment 2
For inventive concept identical with the embodiment of the present application 1, the embodiment of the present application 2 provides a kind of information transmitting apparatus,
To solve in existing instant messaging, existing for the information sender formula taken under the scene for sending different types of information
The lower problem of efficiency.The concrete structure schematic diagram of the device is as shown in fig. 6, include following function unit:
Information determination unit 61, for determining the information for being sent at least two types of receiving end.
Coding unit 62, for being tool by information coding to be encoded according to the coding mode made an appointment with receiving end
The file destination of standby predetermined format.Wherein, the information to be encoded, including information determination unit 61 determine described at least
Two kinds of information.
Transmission unit 63, the file destination for having predetermined format described in obtaining coding unit 62 are encapsulated into data
Bao Zhong, and the data packet is sent to receiving end.
In order to enable receiving end can be accurately read the information of at least two type, in one embodiment,
It further include the respective type of type information of information for characterizing at least two type in the information to be encoded.
In one embodiment, coding unit 62 specifically can be used for: the information of at least two type saves
For corresponding different types of message file;According to the coding mode information, by the different types of message file and
The type information is encoded to the file destination for having predetermined format.
Optionally, coding unit 62 is according to the coding mode information, by the different types of message file and institute
Type information is stated, the file destination for having predetermined format is encoded to, can specifically include:, will according to the coding mode information
The different types of message file and information configuration file comprising the type information, are encoded to and have predetermined format
File destination.If coding mode information mentioned here includes compression coding mode, coding unit 62 specifically can be used for: root
According to the coding mode information, by the different types of message file and information configuration text comprising the type information
Part is encoded to the compressed file as the file destination.
In one embodiment, the coding mode information may include the first coding mode and the second coding mode.
In this case, coding unit 62 specifically can be used for: according to first coding mode, by the different types of letter
Breath file and the type information save as file to be processed;According to second coding mode, by the file to be processed
It is encoded to the file destination for having predetermined format.
When second coding mode includes compression coding mode, coding unit 62 can be used for: according to described second
The document No. to be processed is the compressed file as the file destination by coding mode.
Optionally, the information of previously described at least two type, including at least two in following information:
Text;Picture;Audio;Animation;Video.
Optionally, information transmitting apparatus and the receiving end described in the embodiment of the present application, all can be Instant Messenger
Believe client.
Using the device provided by the embodiments of the present application, since the device can be according to the coding made an appointment with receiving end
Mode, the information coding that will be sent at least two types of receiving end is the file destination for having predetermined format, and is sent
To receiving end, at least two different types of information are carried in a data packet so as to realize, are improved and are being sent not
Information transmitting efficiency under the scene of the information of same type.
For inventive concept identical with the embodiment of the present application 1, the embodiment of the present application also provides a kind of information acquisition device,
Information for sending to the method provided using the embodiment of the present application 1 is obtained.Specifically, the tool of the information acquisition device
Body structural schematic diagram is as shown in fig. 7, comprises following function unit:
Data packet receiving unit 71, for receiving the data packet of transmitting terminal transmission.
The data packet, comprising having the file destination of predetermined format;The file destination includes at least two types
Information.
Decoding unit 72, for according to the decoding process made an appointment with transmitting terminal, to the mesh for having predetermined format
Mark file is decoded, to obtain the information of at least two type.
It optionally, further include for characterizing at least two type in the file destination for having predetermined format
The respective type of type information of information.
In one embodiment, described device can also include Information reading unit.The Information reading unit is used for
Decoding unit 72 solves the file destination for having predetermined format according to the decoding process made an appointment with transmitting terminal
Yard, after the information to obtain at least two type, believed according to the type being decoded to the file destination
Breath, the information reading manner to be matched respectively using the respective type of information at least two type read acquisition
The information of at least two type.
In order to be shown to the information that Information reading unit is read, acquisition of information dress provided by the embodiments of the present application
Setting can also include: display unit, for using the respective class of information at least two type in Information reading unit
The information reading manner that type matches respectively after reading the information of at least two type of acquisition, shows the institute read
State the information of at least two types.
Specifically, display unit can be used for the information of compound at least two type for showing and reading.
Using the information acquisition device provided by the embodiments of the present application, due to what is received for data packet receiving unit 71
The file destination for the predetermined format for including in the data packet sent by transmitting terminal, the device can make an appointment according to transmitting terminal
Decoding process, the file destination for having predetermined format is decoded, to obtain the information of at least two type,
To be successfully realized the information for getting at least two types from a data packet, the acquisition efficiency of information is improved, is solved
In certainly existing instant messaging, efficiency existing for the information sender formula taken under the scene for sending different types of information compared with
Low problem.
Embodiment 3
For inventive concept identical with the embodiment of the present application 1 and embodiment 2, the embodiment of the present application also provides a kind of interface
System, to solve in existing instant messaging, the information sender formula taken under the scene for sending different types of information
The lower problem of existing efficiency.The concrete structure schematic diagram of the interface system is as shown in figure 8, include following functional unit:
Information determination unit 81 to be sent, for determining the information for being sent at least two types of receiving end;
Information sends control 82, sends instruction for detection information;After detecting that the information sends instruction, according to pre-
It is the file destination for having predetermined format by information coding to be encoded first with the coding mode of information receiving end agreement;By institute
It states the file destination for having predetermined format to be encapsulated into data packet, and the data packet is sent to receiving end.The information is sent
Control 82, the form of expression in the user interface can be a button, showing in user interface 90 as shown in Figure 9
The button 93 of " transmission ".
Wherein, the information to be encoded, at least two class determined including information determination unit 81 to be sent
The information of type.
In one embodiment, the information to be encoded further includes the letter for characterizing at least two type
Cease respective type of type information.
In the embodiment of the present application 3, information sends control 82 and how to realize information coding to be encoded to be to have pre- fix
The file destination of formula, and then be that data packet is sent by the target envelope, it may refer to the correlation in the embodiment of the present application 1
Description, details are not described herein again.
In one embodiment, the information determination unit to be sent 81, can specifically include candidate as shown in Figure 8
Information shows that subelement 811 and information choose control 812.Wherein:
Candidate information shows subelement 811, for showing the candidate information chosen for user in the user interface.
Information chooses control 812, for detecting the candidate information shown for candidate information display subelement 811
Choose instruction;After detecting selection instruction, the corresponding candidate information being selected is instructed according to selections, determination to
It is sent to the information of receiving end.Information chooses control 812, can be set in candidate information viewing area 91.For example, working as candidate information
For animation file title when, information choose control 812 detect for the animation file title selection instruction after,
It can determine that corresponding animation file is used as according to the title for choosing the corresponding animation file of instruction and be sent to receiving end
Information;When candidate information is dynamic expression file, information is chosen control 812 and is being detected for the dynamic expression file
Selection instruction after, the corresponding dynamic expression file of selections instruction can be directly determined, as being sent to receiving end
Information.
For candidate information shows subelement 811, candidate information shows subelement 811, such as can be in such as Fig. 9 institute
In the candidate information viewing area 91 in user interface 90 shown, candidate information is shown, candidate information mentioned here, such as can be with
It is dynamic expression file, is also possible to title of animation file, etc..
In the embodiment of the present application 3, it is shown in the candidate information shown in candidate information viewing area 91, can be same type
Information, also may include different types of information.When the candidate information for being shown in candidate information viewing area 91 is same type
Information (or candidate information corresponds to same type of information) when, information choose control 812 determine described in the candidate letter that is selected
It ceases (or the corresponding same type of information of candidate information), it is different types of as be sent to receiving end described at least two
The information of one of information type;When the candidate information for being shown in candidate information viewing area 91 includes different types of information,
And the candidate information being selected, when including (or corresponding) different types of information, information chooses control 812 and determines the quilt
The different types of information of (or corresponding) included by the candidate information of selection, as receiving end to be sent described at least two not
Different types of information in the information of same type.
In the embodiment of the present application 3, the information of receiving end can be sent to from primary input for the ease of user, it is described to be sent
Information determination unit 81 also may include input acquisition of information subelement 813.The input acquisition of information subelement 813, for obtaining
Take the information inputted by message input device.
Message input device mentioned here generally refers to the information input dress for the equipment that the interface system is mounted on
It sets.The message input device such as can include but is not limited at least one of touch screen, keyboard, microphone and camera.
In the embodiment of the present application, information determination unit 81 to be sent can both include that candidate information shows 811 He of subelement
Information chooses control 812, and including inputting acquisition of information subelement 813;It, can also be with alternatively, information determination unit 81 to be sent
It only include that candidate information shows that subelement 811 and information choose control 812, without including input acquisition of information subelement 813;Or
Person, information determination unit 81 to be sent can not also include candidate information display subelement 811 and information chooses control 812, and
It only include input acquisition of information subelement 813.The embodiment of the present application only requires that information determination unit 81 to be sent is able to satisfy acquisition
To at least two different types of information, without limitation to the specific structure of information determination unit 81 to be sent.
For message input device described above, when the message input device includes keyboard or touch screen
When, the input acquisition of information subelement 813 specifically can be used for: display text input frame in the user interface;And it obtains
Take the text information inputted by the Text Entry.By taking user interface shown in Fig. 9 as an example, for example, the user interface 90
In Text Entry 92, as input acquisition of information subelement 813 shown by Text Entry.
When the message input device includes microphone, the input acquisition of information subelement 813 is specifically used for:
Voice recording button control is shown in user interface;And the first specified operation is performed in the voice recording button control
Afterwards, the audio data converted to the audio signal by microphone input, the information as the input are obtained.It should
First specified operation, for example can be the voice recording button control shown in user's long-pressing user interface, etc..
When the message input device includes camera, the input acquisition of information subelement 813 is specifically used for:
Video record button control is shown in user interface;And the second specified operation is performed in the video record button control
Afterwards, the image data taken by camera, the information as the input are obtained.Mentioned here second specified operation,
For example can be the voice recording button control shown in user click or long-pressing user interface, etc..
In the embodiment of the present application, it is contemplated that the limited area of user interface, if input acquisition of information subelement 81 exists simultaneously
Not only the Text Entry had been shown in one user interface, but also showed that the voice recording button control and the video record are pressed
Button control, may cause the content in user interface seems more crowded, is not used in user's exact operations, therefore, input letter
Breath obtains subelement 81 can show the Text Entry and the voice recording button control respectively in different user interface
Part (or described video record button control).
For example, when the message input device includes keyboard or touch screen, the input acquisition of information subelement
813, specifically it can be used for: the display text input frame 92 in user interface 90 as shown in Figure 9;And it obtains by described
The text information that Text Entry 92 inputs.In addition, input acquisition of information subelement 813 can also be shown in user interface 90
Show that animation selection and text input toggle control 94.The main function of animation selection and text input toggle control 94, is to be used for
Detect changing interface instruction.Changing interface instruction, for example be and clicking animation selection and text input toggle control 94
Triggering.
The input acquisition of information subelement 813 can be used for selecting in animation and text input toggle control 94 detect
To after changing interface instruction, by showing user interface 90 as shown in Figure 9, it is switched to and shows user circle as shown in Figure 10
Face 100.The input acquisition of information subelement 813 can hide the Text Entry 92 in the user interface 100.Separately
On the one hand, candidate information shows subelement 811, can be used for being shown in and being originally used for showing that the text is defeated candidate information
Enter the display area of frame 92.Specifically, in user interface 100 user show candidate information display area, be Figure 10 shown in
Candidate information viewing area 101.Correspondingly, in user interface 100, information chooses control 812 and is shown in the time for detecting
The selection of the candidate information in information display area 101 is selected to instruct;After detecting the selection instruction, according to the selection
The corresponding candidate information being selected is instructed, determines the information for being sent to receiving end.In user interface 100, information choosing
Control 812 is taken, may be in candidate information viewing area 101 as shown in Figure 10.
In addition, input acquisition of information subelement 813 can show voice recording button control 102 in user interface 100.
Whether voice recording button control 102 performs the first specified operation for voice recording button control for detecting user.It is defeated
Enter acquisition of information subelement 813, can detect that user executes for the voice recording button in voice recording button control 102
When the first specified operation, the audio data converted to the audio signal by microphone input is obtained, as institute
State the information of input.
Alternatively, input information acquisition unit 813 can also show video record button control (figure in user interface 100
It is not shown in 10).Whether video record button control performs the second finger for video record button control for detecting user
Fixed operation.Input acquisition of information subelement 813, can video record button control detect user for the voice recording by
When button performs the second specified operation, the video data converted to the vision signal inputted by camera is obtained,
Information as the input.
In order to realize that the information chosen to user shows that the interface system can also include:
Composite information display unit 83, for the letter at least two type for including in the information to be encoded
Breath carries out compound display.It, can for carrying out the region of compound display to the different types of information for including in information to be encoded
Referring to the composite information viewing area 95 in Fig. 9 and Figure 10.
Composite information display unit 83 can be also used for carrying out the different types of information that transmitting terminal is sent compound aobvious
Show.How compound display is carried out to different types of information, may refer to associated description in embodiment 1 and embodiment 2, herein not
It repeats again.
It is not detailed about the function implementation for the functional unit that the interface system provided by the embodiments of the present application is included
Place may refer to the relevant introduction in embodiment 1 and embodiment 2, and details are not described herein again.
Using the interface system provided by the embodiments of the present application, can be implemented as user's offer can choose or input difference
The user interface of the information of type, and the user of input and/or selection based on to(for) information, according in advance with information receiving end about
Information coding to be encoded is to be sent to receiving end after the file destination for having predetermined format, to mention by fixed coding mode
A kind of efficient information sender formula has been supplied, has been solved in existing instant messaging, in the scene for sending different types of information
The lower problem of efficiency existing for lower taken information sender formula.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (17)
1. a kind of method for sending information characterized by comprising
Transmitting terminal determines the information for being sent at least two types of receiving end;
It is the target text for having predetermined format by information coding to be encoded according to the coding mode made an appointment with receiving end
Part;Wherein, the information to be encoded, the information including at least two type;The coding mode, including the first coding
Mode and the second coding mode;
The file destination for having predetermined format is encapsulated into data packet, and the data packet is sent to receiving end;
It wherein, is the mesh for having predetermined format by information coding to be encoded according to the coding mode made an appointment with receiving end
Mark file, comprising:
The information of at least two type is saved as corresponding different types of message file by transmitting terminal;
According to first coding mode, the different types of message file is written to a binary file;
According to second coding mode, the binary file is encoded to the file destination for having predetermined format;
Wherein, the first coding mode specifically comprises the following steps:
Step 1: the binary file F for saving message file is created;
Step 2: it determines the binary length value of the message file, and determining binary length value is subjected to binary system volume
After code, binary file F is written;
Step 3: after the mark of the corresponding reading manner of the message file is carried out binary coding, the binary system is written
File F;
Step 4: after the type identification of the message file is carried out binary coding, the binary file F is written;
Step 5: by described message file itself, the binary file F is written.
2. the method as described in claim 1, which is characterized in that further include described for characterizing in the information to be encoded
The respective type of type information of the information of at least two types.
3. the method as described in claim 1, which is characterized in that second coding mode, including compression coding mode;Then
According to second coding mode, the binary file is encoded to the file destination for having predetermined format, comprising:
According to second coding mode, the binary file is encoded to the compressed file as the file destination.
4. a kind of information acquisition method characterized by comprising
Receiving end receives the data packet that transmitting terminal is sent;The data packet, comprising having the file destination of predetermined format;The mesh
Mark the information that file includes at least two types;
According to the decoding process made an appointment with transmitting terminal, the file destination for having predetermined format is decoded, to obtain
Obtain the information of at least two type;The decoding process, including the first decoding process and the second decoding process;
Wherein, according to the decoding process made an appointment with transmitting terminal, the file destination for having predetermined format is decoded,
To obtain the information of at least two type, comprising:
According to second decoding process, the file destination is decoded, obtains a binary file;
According to first decoding process, the binary file is decoded, to obtain the letter of at least two type
Breath;
Wherein, the first decoding process specifically comprises the following steps:
Step 1: receiving end is decoded the file destination using the second decoding process, to obtain binary file
After F', a text file or a internal storage data are created for storing information configuration table;
Step 2: the binary system in imformosome is read in order since the specified reading position of binary file F' in receiving end
Number, and the binary number in addition to message file that will be read, are successively saved in information configuration table by reading order;
Step 3: receiving end calculates separately the unique identifier of each message file in binary file F', and information is recorded
In allocation list;
Step 4: when receiving end will be shown all types of information in the binary file F', receiving end is read
Information configuration table, and according to the information in information configuration table, realize the reading to the message file in the binary file F';
Step 5: receiving end is shown the message file read.
5. method as claimed in claim 4, which is characterized in that further include using in the file destination for having predetermined format
In the respective type of type information of information for characterizing at least two type.
6. method as claimed in claim 5, which is characterized in that from according to the decoding process made an appointment with transmitting terminal, to institute
It states the file destination for having predetermined format to be decoded, after the information to obtain at least two type, the method is also wrapped
It includes:
Receiving end according to the type information being decoded to the file destination, using at least two type
The information reading manner that matches respectively of the respective type of information, read the information of at least two type of acquisition.
7. method as claimed in claim 6, which is characterized in that receiving end is used with the information of at least two type respectively
The information reading manner that matches respectively of type, after reading the information of at least two type of acquisition, the method is also
Include:
Receiving end shows the information of at least two type read.
8. the method for claim 7, which is characterized in that receiving end shows the letter of at least two type read
Breath, comprising:
The compound information for showing at least two type read in receiving end.
9. a kind of information transmitting apparatus characterized by comprising
Information determination unit, for determining the information for being sent at least two types of receiving end;
Coding unit, for information coding to be encoded being had predetermined according to the coding mode made an appointment with receiving end
The file destination of format;Wherein, the information to be encoded, the information including at least two type;The coding mode,
Including the first coding mode and the second coding mode;
Transmission unit for the file destination for having predetermined format to be encapsulated into data packet, and the data packet is sent out
Give receiving end;
Wherein, coding unit is used for:
By the information of at least two type, corresponding different types of message file is saved as;
According to first coding mode, the different types of message file is written to a binary file;
According to second coding mode, the binary file is encoded to the file destination for having predetermined format;
Wherein, the first coding mode specifically comprises the following steps:
Step 1: the binary file F for saving message file is created;
Step 2: it determines the binary length value of the message file, and determining binary length value is subjected to binary system volume
After code, binary file F is written;
Step 3: after the mark of the corresponding reading manner of the message file is carried out binary coding, the binary system is written
File F;
Step 4: after the type identification of the message file is carried out binary coding, the binary file F is written;
Step 5: by described message file itself, the binary file F is written.
10. device as claimed in claim 9, which is characterized in that further include described for characterizing in the information to be encoded
The respective type of type information of the information of at least two types.
11. a kind of information acquisition device characterized by comprising
Data packet receiving unit, for receiving the data packet of transmitting terminal transmission;The data packet, comprising having the mesh of predetermined format
Mark file;The file destination includes the information of at least two types;
Decoding unit, for according to the decoding process made an appointment with transmitting terminal, to the file destination for having predetermined format
It is decoded, to obtain the information of at least two type;The decoding process, including the first decoding process and the second decoding
Mode;
Wherein, decoding unit is used for:
According to second decoding process, the file destination is decoded, obtains a binary file;
According to first decoding process, the binary file is decoded, to obtain the letter of at least two type
Breath;
Wherein, the first decoding process specifically comprises the following steps:
Step 1: receiving end is decoded the file destination using the second decoding process, to obtain binary file
After F', a text file or a internal storage data are created for storing information configuration table;
Step 2: the binary system in imformosome is read in order since the specified reading position of binary file F' in receiving end
Number, and the binary number in addition to message file that will be read, are successively saved in information configuration table by reading order;
Step 3: receiving end calculates separately the unique identifier of each message file in binary file F', and information is recorded
In allocation list;
Step 4: when receiving end will be shown all types of information in the binary file F', receiving end is read
Information configuration table, and according to the information in information configuration table, realize the reading to the message file in the binary file F';
Step 5: receiving end is shown the message file read.
12. device as claimed in claim 11, which is characterized in that in the file destination for having predetermined format, further include
For characterizing the respective type of type information of information of at least two type.
13. device as claimed in claim 12, which is characterized in that described device further include:
Information reading unit, in decoding unit according to the decoding process made an appointment with transmitting terminal, to it is described have it is predetermined
The file destination of format is decoded, and after the information to obtain at least two type, is carried out according to the file destination
Decode the obtained type information, the information to match respectively using the respective type of information at least two type
Reading manner reads the information of at least two type of acquisition.
14. a kind of interface system characterized by comprising
Information determination unit to be sent, for determining the information for being sent at least two types of receiving end;
Information sends control, sends instruction for detection information;After detecting that the information sends instruction, according in advance with letter
The coding mode for ceasing receiving end agreement, is the file destination for having predetermined format by information coding to be encoded;Have described
The file destination of predetermined format is encapsulated into data packet, and the data packet is sent to receiving end;Wherein, described to be encoded
Information, the information including at least two type that information determination unit to be sent is determined;The coding mode, including the
One coding mode and the second coding mode;
Wherein, information sends control, is used for:
By the information of at least two type, corresponding different types of message file is saved as;
According to first coding mode, the different types of message file is written to a binary file;
According to second coding mode, the binary file is encoded to the file destination for having predetermined format;
Wherein, the first coding mode specifically comprises the following steps:
Step 1: the binary file F for saving message file is created;
Step 2: it determines the binary length value of the message file, and determining binary length value is subjected to binary system volume
After code, binary file F is written;
Step 3: after the mark of the corresponding reading manner of the message file is carried out binary coding, the binary system is written
File F;
Step 4: after the type identification of the message file is carried out binary coding, the binary file F is written;
Step 5: by described message file itself, the binary file F is written.
15. interface system as claimed in claim 14, which is characterized in that the information determination unit to be sent, comprising:
Candidate information shows subelement, for showing the candidate information chosen for user in the user interface;
Information chooses control, for detecting the selection instruction for being directed to the candidate information;After detecting the selection instruction, root
The corresponding candidate information being selected is instructed according to the selection, determines the information for being sent to receiving end.
16. the interface system as described in claims 14 or 15, which is characterized in that the information determination unit to be sent, comprising:
Acquisition of information subelement is inputted, for according to the information inputted by message input device, determination to be sent to receiving end
Information.
17. interface system as claimed in claim 16, it is characterised in that:
When the message input device includes touch screen or keyboard, the input acquisition of information subelement is specifically used for:
Display text input frame in user interface;And obtain the text information inputted by the Text Entry;
When the message input device includes microphone, the input acquisition of information subelement is specifically used for:
Voice recording button control is shown in the user interface;And the first finger is performed in the voice recording button control
After fixed operation, obtains the audio signal by microphone input and be converted into audio data, the information as the input;
When the message input device includes camera, the input acquisition of information subelement is specifically used for: in user interface
Middle display video record button control;And it after the video record button control is performed the second specified operation, obtains logical
Cross the image data that camera takes, the information as the input.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610463536.6A CN106209575B (en) | 2016-06-23 | 2016-06-23 | Method for sending information, acquisition methods, device and interface system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610463536.6A CN106209575B (en) | 2016-06-23 | 2016-06-23 | Method for sending information, acquisition methods, device and interface system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209575A CN106209575A (en) | 2016-12-07 |
CN106209575B true CN106209575B (en) | 2019-09-24 |
Family
ID=57461852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610463536.6A Active CN106209575B (en) | 2016-06-23 | 2016-06-23 | Method for sending information, acquisition methods, device and interface system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209575B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107766571B (en) * | 2017-11-08 | 2021-02-09 | 北京大学 | Multimedia resource retrieval method and device |
CN109547327B (en) * | 2018-11-01 | 2021-08-03 | 苏州达家迎信息技术有限公司 | Information sending method, device, storage medium and equipment |
CN112583878B (en) * | 2019-09-30 | 2023-03-14 | 阿波罗智能技术(北京)有限公司 | Vehicle information checking method, device, equipment and medium |
CN115442469A (en) * | 2022-08-31 | 2022-12-06 | 南京维沃软件技术有限公司 | Message output and message sending method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247589A (en) * | 2007-07-04 | 2008-08-20 | 华为技术有限公司 | Mobile terminal data conversion/backup method, device and system |
CN104159203A (en) * | 2014-08-29 | 2014-11-19 | 蓝信工场(北京)科技有限公司 | Method and device of carrying out mixed arrangement on multimedia information in chat dialog box |
CN105207886A (en) * | 2015-08-12 | 2015-12-30 | 深圳前海珩昌科技有限公司 | Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8577969B2 (en) * | 2007-01-30 | 2013-11-05 | At&T Intellectual Property I, L.P. | System and method for multimedia messaging |
CN105141567B (en) * | 2014-05-26 | 2019-03-01 | 腾讯科技(深圳)有限公司 | Interaction data processing method and system, the exchange method of terminal applies and server-side |
-
2016
- 2016-06-23 CN CN201610463536.6A patent/CN106209575B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247589A (en) * | 2007-07-04 | 2008-08-20 | 华为技术有限公司 | Mobile terminal data conversion/backup method, device and system |
CN104159203A (en) * | 2014-08-29 | 2014-11-19 | 蓝信工场(北京)科技有限公司 | Method and device of carrying out mixed arrangement on multimedia information in chat dialog box |
CN105207886A (en) * | 2015-08-12 | 2015-12-30 | 深圳前海珩昌科技有限公司 | Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system |
Also Published As
Publication number | Publication date |
---|---|
CN106209575A (en) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109819313B (en) | Video processing method, device and storage medium | |
CN106209575B (en) | Method for sending information, acquisition methods, device and interface system | |
US11582176B2 (en) | Context sensitive avatar captions | |
CN109120866B (en) | Dynamic expression generation method and device, computer readable storage medium and computer equipment | |
EP3095091B1 (en) | Method and apparatus of processing expression information in instant communication | |
US11606532B2 (en) | Video reformatting system | |
WO2017079056A1 (en) | Streaming data associated with cells in spreadsheets | |
WO2016007374A1 (en) | Systems and methods for manipulating and/or concatenating videos | |
CN105847597A (en) | Apparatus and method for reproducing handwritten message by using handwriting data | |
CN108173747B (en) | Information interaction method and device | |
CN113569037A (en) | Message processing method and device and readable storage medium | |
EP4300431A1 (en) | Action processing method and apparatus for virtual object, and storage medium | |
CN114880062B (en) | Chat expression display method, device, electronic device and storage medium | |
CN108900855A (en) | live content recording method and device | |
CN107547922B (en) | Information processing method, device, system and computer readable storage medium | |
CN112771881A (en) | Bullet screen processing method and device, electronic equipment and computer readable storage medium | |
CN108984071A (en) | Text recombination method, device, terminal device and computer readable storage medium | |
CN113010825A (en) | Data processing method and related device | |
CN116055762A (en) | Video synthesis method and device, electronic equipment and storage medium | |
CN114567693B (en) | Video generation method and device and electronic equipment | |
CN106371555A (en) | Method and equipment for inputting information on wearable equipment | |
CN110166345A (en) | Resource sharing method, resource acquiring method, device and storage medium | |
CN103064588A (en) | Method and system for outputting streaming media for candidate items of input method | |
CN106961626A (en) | The method and apparatus that a kind of video metamessage auto-complete is arranged | |
CN111726285A (en) | Instant messaging method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190326 Address after: 361012 3F-A193, Innovation Building C, Software Park, Xiamen Torch High-tech Zone, Xiamen City, Fujian Province Applicant after: Xiamen Black Mirror Technology Co., Ltd. Address before: 9th Floor, Maritime Building, 16 Haishan Road, Huli District, Xiamen City, Fujian Province, 361000 Applicant before: XIAMEN HUANSHI NETWORK TECHNOLOGY CO., LTD. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |