[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114218175A - Resource cross-platform sharing method and device, terminal equipment and storage medium - Google Patents

Resource cross-platform sharing method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114218175A
CN114218175A CN202111447617.4A CN202111447617A CN114218175A CN 114218175 A CN114218175 A CN 114218175A CN 202111447617 A CN202111447617 A CN 202111447617A CN 114218175 A CN114218175 A CN 114218175A
Authority
CN
China
Prior art keywords
file
target
preset format
uploaded
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111447617.4A
Other languages
Chinese (zh)
Inventor
刘继祖
王轶丹
杨若鹄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech 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 Shenzhen Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN202111447617.4A priority Critical patent/CN114218175A/en
Publication of CN114218175A publication Critical patent/CN114218175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of computer application, and provides a resource cross-platform sharing method, a resource cross-platform sharing device, a terminal device and a storage medium, wherein the method comprises the following steps: acquiring a file to be uploaded, converting the file to be uploaded into a file with a preset format, and uploading the file to a target server so that a target terminal can acquire the file with the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems. According to the method and the device, the file to be uploaded is converted into the file with the preset format and uploaded to the server, so that one or more terminals supporting different operating systems can obtain the file with the preset format through the server, the file to be uploaded is obtained, transmission of the file based on the same preset format on different application platforms is achieved, information resource sharing efficiency is improved, and storage space and cost consumed by information resource sharing are reduced.

Description

Resource cross-platform sharing method and device, terminal equipment and storage medium
Technical Field
The present application belongs to the technical field of computer application, and in particular, to a resource cross-platform sharing method, apparatus, terminal device, and storage medium.
Background
With the rapid development of information technology, the role of information resource sharing in various fields is increasing.
However, in the diversified internet era, when information resources (especially, Unity3D engine independent information resources) are shared, in order to support different application platforms, a large amount of operation and maintenance staff is required to convert the information resources into data/files supporting different platforms, which occupies a large amount of storage space, and thus, the information resource sharing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a resource cross-platform sharing method, a resource cross-platform sharing device, a terminal device and a readable storage medium, and can solve the problems that the related information resource sharing method is large in consumed storage amount and low in sharing efficiency.
In a first aspect, an embodiment of the present application provides a resource cross-platform sharing method, which is applied to a first terminal, where the first terminal is in communication connection with a target server, and the method includes:
acquiring a file to be uploaded;
converting the file to be uploaded into a file with a preset format, and uploading the file to a target server so that a target terminal can obtain the file with the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems.
In one embodiment, the converting the file to be uploaded into a file with a preset format and uploading the file to a target server includes:
determining the type of the file to be uploaded;
converting the file to be uploaded into a corresponding structural body according to the type;
and carrying out serialization processing on the structural body to obtain the preset format file, and uploading the preset format file to a target server.
In one embodiment, the converting the file to be uploaded into the corresponding structural body according to the type includes:
determining field types contained in the file to be uploaded and attribute values corresponding to the field types according to the type of the file to be uploaded;
and constructing a corresponding structural body according to the field types and the attribute values corresponding to the field types.
In a second aspect, an embodiment of the present application provides a resource cross-platform sharing method, which is applied to a second terminal, where the second terminal is in communication connection with a target server, and the method includes:
sending a target file acquisition request to a target server, and receiving a target preset format file corresponding to the target file acquisition request returned by the target server; wherein the target file acquisition request comprises a file ID;
and performing deserialization processing on the target preset format file to obtain a target file.
In an embodiment, the deserializing the target preset format file to obtain the target file includes:
performing deserialization processing on the target preset format file to obtain a target structure body of the target preset format file;
and converting the target structure into a target file.
In one embodiment, the converting the target structure into the target file includes:
analyzing to obtain field types contained in the target structure body and attribute values corresponding to each field type;
and converting the field type and the corresponding attribute value into an object to obtain a target file.
In a third aspect, an embodiment of the present application provides a resource cross-platform sharing device, which is applied to a first terminal, where the first terminal is in communication connection with a target server, and the device includes:
the acquisition module is used for acquiring a file to be uploaded;
the conversion module is used for converting the file to be uploaded into a file with a preset format and uploading the file to a target server so that a target terminal can acquire the file with the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems.
In one embodiment, the conversion module includes:
the type determining unit is used for determining the type of the file to be uploaded;
the first conversion unit is used for converting the file to be uploaded into a corresponding structural body according to the type;
and the serialization processing unit is used for carrying out serialization processing on the structural body to obtain the preset format file and uploading the preset format file to a target server.
In one embodiment, the first conversion unit includes:
the type determining subunit is used for determining field types contained in the file to be uploaded and attribute values corresponding to the field types according to the type of the file to be uploaded;
and the construction subunit is used for constructing a corresponding structural body according to the field types and the attribute values corresponding to the field types.
In a fourth aspect, an embodiment of the present application provides a resource cross-platform sharing device, which is applied to a second terminal, where the second terminal is in communication connection with a target server, and the device includes:
the sending module is used for sending a target file obtaining request to a target server and receiving a target preset format file which is returned by the target server and corresponds to the target file obtaining request; wherein the target file acquisition request comprises a file ID;
and the deserializing module is used for deserializing the target preset format file to obtain a target file.
In one embodiment, the deserialization processing module comprises:
the deserializing unit is used for deserializing the target preset format file to obtain a target structure of the target preset format file;
and the second conversion unit is used for converting the target structure body into a target file.
In one embodiment, the second conversion unit includes:
the analysis subunit is used for analyzing the field types contained in the target structure body and obtaining the attribute value corresponding to each field type;
and the conversion subunit is used for converting the field type and the corresponding attribute value into an object to obtain a target file.
In a fifth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the resource cross-platform sharing method according to any one of the first and second aspects.
In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the resource cross-platform sharing method according to any one of the first and second aspects.
In a seventh aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the resource cross-platform sharing method described in any one of the first and second aspects.
Compared with the prior art, the embodiment of the application has the advantages that: the file to be uploaded is converted into the file with the preset format and uploaded to the server, so that one or more terminals supporting different operating systems can obtain the file with the preset format through the server, the file to be uploaded is obtained, transmission of the file based on the same preset format on different application platforms is achieved, information resource sharing efficiency is improved, and storage space and cost consumed by information resource sharing are reduced.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a resource cross-platform sharing system provided in an embodiment of the present application;
FIG. 2 is a flowchart illustrating a resource cross-platform sharing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of step S102 of a resource cross-platform sharing method according to an embodiment of the present application;
FIG. 4 is another schematic flowchart of a resource cross-platform sharing method according to a second embodiment of the present disclosure;
fig. 5 is a schematic flowchart of step S202 of a resource cross-platform sharing method provided in the second embodiment of the present application;
fig. 6 is a schematic structural diagram of a resource cross-platform sharing device according to a third embodiment of the present application;
FIG. 7 is another schematic structural diagram of a device for cross-platform resource sharing according to a fourth embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a terminal device according to a fifth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The resource cross-platform sharing method provided by the embodiment of the application can be applied to terminal devices such as a mobile phone, a tablet personal computer, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA) and the like, and the embodiment of the application does not limit the specific types of the terminal devices at all.
In recent years, with the rapid development of information technology, the role of information resource sharing in various fields is increasing. However, in the diversified internet era, when information resources are shared, in order to support different application platforms, information resources need to be converted into data/files supporting different platforms, which results in a large amount of storage space being occupied and the information resource sharing efficiency being low. In order to solve the problem, the application provides a resource cross-platform sharing method, a resource cross-platform sharing device, a terminal device and a computer readable storage medium, when a file to be uploaded is acquired, the file to be uploaded is converted into a preset format file and is uploaded to a target server, one or more application terminals which support different operating systems and have file acquisition requirements can acquire the preset format file through the target server, and then the file to be uploaded is acquired, so that transmission of files based on the same preset format on different application platforms is realized, the information resource sharing efficiency is improved, and the storage space and cost consumed by information resource sharing are reduced.
In order to implement the technical scheme provided by the application, a resource cross-platform sharing system can be constructed firstly. Referring to fig. 1, the resource cross-platform sharing system is composed of more than one first terminal (only 1 shown in fig. 1), more than one second terminal (only 2 shown in fig. 1) and a target server, wherein the first terminal is in communication connection with the target server, and the target server is in communication connection with the second terminal.
The first terminal is a terminal device which may have a resource sharing requirement for uploading the file to be uploaded, the target server is a device which provides a resource sharing service for one or more application terminals supporting different operating systems, and the second terminal is a terminal device which has a resource sharing requirement for downloading the file to be uploaded. In the process of sharing information resources, a first terminal converts a file to be uploaded into a file with a preset format and uploads the file to a target server, and a second terminal acquires a target file with the preset format, corresponding to the target file, returned by the server by sending a file acquisition request and converts the target file with the preset format into the target file.
In order to explain the technical solution proposed in the present application, the following description will be given by way of specific examples.
Example one
Fig. 2 shows a schematic flow chart of a resource cross-platform sharing method provided by the present application, which may be applied to a first terminal, by way of example and not limitation, the first terminal being in communication connection with a target server.
And S101, acquiring a file to be uploaded.
Specifically, the manner of obtaining the file to be uploaded includes, but is not limited to, taking an existing file specified by the user as the file to be uploaded, or obtaining the file to be uploaded input by the user. The type of file to be uploaded includes, but is not limited to, picture, video, text, or audio.
S102, converting the file to be uploaded into a file with a preset format, and uploading the file to a target server so that a target terminal can obtain the file with the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems.
Specifically, the type of the file to be uploaded is determined, the file to be uploaded is converted into a corresponding file in a preset format based on the type of the file to be uploaded, and the file is uploaded to a target server, so that a target terminal with a resource sharing requirement can obtain the file in the preset format through the target server, and the file to be uploaded is obtained through processing. The target terminal is one or more application terminals supporting different operating systems. Operating systems include, but are not limited to, the Android operating system, the IOS operating system, the Windows operating system, and the MAC operating system.
The preset format file is a shared file which is obtained based on type conversion of the file to be uploaded and supports multi-platform downloading and processing, is used for storing all data in the file to be uploaded, and can be determined according to the resource type of the file to be uploaded. For example, when the resource type of the file to be uploaded is an independent resource (animation clip), the corresponding file with the preset format is an animation.
As shown in fig. 3, in an embodiment, the step S102 includes:
s1021, determining the type of the file to be uploaded;
s1022, converting the file to be uploaded into a corresponding structural body according to the type;
and S1023, carrying out serialization processing on the structural body to obtain the preset format file, and uploading the preset format file to a target server.
Specifically, the type of the file to be uploaded is determined, the corresponding structural body is determined according to the type of the file to be uploaded and converted, the converted structural body is subjected to serialization processing to obtain a preset format file, and the preset format file is uploaded to a target server.
In one embodiment, the converting the file to be uploaded into the corresponding structural body according to the type includes:
determining field types contained in the file to be uploaded and attribute values corresponding to the field types according to the type of the file to be uploaded;
and constructing a corresponding structural body according to the field types and the attribute values corresponding to the field types.
Specifically, all field types contained in the file to be uploaded are determined according to the type of the file to be uploaded, the file to be uploaded is analyzed to obtain an attribute value corresponding to each field type, a corresponding structural body is built based on each field type, and the attribute value corresponding to each field type is input into the structural body to obtain the structural body corresponding to the file to be uploaded.
For example, identifying and determining that the type of the file to be uploaded is audio data, and the field types of the file to be uploaded are data duration, time frame, voice information and the like, constructing a corresponding structural body based on the field types, and inputting the attribute value corresponding to each field type into the structural body to obtain the structural body corresponding to the file to be uploaded.
In one embodiment, when receiving a preset format file corresponding to a target file, a target server establishes an association relationship between a file ID of the target file and the preset format file. That is, when the target server receives the file ID of the target file, the preset format file associated with the target file can be found.
In the embodiment, the file to be uploaded is converted into the file with the preset format and uploaded to the server, so that one or more terminals supporting different operating systems can obtain the file with the preset format through the server, the file to be uploaded is obtained, transmission of the file based on the same preset format on different application platforms is realized, the information sharing efficiency is improved, and the storage space and the cost consumed by information sharing are reduced
Example two
Fig. 4 shows a schematic flow chart of a resource cross-platform sharing method provided by the present application, which may be applied to a second terminal, by way of example and not limitation, the second terminal being in communication connection with a target server.
S201, sending a target file acquisition request to a target server, and receiving a target preset format file corresponding to the target file acquisition request returned by the target server; wherein the target file acquisition request includes a file ID.
Specifically, when a resource sharing requirement is detected, a corresponding target file acquisition request is generated and sent to a target server so as to receive a target preset format file corresponding to the target file acquisition request returned by the target server. The target file obtaining request includes, but is not limited to, a file ID.
In one embodiment, when receiving the target file acquisition request, the target server determines, by parsing, a file ID of a target file corresponding to the target file acquisition request, finds, based on the file ID, a target file in a preset format corresponding to the target file, and returns the target file to the second terminal.
S202, performing deserialization processing on the target file in the preset format to obtain a target file.
Specifically, deserializing the target file in the preset format to obtain the target file.
As shown in fig. 5, in an embodiment, the deserializing the target preset format file to obtain a target file includes:
s2021, performing deserialization processing on the target preset format file to obtain a target structure body of the target preset format file;
s2022, converting the target structure into a target file.
Specifically, deserializing the target preset format file to obtain a target structure corresponding to the target preset format file, and converting the target structure into the target file.
In one embodiment, the converting the target structure into the target file includes:
analyzing to obtain field types contained in the target structure body and attribute values corresponding to each field type;
and converting the field type and the corresponding attribute value into an object to obtain a target file.
Specifically, the target structure is analyzed, all field types included in the target structure are determined, and the field types and the corresponding attribute values are converted into Unity resource objects based on the attribute values corresponding to the field types, so that a target file is obtained.
For example, the target structure is analyzed, the field type contained in the target structure is determined to have data duration, time frame and voice information, the field type and the corresponding attribute value are converted into an object, and the target file is obtained as an audio file.
According to the method and the device for transmitting the target file, the target file is obtained by obtaining the target file in the preset format corresponding to the target file and performing deserialization processing on the target file in the preset format, transmission based on the same file in the preset format on a cross-platform is achieved, information sharing efficiency is improved, and storage space and cost consumed by information sharing are reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
EXAMPLE III
Corresponding to the resource cross-platform sharing method described in the first embodiment, fig. 6 shows a structural block diagram of a resource cross-platform sharing device provided in the embodiment of the present application, where the resource cross-platform sharing device is applied to a first terminal, and for convenience of description, only the parts related to the embodiment of the present application are shown.
Referring to fig. 6, the resource cross-platform sharing apparatus 100 includes:
an obtaining module 101, configured to obtain a file to be uploaded;
the conversion module 102 is configured to convert the file to be uploaded into a file in a preset format, and upload the file to a target server, so that a target terminal obtains the file in the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems.
In one embodiment, the conversion module includes:
the type determining unit is used for determining the type of the file to be uploaded;
the first conversion unit is used for converting the file to be uploaded into a corresponding structural body according to the type;
and the serialization processing unit is used for carrying out serialization processing on the structural body to obtain the preset format file and uploading the preset format file to a target server.
In one embodiment, the first conversion unit includes:
the type determining subunit is used for determining field types contained in the file to be uploaded and attribute values corresponding to the field types according to the type of the file to be uploaded;
and the construction subunit is used for constructing a corresponding structural body according to the field types and the attribute values corresponding to the field types.
In the embodiment, the file to be uploaded is converted into the file with the preset format and uploaded to the server, so that one or more terminals supporting different operating systems can obtain the file with the preset format through the server, the file to be uploaded is obtained, transmission of the file based on the same preset format on different application platforms is realized, the information sharing efficiency is improved, and the storage space and cost consumed by information sharing are reduced.
Example four
Corresponding to the resource cross-platform sharing method described in the second embodiment, fig. 7 shows a structural block diagram of a resource cross-platform sharing device provided in the embodiment of the present application, where the resource cross-platform sharing device is applied to a second terminal, and for convenience of description, only the parts related to the embodiment of the present application are shown.
Referring to fig. 7, the resource cross-platform sharing apparatus 200 includes:
a sending module 201, configured to send a target file obtaining request to a target server, and receive a target preset format file corresponding to the target file obtaining request, where the target preset format file is returned by the target server; wherein the target file acquisition request comprises a file ID;
and the deserializing module 202 is configured to deserialize the target preset format file to obtain a target file.
In one embodiment, the deserialization processing module comprises:
the deserializing unit is used for deserializing the target preset format file to obtain a target structure of the target preset format file;
and the second conversion unit is used for converting the target structure body into a target file.
In one embodiment, the second conversion unit includes:
the analysis subunit is used for analyzing the field types contained in the target structure body and obtaining the attribute value corresponding to each field type;
and the conversion subunit is used for converting the field type and the corresponding attribute value into an object to obtain a target file.
According to the method and the device for transmitting the target file, the target file is obtained by obtaining the target file in the preset format corresponding to the target file and performing deserialization processing on the target file in the preset format, transmission based on the same file in the preset format on a cross-platform is achieved, information sharing efficiency is improved, and storage space and cost consumed by information sharing are reduced.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
EXAMPLE five
Fig. 8 is a schematic structural diagram of the terminal device provided in this embodiment. As shown in fig. 8, the terminal device 8 of this embodiment includes: at least one processor 80 (only one shown in fig. 8), a memory 81, and a computer program 82 stored in the memory 81 and operable on the at least one processor 80, the processor 80 implementing the steps in any of the various resource cross-platform sharing method embodiments described above when executing the computer program 82.
The terminal device 8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of the terminal device 8, and does not constitute a limitation of the terminal device 8, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 80 may be a Central Processing Unit (CPU), and the Processor 80 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may in some embodiments be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. In other embodiments, the memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like provided on the terminal device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the terminal device 8. The memory 81 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A resource cross-platform sharing method is applied to a first terminal, wherein the first terminal is in communication connection with a target server, and the method comprises the following steps:
acquiring a file to be uploaded;
converting the file to be uploaded into a file with a preset format, and uploading the file to a target server so that a target terminal can obtain the file with the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems.
2. The method for resource cross-platform sharing according to claim 1, wherein the converting the file to be uploaded into a preset format file and uploading the preset format file to a target server comprises:
determining the type of the file to be uploaded;
converting the file to be uploaded into a corresponding structural body according to the type;
and carrying out serialization processing on the structural body to obtain the preset format file, and uploading the preset format file to a target server.
3. The resource cross-platform sharing method according to claim 2, wherein the converting the file to be uploaded into the corresponding structure according to the type comprises:
determining field types contained in the file to be uploaded and attribute values corresponding to the field types according to the type of the file to be uploaded;
and constructing a corresponding structural body according to the field types and the attribute values corresponding to the field types.
4. A resource cross-platform sharing method is applied to a second terminal, the second terminal is in communication connection with a target server, and the method comprises the following steps:
sending a target file acquisition request to a target server, and receiving a target preset format file corresponding to the target file acquisition request returned by the target server; wherein the target file acquisition request comprises a file ID;
and performing deserialization processing on the target preset format file to obtain a target file.
5. The resource cross-platform sharing method according to claim 4, wherein the deserializing the target file in the preset format to obtain a target file comprises:
performing deserialization processing on the target preset format file to obtain a target structure body of the target preset format file;
and converting the target structure into a target file.
6. The method of claim 5, wherein said converting the target structure into a target file comprises:
analyzing to obtain field types contained in the target structure body and attribute values corresponding to each field type;
and converting the field type and the corresponding attribute value into an object to obtain a target file.
7. A resource cross-platform sharing device is applied to a first terminal, wherein the first terminal is in communication connection with a target server, and the device comprises:
the acquisition module is used for acquiring a file to be uploaded;
the conversion module is used for converting the file to be uploaded into a file with a preset format and uploading the file to a target server so that a target terminal can acquire the file with the preset format through the target server; the target terminal is one or more application terminals supporting different operating systems.
8. A resource cross-platform sharing device is applied to a second terminal, wherein the second terminal is in communication connection with a target server, and the device comprises:
the sending module is used for sending a target file obtaining request to a target server and receiving a target preset format file which is returned by the target server and corresponds to the target file obtaining request; wherein the target file acquisition request comprises a file ID;
and the deserializing module is used for deserializing the target preset format file to obtain a target file.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 or 4 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 3 or 4 to 6.
CN202111447617.4A 2021-11-30 2021-11-30 Resource cross-platform sharing method and device, terminal equipment and storage medium Pending CN114218175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111447617.4A CN114218175A (en) 2021-11-30 2021-11-30 Resource cross-platform sharing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111447617.4A CN114218175A (en) 2021-11-30 2021-11-30 Resource cross-platform sharing method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114218175A true CN114218175A (en) 2022-03-22

