CN108984315B - Application data processing method and device, terminal and readable medium - Google Patents

Application data processing method and device, terminal and readable medium Download PDF

Info

Publication number
CN108984315B
CN108984315B CN201810616922.3A CN201810616922A CN108984315B CN 108984315 B CN108984315 B CN 108984315B CN 201810616922 A CN201810616922 A CN 201810616922A CN 108984315 B CN108984315 B CN 108984315B
Authority
CN
China
Prior art keywords
application
data
picture
filled
processed
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
Application number
CN201810616922.3A
Other languages
Chinese (zh)
Other versions
CN108984315A (en
Inventor
刘均
刘新
郑锦波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Golo Iov Data Technology Co ltd
Original Assignee
Golo Iov Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Golo Iov Data Technology Co ltd filed Critical Golo Iov Data Technology Co ltd
Priority to CN201810616922.3A priority Critical patent/CN108984315B/en
Publication of CN108984315A publication Critical patent/CN108984315A/en
Application granted granted Critical
Publication of CN108984315B publication Critical patent/CN108984315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Television Signal Processing For Recording (AREA)
  • Facsimiles In General (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses an application data processing method, an application data processing device, a terminal and a computer readable storage medium. The method comprises the following steps: the method comprises the steps that a first application obtains application data to be transmitted; the first application processes the application data to be transmitted to obtain processed application data; the first application selects a picture format and generates a data picture according to the processed application data and the picture format; and the first application stores the data picture into a terminal album so that a second application acquires the data picture from the terminal album and obtains the application data according to the data picture. According to the embodiment of the application, the application data can be stored in the terminal album in the picture format to realize the transmission of the application data, so that the occupation of resources of a server can be avoided, and the transmission of the application data can be realized without depending on a network.

Description

Application data processing method and device, terminal and readable medium
Technical Field
The present application relates to the field of information technology, and in particular, to an application data processing method, an application data processing apparatus, a terminal, and a computer-readable storage medium.
Background
At present, due to the limitation of the sandbox mechanism of the ios system, when application data transmission is performed between two application programs in the ios system, data transmission is mainly performed through a server. The principle is mainly as follows: one application program transmits the application data to be transmitted to the server through the network, and the other application program acquires and downloads the application data from the server through the network. Therefore, the data transmission mode through the server must depend on the network, and the resources of the server are occupied. If the network environment is poor, the transmission of the application data may fail.
Disclosure of Invention
The embodiment of the application data processing method and device, the terminal and the computer readable storage medium store the application data in a terminal album in a picture format to realize transmission of the application data, so that occupation of resources of a server can be avoided, and transmission of the application data can be realized without depending on a network.
In one aspect, an embodiment of the present application provides an application data processing method, where the application data processing method includes:
the method comprises the steps that a first application obtains application data to be transmitted;
the first application processes the application data to be transmitted to obtain processed application data;
the first application selects a picture format and generates a data picture according to the processed application data and the picture format;
and the first application stores the data picture into a terminal album so that a second application acquires the data picture from the terminal album and obtains the application data according to the data picture.
In an embodiment, a specific implementation manner of selecting a picture format by the first application and generating a data picture according to the processed application data and the picture format may be: the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled; and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
In an embodiment, the first application fills the processed application data into the at least one data unit to be filled, and a specific implementation of generating the data picture may be: the first application determines a target data unit to be filled from the at least one data unit to be filled and acquires data to be filled of the target data unit to be filled; the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in; and the first application fills the matched application data into the target data unit to be filled to generate a data picture.
In another embodiment, a specific implementation manner of selecting a picture format by the first application and generating a data picture according to the processed application data and the picture format may be: the first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit; and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
In an embodiment, the specific implementation manner of the first application processing the application data to be transmitted to obtain the processed application data may be: the first application adopts a one-way irreversible function to operate the application data to be transmitted to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; and the first application obtains the processed application data according to the second data.
In an embodiment, a specific implementation manner of the first application obtaining the processed application data according to the second data may be: the first application adopts a compression algorithm to compress the second data to obtain third data; and the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data.
In another aspect, an embodiment of the present application provides an apparatus, where the apparatus includes:
an acquisition unit, configured to acquire application data to be transmitted by a first application;
the processing unit is used for processing the application data to be transmitted by the first application to obtain processed application data;
the processing unit is further used for selecting a picture format by the first application and generating a data picture according to the processed application data and the picture format;
and the storage unit is used for storing the data picture into a terminal album by the first application so as to enable a second application to obtain the data picture from the terminal album and obtain the application data according to the data picture.
In one embodiment, the processing unit may be specifically configured to: the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled; and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
In yet another embodiment, the processing unit may be specifically configured to: the first application determines a target data unit to be filled from the at least one data unit to be filled and acquires data to be filled of the target data unit to be filled; the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in; and the first application fills the matched application data into the target data unit to be filled to generate a data picture.
In yet another embodiment, the processing unit may be specifically configured to: the first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit; and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
In yet another embodiment, the processing unit may be specifically configured to: the first application adopts a one-way irreversible function to operate the application data to be transmitted to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; and the first application obtains the processed application data according to the second data.
In yet another embodiment, the processing unit may be specifically configured to: the first application adopts a compression algorithm to compress the second data to obtain third data; and the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data.
In another aspect, an embodiment of the present application provides a terminal, which includes a memory, an input device, an output device, and a processor, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is configured to store a computer program, and the computer program includes program instructions, where at least one program instruction is loaded by the processor and is configured to perform the following steps:
the method comprises the steps that a first application obtains application data to be transmitted;
the first application processes the application data to be transmitted to obtain processed application data;
the first application selects a picture format and generates a data picture according to the processed application data and the picture format;
and the first application stores the data picture into a terminal album so that a second application acquires the data picture from the terminal album and obtains the application data according to the data picture.
In one embodiment, the at least one program instruction is loaded by the processor and is used to execute the first application to select the picture format, and when the data picture is generated according to the processed application data and the picture format, the at least one program instruction may be loaded by the processor and is specifically used to execute: the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled; and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
In an embodiment, the at least one program instruction is loaded by a processor and used to execute the first application to fill the processed application data into the at least one data unit to be filled, and when generating the data picture, the at least one program instruction may be loaded by the processor and specifically used to execute: the first application determines a target data unit to be filled from the at least one data unit to be filled and acquires data to be filled of the target data unit to be filled; the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in; and the first application fills the matched application data into the target data unit to be filled to generate a data picture.
In another embodiment, the at least one program instruction is loaded by the processor and is used to execute the first application to select the picture format, and when the data picture is generated according to the processed application data and the picture format, the at least one program instruction may be loaded by the processor and is specifically used to execute: the first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit; and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
In an embodiment, the at least one program instruction is loaded by a processor and used to execute the first application to process the application data to be transmitted, and when the processed application data is obtained, the at least one program instruction may be loaded by the processor and specifically used to execute: the first application adopts a one-way irreversible function to operate the application data to be transmitted to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; and the first application obtains the processed application data according to the second data.
In an embodiment, when the at least one program instruction is loaded by the processor and used for executing the first application to obtain the processed application data according to the second data, the at least one program instruction may be loaded by the processor and specifically used for executing: the first application adopts a compression algorithm to compress the second data to obtain third data; and the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data.
In yet another aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium. The computer program comprises at least one program instruction which is loadable by a processor and adapted to perform the above-described application data processing method.
In the embodiment of the application, after the first application acquires the application data to be transmitted, the application data to be transmitted may be processed to obtain processed application data. Then, the first application can select a picture format, generate a data picture according to the processed application data and the selected picture format, and store the data picture in a terminal album, so that a second application obtains the data picture from the terminal album, and obtains the application data according to the data picture. Therefore, the application data processing method provided by the embodiment of the application can store the application data to be transmitted in the terminal album in a picture format so that the second application can obtain the application data from the terminal album, thereby realizing the transmission of the application data, avoiding occupying resources of a server, and realizing the transmission of the application data without depending on a network.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic diagram of a relationship between applications of a terminal according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an application data processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a user interface of a terminal according to an embodiment of the present application;
FIG. 4a is a schematic diagram of an image file structure of an initial picture according to an embodiment of the present disclosure;
fig. 4b is a schematic diagram of an image file structure of a data picture according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a user interface of a terminal according to an embodiment of the present application;
fig. 6 is a schematic flowchart of an application data processing method according to another embodiment of the present application;
FIG. 7 is a schematic diagram of an apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present application is described below with reference to the drawings in the embodiments of the present application.
For each application of the terminal, each application can access the picture resource in the terminal album under the condition that the user authorizes to access the terminal album, so the embodiment of the application provides an application data processing method, transmission of application data between different applications in the same terminal can be realized by utilizing the storage function of the terminal album, and the application data processing method can be executed by the terminal. The terminal may include, but is not limited to, portable devices such as smart phones, laptop or tablet computers, desktop computers, and the like. The terminal may include a first application, at least one second application, and a terminal album, as shown in fig. 1.
When the first application wants to transmit the application data to the second application, the first application can acquire the application data to be transmitted and can process the application data to be transmitted. And then generating a data picture according to the processed application data and the selected picture format, and storing the data picture into a terminal album. The second application can go to the terminal album to obtain the data picture, and perform a series of analysis processing on the obtained data picture to obtain the application data. The first application stores the application data to be transmitted in a terminal album in a picture format so that a second application can obtain the application data from the terminal album, the transmission of the application data among different applications of the same terminal is realized by utilizing the storage function of the terminal album, the network is not required, and the occupation of resources of a server can be avoided.
Due to the limitation of the sandbox mechanism of the ios system, when application data transmission is performed between two application programs in the ios system, data transmission is mainly performed through a server, and more server resources are occupied and the operation is more complicated. The application data processing method of the embodiment of the application is applied to an ios system, the application data are stored in a terminal album in a picture format to realize transmission of the application data, resources of a server can be prevented from being occupied, and transmission of the application data can be realized without depending on a network. The ios system mentioned here is only one application environment of the embodiments of the present application and should not be understood as a specific limitation of the present application.
Please refer to fig. 2, which is a flowchart illustrating an application data processing method according to an embodiment of the present application. As shown in fig. 2, the application data processing method includes:
s201, the first application acquires application data to be transmitted.
The first application may be any application in the terminal, and the first application may obtain the application data to be transmitted after receiving the task instruction for transmitting the application data, where the application data may include but is not limited to: files, video, pictures, voice, background data during application running, and the like.
In one embodiment, the task instruction for transmitting the application data received by the first application may be a press instruction or a click instruction of the user on an application interface of the first application of the terminal, and the terminal generates the task instruction according to the press instruction or the click instruction. For example, when a user wants to send application data such as a file and a video in a first application to a second application, the user interface of the first application displaying the application data may be clicked or pressed, or the application data may be clicked or pressed, and after the terminal detects a click or press instruction of the user, a task instruction may be generated and sent to the first application to instruct the first application to acquire application data to be transmitted.
In another embodiment, the task instruction for transmitting the application data received by the first application may also be a voice instruction sent by the user to the terminal, and the terminal generates the task instruction according to the voice instruction. For example, when a user wants to send a profile file in a first application to a contact user a in a second application, the user may say "please send the profile file in the first application to the contact user a in the second application" to the terminal. After the terminal acquires the voice instruction sent by the user, a task instruction for transmitting the data file can be generated according to the voice instruction, and the task instruction is sent to the first application so as to instruct the first application to acquire the related application data of the data file.
In still another embodiment, the task instruction for transmitting the application data received by the first application may also be automatically generated by the terminal. In the running process of the first application and the second application, if the terminal detects that the application data is transmitted between the first application and the second application, the terminal can automatically generate a task instruction for transmitting the application data and send the task instruction to the first application so as to instruct the first application to acquire the relevant application data of the material file. For example, if the terminal detects keywords such as "file", "second application", etc. in the application interface of the first application, as shown in fig. 3, it may be considered that there may be a transfer of application data between the first application and the second application, and a task instruction is generated. This task instruction is then sent to the first application to instruct the first application to fetch the file "one xxx solution.
S202, the first application processes the application data to be transmitted to obtain the processed application data.
After the first application acquires the application data to be transmitted, a series of processing such as hash operation, data compression, data encryption and the like can be performed on the application data to be transmitted, so that the processed application data is obtained.
The data compression processing here means: on the premise of not losing useful application data, the application data is reduced or reorganized by adopting a compression algorithm, so that redundancy and storage space of the application data are reduced. Therefore, when the first application performs data compression processing on the application data to be transmitted, a compression algorithm may be used to perform compression processing on the application data to be transmitted, where the compression algorithm may include, but is not limited to: huffman (Huffman) algorithm, LZW (Lenpel-Ziv & Welch) compression algorithm, LZ (Lempel-Ziv) algorithm, LZR (LZ-Renau) algorithm, and the like. By compressing the application data to be transmitted, the memory of the terminal album occupied by the application data can be reduced, the data transmission efficiency can be improved, and the data transmission time can be saved.
The encryption process here may be an asymmetric encryption process or a symmetric encryption process. The application data to be transmitted is subjected to hash operation, data encryption and other processing, so that the safety of the application data in the transmission process can be improved.
S203, the first application selects a picture format and generates a data picture according to the processed application data and the picture format.
The picture format refers to a format in which a computer (terminal) stores pictures, and the picture format may include, but is not limited to: JEPG format, JPG format, PNG format, BMP format, PCX format, TIFF format, GIF format, TAG format, and the like.
Since each picture format has a corresponding image file structure, multiple data units may be included in the image file structure. Therefore, in an embodiment, a specific implementation manner of the first application selecting the picture format and generating the data picture according to the processed application data and the picture format may be: a first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit; and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
For example, the image file structure of the initial picture may be as shown in fig. 4a, and the image file structure includes a plurality of data units, each of which has associated data filled therein. Wherein, the data unit for filling the letter is the filled data unit. The processed application data is "65468 br93e6h6 ijk", the data in the filled data units are replaced by the processed application data, an image file structure as shown in fig. 4b can be generated, and a corresponding data picture can be obtained according to the image file structure as shown in fig. 4 b.
It should be noted that, in an embodiment, after the first application acquires the application data to be transmitted, the application data to be transmitted may not be processed, that is, step S202 is not executed. Therefore, in step S203, after the first application selects the picture format, the data picture can be directly generated according to the application data to be transmitted and the picture format.
S204, the first application stores the data picture into a terminal album so that a second application obtains the data picture from the terminal album and obtains the application data according to the data picture.
After the first application generates the data picture, the data picture may be saved in a terminal album, as shown in fig. 5. In one embodiment, since the data picture is generated according to the image file structure of the initial picture and the processed application data, there may be no actual image content in the data picture, and the user opens the data picture in the terminal album, and the content in the data picture will be displayed in the user interface of the terminal in a messy code form. After the second application acquires the data picture from the terminal album, the data picture can be analyzed to obtain application data. The parsing process herein may include, but is not limited to, a hash operation, a data decompression process, and a data decryption process.
In the embodiment of the application, after the first application acquires the application data to be transmitted, the application data to be transmitted may be processed to obtain processed application data. Then, the first application can select a picture format, generate a data picture according to the processed application data and the selected picture format, and store the data picture in a terminal album, so that a second application obtains the data picture from the terminal album, and obtains the application data according to the data picture. Therefore, the application data processing method provided by the embodiment of the application can store the application data to be transmitted in the terminal album in a picture format so that the second application can obtain the application data from the terminal album, thereby realizing the transmission of the application data, avoiding occupying resources of a server, and realizing the transmission of the application data without depending on a network.
Fig. 6 is a schematic flow chart of another application data processing method according to an embodiment of the present application. As shown in fig. 6, the application data processing method includes:
s601, the first application acquires application data to be transmitted.
In one embodiment, a user can perform authorization processing on the first application and the second application through the terminal in advance, so that the first application and the second application have access rights for accessing the terminal album.
S602, the first application adopts a one-way irreversible function to operate the application data to be transmitted, and first data are obtained.
The one-way non-reversible function may be a hash function that may pass an input of arbitrary length through a hash algorithm to a fixed length output. The hash function herein may include, but is not limited to: MD2(Message-Digest Algorithm 2) function, MD4(Message-Digest Algorithm 4) function, MD5(Message-Digest Algorithm 5) function, and the like. The first application calculates application data to be transmitted by adopting a hash function, so that tamper-resistant identification data can be obtained, and the tamper-resistant identification data is used as first data.
S603, the first application splices the first data and the application data to be transmitted to obtain second data.
In one embodiment, the first application may stitch the first data behind the application data to be transmitted to obtain the second data. In another embodiment, the first application may also splice the first data to the front of the application data to be transmitted to obtain the second data.
S604, the first application adopts a compression algorithm to compress the second data to obtain third data.
The first application may perform compression processing on the second data by using a data compression algorithm such as Huffman algorithm, LZW compression algorithm, LZ algorithm, and the like to obtain third data, which may specifically refer to step S202 in the foregoing embodiment, and details are not described here.
And S605, the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data.
The first application may use a symmetric encryption algorithm or an asymmetric encryption algorithm to encrypt the third data, so as to obtain processed application data.
If the first application adopts a symmetric encryption algorithm to encrypt the third data, the public key and the private key used in the encryption process are consistent. Symmetric encryption algorithms herein may include, but are not limited to: des (data Encryption standard) algorithm, 3des (triple des) algorithm, aes (advanced Encryption standard) algorithm, and the like. In one embodiment, when the first application encrypts, the third data may be encrypted by using a public key or a private key agreed with the second application in advance. In one embodiment, since the application data may carry the data identifier, the first application may further encrypt the third data by using the data identifier of the application data.
In another embodiment, since each application has an application identifier, the first reference may use the application identifier of the first application or the second application as the encrypted public key and private key when the encryption algorithm is used for encryption. In an embodiment, if the number of the second applications is one, the first application may obtain an application identifier of the second application, and encrypt the third data by using the application identifier of the second application, so that the second application may directly decrypt the processed application data by using its own application identifier after obtaining the processed application data. In another embodiment, if the number of the second applications is multiple, the first application may encrypt the third data by using its own (first application) application identifier. After the second application obtains the processed application data, the second application may obtain the application identifier of the first application and decrypt the processed application data by using the application identifier of the first application.
If the first application adopts the asymmetric encryption algorithm to encrypt the third data, the public key and the private key used in the encryption process are inconsistent. Symmetric encryption algorithms herein may include, but are not limited to: SSH (secure Shell) algorithm, RSA (RSA algorithm) encryption algorithm, Elgamal algorithm, etc. In one embodiment, the second application may generate a public key and a private key, the private key being stored by itself, the public key being sent to the first application. After receiving the public key sent by the second application, the first application encrypts the third data by using the public key, so that the second application can decrypt the processed application data by using the private key stored by the second application.
And S606, selecting a picture format by the first application, and generating a data picture according to the processed application data and the picture format.
In one embodiment, a first application can arbitrarily select a picture format and acquire an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled; and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture. In an embodiment, the first application fills the processed application data into the at least one data unit to be filled, and a specific implementation of generating the data picture may be: the method comprises the steps that a first application determines a target data unit to be filled from at least one data unit to be filled and acquires data to be filled of the target data unit to be filled; the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in; and the first application fills the matched application data into a target data unit to be filled to generate a data picture.
S607, the first application stores the data picture in the terminal album, so that the second application obtains the data picture from the terminal album and obtains the application data according to the data picture.
For a specific process of the first application to store the data picture in the terminal album, reference may be made to step S204 in the above application embodiment, which is not described in detail herein.
It should be noted that, after the second application acquires the data picture, the second application may determine an image file structure according to the picture format of the data picture, and perform analysis processing on the image file structure to obtain the processed application data. Then, the second application can select the symmetric encryption algorithm or the asymmetric encryption algorithm adopted by the first application to decrypt the processed application data to obtain third data, and decompress the third data to obtain second data. The second application decomposes the second data to obtain the application data and the first data to be transmitted. The second application may use a one-way irreversible function (such as a hash function) to perform operation on the application data to be transmitted, which is obtained by decomposition, to obtain the operated application data, and then compare the operated application data with the first data, if the operated application data is consistent with the first data, it is determined that the application data is not tampered. If the application data are inconsistent with the application data, the application data are abandoned, and prompt information can be output to prompt that the application data acquired by the user are wrong and are modified, so that the user can retransmit the application data to the second application through the first application.
In the embodiment of the application, after the first application acquires the application data to be transmitted, the application data to be transmitted may be processed to obtain processed application data. Then, the first application can select a picture format, generate a data picture according to the processed application data and the selected picture format, and store the data picture in a terminal album, so that a second application obtains the data picture from the terminal album, and obtains the application data according to the data picture. Therefore, the application data processing method provided by the embodiment of the application can store the application data to be transmitted in the terminal album in a picture format so that the second application can obtain the application data from the terminal album, thereby realizing the transmission of the application data, avoiding occupying resources of a server, and realizing the transmission of the application data without depending on a network.
Fig. 7 is a schematic structural diagram of an apparatus for executing an application data processing method according to an embodiment of the present application. As shown in fig. 7, the apparatus in the embodiment of the present application may include:
an obtaining unit 101, configured to obtain application data to be transmitted by a first application;
the processing unit 102 is configured to process the application data to be transmitted by the first application to obtain processed application data;
the processing unit 102 is further configured to select a picture format by the first application, and generate a data picture according to the processed application data and the picture format;
a saving unit 103, configured to save the data picture in a terminal album by the first application, so that a second application obtains the data picture from the terminal album, and obtains the application data according to the data picture.
In one embodiment, the processing unit 102 may be specifically configured to: the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled; and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
In yet another embodiment, the processing unit 102 may be specifically configured to: the first application determines a target data unit to be filled from the at least one data unit to be filled and acquires data to be filled of the target data unit to be filled; the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in; and the first application fills the matched application data into the target data unit to be filled to generate a data picture.
In yet another embodiment, the processing unit 102 may be specifically configured to: the first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit; and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
In yet another embodiment, the processing unit 102 may be specifically configured to: the first application adopts a one-way irreversible function to operate the application data to be transmitted to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; and the first application obtains the processed application data according to the second data.
In yet another embodiment, the processing unit 102 may be specifically configured to: the first application adopts a compression algorithm to compress the second data to obtain third data; and the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data.
In this embodiment of the application, after the first application acquires the application data to be transmitted through the acquisition unit 101, the processing unit 102 may be called to process the application data to be transmitted, so as to obtain processed application data. Then, the first application may invoke the processing unit 102 to select a picture format, generate a data picture according to the processed application data and the selected picture format, and invoke the saving unit to save the data picture to a terminal album, so that the second application obtains the data picture from the terminal album, and obtains the application data according to the data picture. Therefore, the application data processing method provided by the embodiment of the application can store the application data to be transmitted in the terminal album in a picture format so that the second application can obtain the application data from the terminal album, thereby realizing the transmission of the application data, avoiding occupying resources of a server, and realizing the transmission of the application data without depending on a network.
Based on the application data processing method and device, the embodiment of the application also provides a terminal, and the terminal can be used for realizing the application data processing method. Please refer to fig. 8, which is a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 8, the terminal comprises a memory 201, an input device 202, an output device 203 and a processor 204, said input device 202, said output device 203 and said memory 201 being interconnected, wherein said memory is adapted to store a computer program comprising program instructions. In one embodiment, the processor 204, the input device 202, the output device 203, and the memory 201 may be interconnected by way of a bus 205.
It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, where the program may be stored in a computer-readable storage medium, and the program includes at least one program instruction, and the at least one program instruction is loaded by the processor 204 and used to execute the following steps:
the method comprises the steps that a first application obtains application data to be transmitted;
the first application processes the application data to be transmitted to obtain processed application data;
the first application selects a picture format and generates a data picture according to the processed application data and the picture format;
and the first application stores the data picture into a terminal album so that a second application acquires the data picture from the terminal album and obtains the application data according to the data picture.
In one embodiment, the at least one program instruction is loaded by the processor 204 and is configured to execute the first application to select a picture format, and when generating a data picture according to the processed application data and the picture format, the at least one program instruction may be loaded by the processor and is specifically configured to execute: the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled; and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
In an embodiment, the at least one program instruction is loaded by the processor 204 and is used to execute the first application to fill the processed application data into the at least one data unit to be filled, and when a data picture is generated, the at least one program instruction may be loaded by the processor and is specifically used to execute: the first application determines a target data unit to be filled from the at least one data unit to be filled and acquires data to be filled of the target data unit to be filled; the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in; and the first application fills the matched application data into the target data unit to be filled to generate a data picture.
In another embodiment, the at least one program instruction is loaded by the processor 204 and is used to execute the first application to select the picture format, and when the data picture is generated according to the processed application data and the picture format, the at least one program instruction may be loaded by the processor and is specifically used to execute: the first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit; and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
In an embodiment, the at least one program instruction is loaded by the processor 204 and used to execute the first application to process the application data to be transmitted, and when the processed application data is obtained, the at least one program instruction may be loaded by the processor and specifically used to execute: the first application adopts a one-way irreversible function to operate the application data to be transmitted to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; and the first application obtains the processed application data according to the second data.
In an embodiment, when the at least one program instruction is loaded by the processor 204 and used for executing the first application to obtain the processed application data according to the second data, the at least one program instruction may be loaded by the processor and specifically used for executing: the first application adopts a compression algorithm to compress the second data to obtain third data; and the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data.
In this embodiment of the application, after the first application acquires the application data to be transmitted through the acquisition unit 101, the processing unit 102 may be called to process the application data to be transmitted, so as to obtain processed application data. Then, the first application may invoke the processing unit 102 to select a picture format, generate a data picture according to the processed application data and the selected picture format, and invoke the saving unit to save the data picture to a terminal album, so that the second application obtains the data picture from the terminal album, and obtains the application data according to the data picture. Therefore, the application data processing method provided by the embodiment of the application can store the application data to be transmitted in the terminal album in a picture format so that the second application can obtain the application data from the terminal album, thereby realizing the transmission of the application data, avoiding occupying resources of a server, and realizing the transmission of the application data without depending on a network.
While the present disclosure has been described with reference to a particular embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure.

Claims (8)

1. An application data processing method, comprising:
performing authorization processing on a first application and a second application so that the first application and the second application have the authority of accessing a terminal album;
the first application acquires application data to be transmitted;
the first application adopts a one-way irreversible function to operate the application data to be transmitted to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; the first application adopts a compression algorithm to compress the second data to obtain third data; the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data; if the number of the second applications is one, the first application acquires application identifiers of the second applications, and encrypts the third data by using the application identifiers of the second applications; if the number of the second applications is multiple, the first application encrypts the third data by adopting the application identifier of the first application;
the first application selects a picture format and generates a data picture according to the processed application data and the picture format;
and the first application stores the data picture into the terminal album so that the second application acquires the data picture from the terminal album and obtains the application data according to the data picture.
2. The method of claim 1, wherein the first application selects a picture format and generates a data picture from the processed application data and the picture format, comprising:
the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled;
and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
3. The method of claim 2, wherein the first application fills the processed application data into the at least one unit of data to be filled in, generating a data picture, comprising:
the first application determines a target data unit to be filled from the at least one data unit to be filled and acquires data to be filled of the target data unit to be filled;
the first application determines matched application data from the processed application data according to the data to be filled in of the target data unit to be filled in;
and the first application fills the matched application data into the target data unit to be filled to generate a data picture.
4. The method of claim 1, wherein the first application selects a picture format and generates a data picture from the processed application data and the picture format, comprising:
the first application selects an initial picture and acquires an image file structure of the initial picture, wherein the image file structure comprises at least one filled data unit;
and the first application adopts the processed application data to replace the data in the at least one filled data unit to generate a data picture.
5. An application data processing apparatus, comprising:
the processing unit is used for performing authorization processing on a first application and a second application so that the first application and the second application have the authority of accessing a terminal album;
an obtaining unit, configured to obtain application data to be transmitted by the first application;
the processing unit is used for the first application to calculate the application data to be transmitted by adopting a one-way irreversible function to obtain first data; the first application splices the first data and the application data to be transmitted to obtain second data; the first application adopts a compression algorithm to compress the second data to obtain third data; the first application adopts an encryption algorithm to encrypt the third data to obtain processed application data; if the number of the second applications is one, the first application acquires application identifiers of the second applications, and encrypts the third data by using the application identifiers of the second applications; if the number of the second applications is multiple, the first application encrypts the third data by adopting the application identifier of the first application;
the processing unit is further used for selecting a picture format by the first application and generating a data picture according to the processed application data and the picture format;
and the storage unit is used for storing the data picture into the terminal album by the first application so as to enable the second application to acquire the data picture from the terminal album and obtain the application data according to the data picture.
6. The apparatus as claimed in claim 5, wherein said processing unit is specifically configured to:
the first application selects a picture format and acquires an image file structure of the picture format, wherein the image file structure comprises at least one data unit to be filled;
and the first application fills the processed application data into the at least one data unit to be filled to generate a data picture.
7. A terminal, comprising a memory, an input device, an output device, and a processor, the input device, the output device, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, and the processor is configured to invoke the program instructions to perform the method of any of claims 1-4.
8. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 4.
CN201810616922.3A 2018-06-14 2018-06-14 Application data processing method and device, terminal and readable medium Active CN108984315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810616922.3A CN108984315B (en) 2018-06-14 2018-06-14 Application data processing method and device, terminal and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810616922.3A CN108984315B (en) 2018-06-14 2018-06-14 Application data processing method and device, terminal and readable medium

Publications (2)

Publication Number Publication Date
CN108984315A CN108984315A (en) 2018-12-11
CN108984315B true CN108984315B (en) 2022-04-15

Family

ID=64541280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810616922.3A Active CN108984315B (en) 2018-06-14 2018-06-14 Application data processing method and device, terminal and readable medium

Country Status (1)

Country Link
CN (1) CN108984315B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2595079A1 (en) * 2011-11-17 2013-05-22 Sony Corporation Information processing apparatus, information storage apparatus, information processing system, information processing method, and program
CN107172259A (en) * 2017-04-11 2017-09-15 捷开通讯(深圳)有限公司 Terminal and its information interacting method, storage device based on Quick Response Code
CN107918731A (en) * 2016-10-11 2018-04-17 百度在线网络技术(北京)有限公司 Method and apparatus for controlling the authority to access to open interface

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1378861A1 (en) * 2002-07-01 2004-01-07 Mitsubishi Electric Information Technology Centre Europe B.V. Method and apparatus for image processing
CN103020053A (en) * 2011-09-21 2013-04-03 深圳市比维视创科技有限公司 Page sharing system and method
CN102800041B (en) * 2012-06-11 2014-09-17 哈尔滨工程大学 Method for protecting integrity of digital vector map
CN104408394A (en) * 2014-10-28 2015-03-11 广东欧珀移动通信有限公司 Two-dimensional code information processing method and communication terminal
US9269025B1 (en) * 2015-01-29 2016-02-23 Yahoo! Inc. Object detection in images
CN105760163A (en) * 2016-02-06 2016-07-13 北京麒麟合盛网络技术有限公司 Interface display method and device
CN107104833A (en) * 2017-04-24 2017-08-29 西安富立叶微电子有限责任公司 A kind of method to set up of configuration information, source terminal equipment and target terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2595079A1 (en) * 2011-11-17 2013-05-22 Sony Corporation Information processing apparatus, information storage apparatus, information processing system, information processing method, and program
CN107918731A (en) * 2016-10-11 2018-04-17 百度在线网络技术(北京)有限公司 Method and apparatus for controlling the authority to access to open interface
CN107172259A (en) * 2017-04-11 2017-09-15 捷开通讯(深圳)有限公司 Terminal and its information interacting method, storage device based on Quick Response Code

Also Published As

Publication number Publication date
CN108984315A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US10721057B2 (en) Dynamic channels in secure queries and analytics
CN109150499B (en) Method and device for dynamically encrypting data, computer equipment and storage medium
US10552238B2 (en) Secure inter-process communications for mobile devices
CN113364760A (en) Data encryption processing method and device, computer equipment and storage medium
WO2019085449A1 (en) Service short message pushing method, apparatus, computer device and storage medium
CN107786331B (en) Data processing method, device, system and computer readable storage medium
CN111177801B (en) Signature method and device of electronic document, storage medium and electronic equipment
WO2022135369A1 (en) Printing method and apparatus, and electronic device
WO2020220536A1 (en) Data backup method and device, and computer readable storage medium
US20140201316A1 (en) Streaming zip
CN110662089A (en) Bullet screen receiving and processing method, storage medium, electronic equipment and system
CN111193704B (en) HTTP communication method, device and readable storage medium
CN108737353B (en) Data encryption method and device based on data analysis system
CN110046000B (en) Applet running method and device
CN104123244A (en) USB redirection system and method
CN111427860B (en) Distributed storage system and data processing method thereof
CN107682335B (en) Data transmission method, server and computer readable storage medium
CN109120576B (en) Data sharing method and device, computer equipment and storage medium
CN108984315B (en) Application data processing method and device, terminal and readable medium
US20070263876A1 (en) In-memory compression and encryption
CN113704206B (en) Metadata processing method and device, electronic equipment and storage medium
CN114117488A (en) File management method, file uploading method, file decryption method and related equipment
CN114357520A (en) File generation method and device and file coding information sending method and device
CN114676451A (en) Electronic document signature method and device, storage medium and electronic equipment
US10409773B2 (en) Method and device for cleaning up terminal resource and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Bantian street, Longgang District of Shenzhen City, Guangdong province 518000 yuan and five Avenue sign technology plant No. 1 building 4 floor

Applicant after: SHENZHEN GOLO CHELIAN DATA TECHNOLOGY Co.,Ltd.

Address before: Bantian street Shenzhen city Guangdong province 518000 yuan and five Avenue sign technology plant No. 1 building 4 floor

Applicant before: GOLO IOV DATA TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant