Summary of the invention
The embodiment of the invention discloses a kind of processing method of image link and systems, how to efficiently reduce for solving
The problem of occupying the memory space of server, reducing the maintenance pressure of server and save customer flow.
First aspect of the embodiment of the present invention discloses a kind of processing method of image link, comprising:
The image link is generated two-dimension code image by server;
The two-dimension code image is encoded into character string by the server, and sends the character string to social client;
The social client receives the character string that the server is sent;
The character string is decoded into the two-dimension code image by the social client;
The social client exports the two-dimension code image.
In first aspect of the embodiment of the present invention, before the image link is generated two-dimension code image by the server,
The method also includes:
The server receives user's picture that the social client is sent and the picture progress split of main broadcaster user obtains
The Split picture obtained;
The server stores the Split picture;
The server obtains the storage address of the Split picture as image link.
In first aspect of the embodiment of the present invention, the two-dimension code image is encoded into character string by the server, comprising:
The two-dimension code image is encoded into byte stream by the server;
And the byte stream is encoded into base64 character string by the server.
In first aspect of the embodiment of the present invention, the character string is decoded into the two dimensional code figure by the social client
Piece, comprising:
The base64 character string is decoded into byte stream by the social client;
And the byte stream is decoded into the two-dimension code image by the social client.
In first aspect of the embodiment of the present invention, the server sends the character string to social client, comprising:
The server determines the social client using the login frequency of social client or frequency of interaction as foundation
User's viscosity;Wherein, the height of user's viscosity depends on the size for logging in frequency or the frequency of interaction
Size;
The server judges whether user's viscosity of the social client is more than default viscosity, if it does, to institute
It states social client and sends the character string.
Second aspect of the embodiment of the present invention discloses a kind of processing system of image link, including server and social client
End, in which:
The server, for the image link to be generated two-dimension code image;
The server is also used to for the two-dimension code image being encoded into character string, and to described in social client transmission
Character string;
The social client, the character string sent for receiving the server;
The social client is also used to the character string being decoded into the two-dimension code image;
The social client is also used to export the two-dimension code image.
In second aspect of the embodiment of the present invention:
The server is also used to before the image link is generated two-dimension code image, receives the social client
The picture of the user's picture and main broadcaster user that send is held to carry out the Split picture of split acquisition;And store the Split picture;
And the storage address of the Split picture is obtained as image link.
In second aspect of the embodiment of the present invention, the two-dimension code image is encoded into the mode of character string by the server
Specifically:
The two-dimension code image is encoded into byte stream by the server;
And the byte stream is encoded into base64 character string by the server.
In second aspect of the embodiment of the present invention, the character string is decoded into the two dimensional code figure by the social client
The mode of piece specifically:
The base64 character string is decoded into byte stream by the social client;
And the byte stream is decoded into the two-dimension code image by the social client.
In second aspect of the embodiment of the present invention, the server has to the mode that social client sends the character string
Body are as follows:
The server determines the social client using the login frequency of social client or frequency of interaction as foundation
User's viscosity;Wherein, the height of user's viscosity depends on the size for logging in frequency or the frequency of interaction
Size;
The server judges whether user's viscosity of the social client is more than default viscosity, if it does, to institute
It states social client and sends the character string.
In the embodiment of the present invention, image link is generated two-dimension code image by server, and two-dimension code image is encoded into word
Symbol string, and it is transmitted directly to social client, so as to efficiently reduce the memory space that two-dimension code image occupies server,
And reduce the maintenance pressure of server maintenance two-dimension code image;Meanwhile social client can be saved without downloading two-dimension code image
Customer flow is saved, user experience is promoted.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of processing method of image link and systems, can efficiently reduce occupancy service
The memory space of device, the maintenance pressure for reducing server and saving customer flow.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the processing method of image link disclosed by the embodiments of the present invention.
As shown in Figure 1, the processing method of the image link may comprise steps of.
101, image link is generated two-dimension code image by server.
In the embodiment of the present invention, server can call two-dimension code generator that image link is generated two-dimension code image.Its
In, image link can refer to the storage address of picture.Further, in the embodiment of the present invention, picture can be Split picture,
For example, it may be the split figure as obtained from user's picture and the progress split of the picture of main broadcaster user that social client is sent
Piece.
102, two-dimension code image is encoded into character string by server, and sends character string to social client.
In one embodiment, two-dimension code image can be encoded into byte stream by server, and byte stream is encoded into
Base64 character string.Certainly, byte stream can also be encoded into general character string or word using other coding modes by server
Throttle array, and the embodiment of the present invention is not construed as limiting.
Wherein, since Unicode character set can be used in character string, multi-language character can be supported, therefore, server is by word
Throttling is encoded into base64 character string not only and may be implemented higher efficiency of transmission, and (character string is usually transmitted with 16, and byte
Stream is usually transmitted with 8), it can also realize and be transmitted across kinds of platform, meanwhile, base64 character string can also be supported in webpage
Browser directly displays.
103, social client receives the character string that server is sent.
104, character string is decoded into two-dimension code image by social client.
In one embodiment, base64 character string can be decoded into byte stream by social client, then by byte stream
It is decoded into two-dimension code image.
105, social client exports two-dimension code image.
In the embodiment of the present invention, user can click or the two-dimension code image of long-pressing social client output, so that social
Client can parse two-dimension code image and obtain image link, and obtain corresponding picture output display according to image link.
In the method depicted in fig. 1, image link is generated two-dimension code image by server, and two-dimension code image is encoded
At character string, and it is transmitted directly to social client, so as to efficiently reduce the storage that two-dimension code image occupies server
Space, and reduce the maintenance pressure of server maintenance two-dimension code image;Meanwhile social client is without downloading two dimensional code figure
Piece can save customer flow, promote user experience.
Referring to Fig. 2, Fig. 2 is the process signal of the processing method of another image link disclosed by the embodiments of the present invention
Figure.As shown in Fig. 2, the processing method of the image link may comprise steps of.
201, family picture and the picture of main broadcaster user are carried out split in social client by user, obtain Split picture.
202, Split picture is sent to server by social client.
203, server receives the Split picture that social client is sent.
204, server stores Split picture.
205, server obtains the storage address of Split picture as image link.
206, image link is generated two-dimension code image by server.
207, two-dimension code image is encoded into base64 character string by server.
208, server sends base64 character string to social client.
209, social client receives the base64 character string that server is sent.
210, base64 character string is decoded into two-dimension code image by social client.
211, social client exports two-dimension code image.
When also referring to Fig. 3, Fig. 3 being a kind of social client output two-dimension code image disclosed by the embodiments of the present invention
Interface schematic diagram.As shown in figure 3, social client export two-dimension code image when interface on can also simultaneously export server hair
The Split picture sent.
In the method depicted in fig. 2, image link is generated two-dimension code image by server, and two-dimension code image is encoded
At base64 character string, and it is transmitted directly to social client, occupies server so as to efficiently reduce two-dimension code image
Memory space, and reduce server maintenance two-dimension code image maintenance pressure;Meanwhile social client is without downloading two dimension
Code picture, can save customer flow, promote user experience.
Referring to Fig. 4, Fig. 4 is the process signal of the processing method of another image link disclosed by the embodiments of the present invention
Figure.As shown in figure 4, the processing method of the image link may comprise steps of.
401, family picture and the picture of main broadcaster user are carried out split in social client by user, obtain Split picture.
402, Split picture is sent to server by social client.
403, server receives the Split picture that social client is sent.
404, server stores Split picture.
405, server obtains the storage address of Split picture as image link.
406, image link is generated two-dimension code image by server.
407, two-dimension code image is encoded into base64 character string by server.
In one embodiment, two-dimension code image can be encoded into byte stream by server, and byte stream is encoded into
Base64 character string.
408, server determines the use of social client using the login frequency of social client or frequency of interaction as foundation
Family viscosity;Wherein, the height of user's viscosity depends on logging in the size of frequency or the size of frequency of interaction.
For example, the login frequency of social client and the product of predetermined coefficient can be calculated, as social client
User's viscosity;Alternatively, the frequency of interaction of social client and the product of predetermined coefficient can be calculated, as social client
User's viscosity.Wherein, frequency of interaction refers to that social client sends the frequency of information, alternatively, referring to that social client receives letter
The frequency of breath, the embodiment of the present invention is without limitation.
409, server judges whether user's viscosity of social client is more than default viscosity, if it does, executing step
410;Conversely, exporting prompt information to social client, which is used to prompt user's viscosity of social client too low,
Two-dimension code image can not be enjoyed, and terminates this process.
410, server sends base64 character string to social client.
411, social client receives the base64 character string that server is sent.
412, base64 character string is decoded into two-dimension code image by social client.
In one embodiment, base64 character string can be decoded into byte stream by social client, then by byte stream
It is decoded into two-dimension code image.
In the embodiment of the present invention, by implementing 408~step 409 of above-mentioned steps, server can be only to user's viscosity
Higher social client sends base64 character string, so that only this higher a part of social client of user's viscosity just may be used
To receive base64 character string and be decoded into two-dimension code image, so as to attract more users using social client, make
Obtaining social client can more widely be applied.
413, social client exports two-dimension code image.
In the method described in Fig. 4, image link is generated two-dimension code image by server, and two-dimension code image is encoded
At character string, and it is transmitted directly to the higher social client of user's viscosity, is accounted for so as to efficiently reduce two-dimension code image
With the memory space of server, and the maintenance pressure of reduction server maintenance two-dimension code image;Meanwhile social client is not necessarily to
Two-dimension code image is downloaded, customer flow can be saved, promotes user experience.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of the processing system of image link disclosed by the embodiments of the present invention.
As shown in figure 5, the processing system of the image link may include:
Server 501 and social client 502, wherein server 501 is connect with social client 502 by internet,
Wherein:
Server 501, for image link to be generated two-dimension code image;
Server 501 is also used to for two-dimension code image being encoded into character string, and sends character string to social client 402;
Social client 502, for receiving the character string of the transmission of server 501;
Social client 502 is also used to for character string being decoded into dimension code picture;
Social client 502 is also used to export two-dimension code image.
As an alternative embodiment, in the system described in Fig. 5:
Server 501 is also used to before image link is generated two-dimension code image, is received social client 502 and is sent
The picture by user's picture and main broadcaster user carry out split and the Split picture that obtains;And storage Split picture;And
The storage address of Split picture is obtained as image link.
As an alternative embodiment, in the system described in Fig. 5:
The mode that two-dimension code image is encoded into character string is specifically as follows by server 501:
Two-dimension code image is encoded into byte stream by server 501;
And server 501 changes into byte stream for character string.
As an alternative embodiment, in the system described in Fig. 5:
The mode that character string is decoded into two-dimension code image is specifically as follows by social client 502:
Base64 character string is decoded into byte stream by social client 502;
And byte stream is decoded into two-dimension code image by social client 502.
As an alternative embodiment, in the system described in Fig. 5:
Server 501 sends the mode of character string to social client 502 specifically:
Server 501 determines social client using the login frequency of social client 502 or frequency of interaction as foundation
User's viscosity;Wherein, the height of user's viscosity depends on logging in the size of frequency or the size of the frequency of interaction;
Server 501 judges whether user's viscosity of social client is more than default viscosity, if it does, to social client
End sends character string.
In the processing system of the image link described in Fig. 5, image link is generated two-dimension code image by server, and will
Two-dimension code image is encoded into character string, and is transmitted directly to the higher social client of user's viscosity, so as to effectively subtract
Few two-dimension code image occupies the memory space of server, and reduces the maintenance pressure of server maintenance two-dimension code image;Meanwhile
Social client can save customer flow, promote user experience without downloading two-dimension code image.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium include read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), programmable read only memory (Programmable Read-only Memory, PROM), erasable programmable is read-only deposits
Reservoir (Erasable Programmable Read Only Memory, EPROM), disposable programmable read-only memory (One-
Time Programmable Read-Only Memory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory
(Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact
Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic tape storage or can
For carrying or any other computer-readable medium of storing data.
The processing method and system of a kind of image link disclosed by the embodiments of the present invention are described in detail above, this
Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to
It facilitates the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.