Family

ID=80699305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111447617.4A Pending CN114218175A (en) 2021-11-30 2021-11-30 Resource cross-platform sharing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114218175A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934654A (en) * 2023-02-03 2023-04-07 北京联合伟世科技股份有限公司 Packing method, device and equipment of experimental resources and storage medium
WO2024179246A1 (en) * 2023-02-28 2024-09-06 华为云计算技术有限公司 File transfer method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115934654A (en) * 2023-02-03 2023-04-07 北京联合伟世科技股份有限公司 Packing method, device and equipment of experimental resources and storage medium
WO2024179246A1 (en) * 2023-02-28 2024-09-06 华为云计算技术有限公司 File transfer method and apparatus

Similar Documents

Publication Publication Date Title
CN108363737B (en) Data format conversion method, device and equipment
CN110263277B (en) Page data display method, page data updating device, page data equipment and storage medium
US20200204688A1 (en) Picture book sharing method and apparatus and system using the same
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN114218175A (en) Resource cross-platform sharing method and device, terminal equipment and storage medium
CN109062906B (en) Translation method and device for program language resources
CN110598993A (en) Data processing method and device
CN112835632B (en) Method and equipment for calling end capability and computer storage medium
CN112631649A (en) Intelligent contract management method, device, terminal equipment and medium
CN111241137A (en) Data processing method and device, electronic equipment and storage medium
CN108062401B (en) Application recommendation method and device and storage medium
CN111475230B (en) Application function configuration method and device and electronic equipment
CN110505289B (en) File downloading method and device, computer readable medium and wireless communication equipment
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
CN113297453A (en) Network request response method and device, electronic equipment and storage medium
CN112612427A (en) Vehicle stop data processing method and device, storage medium and terminal
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN115225586B (en) Data packet transmitting method, device, equipment and computer readable storage medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
CN114780263A (en) Service calling method, device, equipment and storage medium
CN116204201B (en) Service processing method and device
CN112651212A (en) Method and terminal for remotely acquiring word stock
CN113407339A (en) Resource request feedback method and device, readable storage medium and electronic equipment
CN116861455B (en) Event data processing method, system, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination