CN110362546A - Acquisition methods, device and the document conversion system of convert file - Google Patents

Acquisition methods, device and the document conversion system of convert file Download PDF

Info

Publication number
CN110362546A
CN110362546A CN201910664722.XA CN201910664722A CN110362546A CN 110362546 A CN110362546 A CN 110362546A CN 201910664722 A CN201910664722 A CN 201910664722A CN 110362546 A CN110362546 A CN 110362546A
Authority
CN
China
Prior art keywords
file
convert
cloud server
destination
conversion
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
CN201910664722.XA
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910664722.XA priority Critical patent/CN110362546A/en
Publication of CN110362546A publication Critical patent/CN110362546A/en
Pending legal-status Critical Current

Links

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/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion

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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of acquisition methods of convert file, device and document conversion systems, are related to the technical field of computer, and the acquisition methods of the convert file are applied to terminal, comprising: whether there is the corresponding convert file of file destination to cloud server inquiry;Wherein, the file destination includes Target Photo file and/or target audio file;If it is not, carrying out conversion process to the file destination, convert file is obtained, and the convert file is uploaded to the cloud server, is used for other terminal inquiries;If so, alleviating the problem that file transfer efficiency is lower in the prior art from cloud server downloading convert file.

Description

Acquisition methods, device and the document conversion system of convert file
Technical field
The present invention relates to field of computer technology, more particularly, to the acquisition methods, device and file of a kind of convert file Converting system.
Background technique
In development process using softwares such as (such as game class or study class applications), need for material file to be packaged into not With the backpack body that can be run on equipment platform.By taking the picture materials of game class software as an example, since equipment platform is to picture format, property The requirement of energy etc., picture resource need to carry out conversion process according to scheduled compression parameters, format transformation etc., could be final Into backpack body.
Picture translation process typically takes from that the time is longer, and the stock number of picture materials is very big in game class software And modification is more frequent.Therefore it can use the conversion process that more conversion equipments carry out picture, and by the figure after conversion process Piece is copied to be packaged on host and be stored, and carries out subsequent packing process.
And in the development process of software, multiple packing environment can be disposed, multiple exploitation branches is also had and multiple versions is each From different packing demands.More conversion equipments independently execute respective conversion process task, are especially being packaged environmental change, When developing branch or version change, it is easy to the files such as a large amount of picture occur and repeat conversion process, lead to file transfer efficiency Lower problem.
Summary of the invention
The purpose of the present invention is to provide a kind of acquisition methods of convert file, device and document conversion systems, to alleviate File transfer efficiency lower problem in the prior art.
According to an aspect of an embodiment of the present invention, a kind of acquisition methods of convert file are provided, terminal, institute are applied to The method of stating includes:
It whether there is the corresponding convert file of file destination to cloud server inquiry;Wherein, the file destination includes Target Photo file and/or target audio file;
If it is not, carrying out conversion process to the file destination, convert file is obtained, and the convert file is uploaded to institute Cloud server is stated, is used for other terminal inquiries;
If so, downloading convert file from the cloud server.
Further, it whether there is the corresponding convert file of file destination to cloud server inquiry, comprising:
It is corresponding with the presence or absence of the file destination to cloud server inquiry based on the index information of the file destination Convert file.
Further, the index information includes the digest value and current conversion regime of the file destination.
Further, the convert file is uploaded to the cloud server, comprising:
Generate the transformation result comprising the convert file;
The transformation result is uploaded to the cloud server;
Wherein, the transformation result includes:
The store path and digest value of the file destination, the file destination;
The store path and digest value of the convert file, the convert file;
The file destination and the corresponding conversion regime of the convert file.
Further, to cloud server inquiry with the presence or absence of before the corresponding convert file of file destination, further includes:
The corresponding convert file of inquiry file destination in the local database;
When inquiring failure, executing described inquire to cloud server whether there is the corresponding convert file of file destination Step.
Further, it whether there is the corresponding convert file of file destination in local search, comprising:
According to the store path of file destination, the corresponding local convert file of file destination is inquired in the local database;
When not inquiring local convert file, inquiry failure;
When inquiring local convert file, compare plucking for the corresponding convert file of file destination on cloud server It is worth whether consistent with the digest value of the local convert file;
If inconsistent, inquiry failure.
Further, this method further includes:
When getting the convert file of each file destination, all convert files are packaged, generates and is packaged File.
Further, the file destination is Target Photo file;
Carrying out conversion process to the file destination includes:
At least one conversion regime is passed through to the file destination and carries out conversion process;
Wherein, the conversion regime includes conversion of resolution, format conversion or compression.
According to another aspect of an embodiment of the present invention, a kind of acquisition device of convert file is additionally provided, comprising:
Enquiry module, for whether there is the corresponding convert file of file destination to cloud server inquiry;Wherein, described File destination includes Target Photo file and/or target audio file;
Conversion module, for being carried out at conversion to the file destination when the query result of the enquiry module is no Reason, obtains convert file;
Uploading module is used for the convert file to be uploaded to the cloud server for other terminal inquiries;
Download module, for downloading and converting from the cloud server when the query result of the enquiry module, which is, is File.
Further, the enquiry module is specifically used for, based on the index information of the file destination, to cloud server Inquiry whether there is the corresponding convert file of the file destination.
Further, the index information includes the digest value and current conversion regime of the file destination.
Further, the uploading module includes:
Generation unit, for generating the transformation result comprising the convert file;
The transformation result is uploaded to the cloud server by uploading unit;
Wherein, the transformation result includes:
The store path and digest value of the file destination, the file destination;
The store path and digest value of the convert file, the convert file;
The file destination and the corresponding conversion regime of the convert file.
Further, the acquisition device of the convert file further include:
Search module, for the corresponding convert file of inquiry file destination in the local database;
When inquiring failure, the enquiry module is to cloud server inquiry with the presence or absence of the corresponding conversion text of file destination Part.
Further, described search module, comprising:
It is corresponding to inquire file destination for the store path according to file destination in the local database for search unit Local convert file;When not inquiring local convert file, inquiry failure;
Comparing unit compares described on cloud server for described when query unit inquires local convert file Whether the digest value of the corresponding convert file of file destination is consistent with the digest value of the local convert file;
If inconsistent, inquiry failure.
Further, the acquisition device of the convert file further include:
Packetization module, for being carried out to all convert files when getting the convert file of each file destination It is packaged, generates packaging file.
Further, the file destination is Target Photo file;
Carrying out conversion process to the file destination includes:
At least one conversion regime is passed through to the file destination and carries out conversion process;
Wherein, the conversion regime includes conversion of resolution, format conversion or compression.
According to another aspect of an embodiment of the present invention, additionally provide a kind of document conversion system, including cloud server and Terminal;
The cloud server is used to provide file destination corresponding convert file to the terminal;
The terminal includes the acquisition device of above-mentioned convert file.
According to another aspect of an embodiment of the present invention, it additionally provides a kind of electronic equipment, including memory, processor and deposits The computer program that can be run on the memory and on the processor is stored up, the processor executes the computer journey The step of acquisition methods of above-mentioned convert file are realized when sequence.
According to another aspect of an embodiment of the present invention, a kind of computer readable storage medium, the computer are additionally provided Readable storage medium storing program for executing is stored with computer executable instructions, the machine-executable instruction when being called and being executed by processor, The computer executable instructions promote the processor to realize the acquisition methods of above-mentioned convert file.
In the embodiment of the present invention, for carrying out the terminal of conversion process to material file, conversion process task is being received When, first it whether there is the corresponding convert file of file destination to cloud server inquiry, which includes Target Photo text Part and/or target audio file.If it does not exist, which just converts file destination according to the requirement of conversion process task Processing, obtains convert file, and convert file is uploaded to cloud server, uses for other terminal inquiries.If cloud service Device there are the corresponding convert file of file destination, illustrate the conversion process task of the file destination before by the terminal or Other terminals are completed, and convert file are uploaded to cloud server, therefore the terminal can be downloaded from cloud server Convert file, in case subsequent packing task, without carrying out duplicate conversion process operation.
By setting cloud server in the embodiment of the present invention, make each terminal after completing conversion process task, it can File destination and corresponding convert file are uploaded in cloud server.Cloud server can also provide institute to each terminal Have the corresponding convert file of file destination, realize conversion process progress between each terminal it is shared with it is synchronous, so as to It is largely avoided the carry out conversion process that file destination is repeated, it is lower to alleviate file transfer efficiency in the prior art The problem of.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic diagram for the document conversion system that the embodiment of the present invention is packaged in scene;
Fig. 2 is the schematic diagram of another document conversion system being packaged in scene of the embodiment of the present invention;
Fig. 3 is the flow chart of the acquisition methods of convert file provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides convert file acquisition methods flow chart;
Fig. 5 provides the detail flowchart of middle step S201 for the embodiment of the present invention;
Fig. 6 is the schematic diagram of the acquisition device of convert file provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of the acquisition device of another convert file provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Icon: 10- terminal;20- cloud server;100- acquisition device;301- enquiry module;302- conversion module; 303- uploading module;3031- generation unit;3032- uploading unit;304- download module;305- search module;3051- search Unit;3052- comparing unit;306- packetization module.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described reality Applying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
It should be noted that term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment The other step or units having.
The embodiment of the invention provides a kind of embodiments of the acquisition methods of convert file, it should be noted that in attached drawing Process the step of illustrating can execute in a computer system such as a set of computer executable instructions, although also, Logical order is shown in flow charts, but in some cases, can be executed with the sequence for being different from herein it is shown or The step of description.
Game, using etc. softwares development process in, needed in the development process of software using it is one or more eventually It holds (distributed job), conversion process is carried out to material files such as picture, audios, and each terminal is communicated with cloud server Connection.The packing scene that Fig. 1 shows a terminal 10 and cloud server 20 is constituted;Fig. 2 shows multiple terminals 10 and clouds The packing scene for holding server 20 to constitute.The acquisition methods of convert file provided in an embodiment of the present invention can be applied to above-mentioned terminal Among, which can be the equipment such as computer.
As shown in figure 3, the acquisition methods of convert file provided in an embodiment of the present invention the following steps are included:
S101: it whether there is the corresponding convert file of file destination to cloud server inquiry.
It, can be first corresponding with the presence or absence of file destination to cloud server inquiry when terminal receives conversion process task Convert file.If it is not, executing step S102;If so, executing step S103.
Wherein, above-mentioned file destination can be Target Photo file, be also possible to target audio file;Alternatively, can also be with It is that both Target Photo file and target audio file all have.Above-mentioned conversion process task may include for Target Photo file Conversion of resolution, format conversion or compression etc.;Or it does not see for bit rate conversion, the format conversion with target audio file Or compression etc..
S102: conversion process is carried out to file destination, obtains convert file, and convert file is uploaded to cloud service Device is used for other terminal inquiries.
Above-mentioned terminal, can be according to the requirement of conversion process task to target text when carrying out conversion process to file destination Part carries out conversion process, obtains convert file.By taking Target Photo file as an example, the requirement of conversion process task may include differentiating Rate conversion, format conversion or compression etc., are based on this, which can be according to the requirement of this conversion process task, to target figure Piece file carries out conversion process, and obtained convert file is made to reach required resolution ratio, format or size.
Above-mentioned cloud server can be communicated to connect with multiple terminals simultaneously, and such any terminal is uploaded to cloud server Convert file, be available for other terminal inquiries use.
S103: convert file is downloaded from cloud server.
If there are the corresponding convert files of file destination for cloud server, the conversion process task of the file destination is illustrated Through being completed before by terminal and convert file being uploaded to cloud server, this terminal may be to execute current conversion The terminal of processing task is also possible to other terminals, as long as having on cloud server there are the corresponding convert file of file destination The terminal of demand can download the convert file from cloud server, in case subsequent packing task, without being repeated Conversion process operation.
In the above method of the embodiment of the present invention, by the way that cloud server is arranged, each terminal is made to complete conversion process After task, file destination and corresponding convert file can be uploaded in cloud server.Cloud server can also be to each A terminal provides all file destinations corresponding convert file, realizes the shared and same of conversion process progress between each terminal Step, so as to be largely avoided the carry out conversion process that file destination is repeated, alleviates file in the prior art The lower problem of transfer efficiency.
As shown in figure 4, the acquisition methods of the convert file provided in an optional embodiment of the invention, with game It is illustrated for the conversion process of Target Photo file in development process, method includes the following steps:
S201: the corresponding convert file of Target Photo file is inquired in the local database.
When terminal receives conversion process task, the corresponding conversion text of Target Photo file is inquired in the local database Part.When successful inquiring, the convert file can be directly obtained from local data base.When inquiring failure, step is executed S202。
As shown in figure 5, specific embodiment may comprise steps of:
S2011: according to the store path of Target Photo file, it is corresponding that Target Photo file is inquired in the local database Local convert file.
In the local database, the store path of each Target Photo file and its corresponding convert file is usually solid Fixed, or save according to certain rules.It is thus known that the store path A of Target Photo file, so that it may which it is right with it to extrapolate The store path B for the convert file answered, and inquiry whether there is convert file in store path B.
When not inquiring local convert file, inquiry failure will execute step S202.
When inquiring local convert file, step S2012 will be executed.
S2012: compare the digest value of the corresponding convert file of Target Photo file and local conversion text on cloud server Whether the digest value of part is consistent.
Digest value therein can be using MD5 value or cryptographic Hash etc., and the present embodiment is illustrated by taking MD5 value as an example.Message Digest algorithm the 5th edition (Message-Digest Algorithm) is referred to as MD5, is a kind of cryptographic hash being widely used Function can produce out one 128 (16 bytes) or one 256 (32 byte) hashed values (hash value), be used for Ensure that information transmission is complete consistent.
When inquiring local convert file, then the Target Photo file once necessarily passes through conversion process, and Convert file also on be transmitted through cloud server, it is possible to find Target Photo file corresponding conversion text from cloud server Part, and or the convert file MD5 value N1.Then the MD5 value N of local convert file is obtained2, compare N1With N2It is whether consistent.
If inconsistent, inquiry failure will execute step S202.N1With N2It is inconsistent, it indicates once to complete conversion before terminal Processing task simultaneously uploads MD5 value as N2Convert file after, because of the different editions of game or different exploitation branch, and right Target Photo file produces new conversion process task, and specific requirement (resolution ratio, comparison of new conversion process task Degree, format etc.) it is different from a preceding conversion process task.And new conversion process task is to be completed by other terminals, and incite somebody to action MD5 value is N1Convert file be uploaded to cloud server, and cover MD5 value be N1Convert file.Due to the above reasons, Lead to the MD5 value N of current local convert file2Different from the MD5 value N of convert file in cloud server1, i.e. local data base In convert file be older version, need to be implemented step S202.Alternatively, step S205 can also be executed at this time with from cloud Server obtains convert file.
If N1With N2Unanimously, successful inquiring, i.e. convert file in local data base are latest editions, can be directly from this The convert file is obtained in ground database, avoids the carry out conversion process that file destination is repeated.
S202: it whether there is the corresponding convert file of Target Photo file to cloud server inquiry.
When the corresponding convert file of inquiry Target Photo file fails in the local database, terminal is looked into cloud server It askes and whether there is the corresponding convert file of Target Photo file.If it does not exist, step S203 is executed;If it exists, step is executed S205。
Specifically the Target Photo can be whether there is to cloud server inquiry according to the index information of Target Photo file The corresponding convert file of file.Wherein, index information may include Target Photo file MD5 value and current conversion regime.Deserve Preceding conversion regime refers to the conversion regime that this conversion process required by task will carry out Target Photo file, because of same target Picture file also will appear different conversion regimes in different conversion process tasks.Such as: Target Photo file X, Conversion regime in the conversion process task of V3.0 version is that conversion of resolution is 1600 × 900, is generated after conversion process Convert file X1;The same Target Photo file X, the conversion regime in the conversion process task of V3.1 version are that resolution ratio turns 1920 × 1080 are changed to, convert file X2 is generated after conversion process.
In above-mentioned index information can also include Target Photo file store path or title, in order to more accurately to Cloud server is inquired.
S203: conversion process is carried out to Target Photo file, obtains convert file.
Specifically, carrying out conversion process by following at least one conversion regime to Target Photo file, conversion text is obtained Part.Wherein, conversion regime includes conversion of resolution, format conversion or compression, for example convert file may be to turn by resolution ratio It gets in return, it is also possible to after conversion of resolution, be obtained using compression.
S204: being uploaded to cloud server for convert file, uses for other terminal inquiries.
After carrying out conversion process to Target Photo file, the transformation result comprising convert file is generated, then by Change-over knot Fruit is uploaded to cloud server.
Wherein, the transformation result includes: Target Photo file, the store path of Target Photo file and MD5 value;Conversion File, the store path of convert file and MD5 value;And Target Photo file and the corresponding conversion regime of convert file.By mesh Mark picture file and its store path and MD5 value, convert file and its store path and MD5 value and conversion regime all save Enter transformation result, enables accurately to obtain query result when other terminal inquiries.Even if a Target Photo file is through excessive The different conversion regime of kind, generates multiple convert files respectively, also can guarantee the accurate of inquiry.
S205: convert file is downloaded from cloud server.
In above-mentioned steps S202, terminal inquires that there are the corresponding convert files of Target Photo file to cloud server When, convert file directly can be downloaded from cloud server, in case subsequent packing task, without carrying out duplicate conversion Handle operation.
S206: when getting the convert file of each Target Photo file, being packaged all convert files, generates Packaging file.
For a packing task, when terminal gets this each convert file for being packaged required by task with various approach When, all convert files are packaged, packaging file is generated.
In the embodiment of the present invention, cloud server can provide all file destinations corresponding conversion text to each terminal Part, realize conversion process progress between each terminal it is shared with it is synchronous.Each terminal is inquired in the local database first It whether there is required convert file with the presence or absence of required convert file, then to cloud server inquiry, so as to very The carry out conversion process for avoiding file destination from being repeated in big degree, alleviates that file transfer efficiency is lower in the prior art asks Topic.
It should be noted that in other embodiments, the acquisition methods of the convert file can also be applied to other types Software development process, file destination is also possible to target audio file, and conversion regime may include that bit rate conversion, format turn It changes, compress.
It another embodiment of the invention provides a kind of acquisition device of convert file, can be applied to carry out at conversion The terminal of reason.As shown in fig. 6, the acquisition device of the convert file includes:
Enquiry module 301, for whether there is the corresponding convert file of file destination to cloud server inquiry.
When acquisition device receives conversion process task, first whether deposited from enquiry module 301 to cloud server inquiry In the corresponding convert file of file destination.Wherein, file destination can be Target Photo file, be also possible to target audio text Part;Alternatively, being also possible to both Target Photo file and target audio file all has.
Conversion module 302, for carrying out conversion process to file destination when the query result of enquiry module 301 is no, Obtain convert file.
Conversion module 302 in acquisition device carries out conversion process to file destination according to the requirement of conversion process task, Obtain convert file.By taking Target Photo file as an example, conversion module 302 is according to the requirement of this conversion process task, to target Picture file carries out conversion process, and obtained convert file is made to reach required resolution ratio, format or size.
Uploading module 303 is used for convert file to be uploaded to cloud server for other terminal inquiries.
The convert file that conversion module 302 generates is uploaded to cloud server by the uploading module 303 in acquisition device, is supplied Other acquisition device inquiries use.Because cloud server is communicated to connect with multiple acquisition device simultaneously, any acquisition dress The convert file for being uploaded to cloud server is set, the inquiry of other acquisition device is available for and uses.
Download module 304, for downloading conversion text from cloud server when the query result of enquiry module 301, which is, is Part.
If there are the corresponding convert files of file destination for cloud server, the conversion process task of the file destination is illustrated Through being completed before by acquisition device or other acquisition device, and convert file is uploaded to cloud server.It obtains Take device that can download convert file from cloud server by download module 304, in case subsequent packing task, without into The duplicate conversion process operation of row.
By setting cloud server in the embodiment of the present invention, make each terminal after completing conversion process task, it can File destination and corresponding convert file are uploaded in cloud server.Cloud server can also provide institute to each terminal Have the corresponding convert file of file destination, realize conversion process progress between each terminal it is shared with it is synchronous, so as to It is largely avoided the carry out conversion process that file destination is repeated, it is lower to alleviate file transfer efficiency in the prior art The problem of.
In another embodiment of the present invention, enquiry module 301 is specifically used for: the index information based on file destination, to Cloud server inquiry whether there is the corresponding convert file of file destination.
Wherein, index information include Target Photo file MD5 value and current conversion regime.Conversion regime refers to before deserving The conversion regime that this conversion process required by task will carry out Target Photo file, because same Target Photo file is in difference Conversion process task in also will appear different conversion regimes.Such as: Target Photo file X, at the conversion of V3.0 version Conversion regime in reason task is that conversion of resolution is 1600 × 900, and convert file X1 is generated after conversion process;It is same Target Photo file X, the conversion regime in the conversion process task of V3.1 version are that conversion of resolution is 1920 × 1080, warp Convert file X2 is generated after crossing conversion process.
Further, as shown in fig. 7, the acquisition device of the convert file further include:
Search module 305, for the corresponding convert file of inquiry file destination in the local database;
When inquiring failure, enquiry module 301 is to cloud server inquiry with the presence or absence of the corresponding conversion text of file destination Part.
In the present embodiment, search module includes: search unit 3051 and comparing unit 3052.Search unit 3051, is used for According to the store path of file destination, the corresponding local convert file of file destination is inquired in the local database;When not inquiring When to local convert file, inquiry failure.Comparing unit 3052, for when query unit 301 inquires local convert file, Whether the MD5 value for comparing the corresponding convert file of file destination on cloud server is consistent with the MD5 value of local convert file;If It is inconsistent, inquiry failure.
Preferably, uploading module 303 includes: generation unit 3031 and uploading unit 3032.Generation unit 3031, for giving birth to At the transformation result comprising convert file;Transformation result is uploaded to cloud server by uploading unit 3032.
Wherein, transformation result includes: Target Photo file, the store path of Target Photo file and MD5 value;Conversion text Part, the store path of convert file and MD5 value;And Target Photo file and the corresponding conversion regime of convert file.By target Picture file and its store path and MD5 value, convert file and its store path and MD5 value and conversion regime are all saved into Transformation result enables accurately to obtain query result when other terminal inquiries.Even if a Target Photo file is by a variety of Different conversion regimes, generates multiple convert files respectively, also can guarantee the accurate of inquiry.
In the present embodiment, the acquisition device of the convert file further includes packetization module 306, gets each target for working as When the convert file of file, all convert files are packaged, generate packaging file.For a packing task, work as terminal When getting each convert file that this is packaged required by task with various approach, all convert files are packaged, are generated Packaging file.
As shown in Figure 1, another embodiment of the invention provides a kind of document conversion system, including cloud server 20 With terminal 10.Cloud server 20 is used to provide file destination corresponding convert file to terminal 10, includes above-mentioned in terminal 10 The acquisition device 100 for the convert file that embodiment provides.
As shown in Fig. 2, in another embodiment of the present invention, document conversion system includes cloud server 20 and multiple Terminal 10.Cloud server 20 is used to provide file destination corresponding convert file to terminal 10, includes above-mentioned reality in terminal 10 The acquisition device 100 for the convert file that the mode of applying provides.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 8, be the structural schematic diagram of the electronic equipment, Wherein, which includes processor 81 and memory 80, which is stored with and can be executed by the processor 81 Computer executable instructions, the processor 81 execute searcher of the computer executable instructions to realize above-mentioned virtual item Method.
In the embodiment depicted in fig. 8, which further includes bus 82 and communication interface 83, wherein processor 81, communication interface 83 and memory 80 are connected by bus 82.
Wherein, memory 80 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 83 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..Bus 82 can be isa bus, pci bus or Eisa bus etc..The bus 82 can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 8 only It is indicated with a four-headed arrow, it is not intended that an only bus or a type of bus.
Processor 81 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 81 or the instruction of software form.Above-mentioned Processor 81 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processor, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), field programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.The storage medium is located at memory, and processor 81 reads the information in memory, hard in conjunction with it Part completes the step of searching method of the virtual item of previous embodiment.
Another embodiment of the invention provides a kind of computer readable storage medium, computer readable storage medium is deposited Computer executable instructions are contained, when being called and being executed by processor, computer executable instructions promote machine-executable instruction The acquisition methods for the convert file for making processor realize that above embodiment provides.
Application example of the acquisition methods of above-mentioned convert file introduced below in the development process of game class software:
Exploration project group deploys first set in first terminal and is packaged environment, using the first terminal as baling press, then Code will be packaged to pull on first terminal.Meanwhile cloud server is also disposed into corresponding row, and is configured in being packaged code Access the interface of cloud server.
First terminal starts to be packaged for the first time: conversion process is carried out to all Target Photo files using first terminal, Exactly all pictures are required according to the acquisition methods of above-mentioned convert file to carry out conversion process, the conversion process of each picture After the completion of task all executes, the picture (i.e. convert file) after conversion will be generated in first terminal.If using distribution Formula operation, convert file is after the generation of multiple terminals, it will passes first terminal back by network.Based on conversion regime (as converted Resolution ratio, format transformation etc.) and Target Photo file and convert file digest value (such as MD5 value), call cloud server Interface, stored and uploaded in the form of transformation result.
When the baling press (first terminal) carries out second of packing, local data base is existing to be packaged the conversion generated for the first time File, but due to version updating, it has partial target picture file and is modified.When second of packing, according to above-mentioned conversion text The acquisition methods of part, the unmodified corresponding convert file of Target Photo file can be done directly and obtain.Modified Target Photo file needs conversion process again after comparing with the transformation result in cloud server, can call at conversion The interface of reason task carries out conversion process.After the completion of conversion process, the convert file of generation is by the convert file before covering, together When beyond the clouds server increase new transformation result.
When disposing second set of packing environment, ring is packaged using second terminal as baling press, concrete configuration method and first set Border is identical.
Start to be packaged for the first time using second terminal, according to the acquisition methods of above-mentioned convert file, due to second terminal Local data block does not have convert file, so needing to obtain from cloud server.If under the version of second set of packing environment, All Target Photo files have corresponding history transformation result, then without carrying out additional conversion process, all take from cloud It is obtained on business device.If thering is Target Photo file to be modified under the version of second set of packing environment, then needing to carry out additional Transformation result is saved and is uploaded by conversion process.
If second set of packing environment needs to be switched to other versions or other exploitation branches, conversion regime is caused to change Become, then corresponding many transformation results will be with new conversion process task not in local data base and cloud server Match.According further to the acquisition methods of above-mentioned convert file, if there is no corresponding with Target Photo file on cloud server Convert file then re-starts conversion process, and transformation result is saved and uploaded.If on cloud server exist with The corresponding convert file of Target Photo file then directly can obtain corresponding convert file from cloud server.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided by the present invention, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of acquisition methods of convert file, which is characterized in that the method is applied to terminal, which comprises
It whether there is the corresponding convert file of file destination to cloud server inquiry;Wherein, the file destination includes target Picture file and/or target audio file;
If it is not, carrying out conversion process to the file destination, convert file is obtained, and the convert file is uploaded to the cloud Server is held, is used for other terminal inquiries;
If so, downloading convert file from the cloud server.
2. the method according to claim 1, wherein corresponding with the presence or absence of file destination to cloud server inquiry Convert file, comprising:
Based on the index information of the file destination, it whether there is the corresponding conversion of the file destination to cloud server inquiry File.
3. according to the method described in claim 2, it is characterized in that, the index information includes the digest value of the file destination With current conversion regime.
4. the method according to claim 1, wherein the convert file is uploaded to the cloud server, Include:
Generate the transformation result comprising the convert file;
The transformation result is uploaded to the cloud server;
Wherein, the transformation result includes:
The store path and digest value of the file destination, the file destination;
The store path and digest value of the convert file, the convert file;
The file destination and the corresponding conversion regime of the convert file.
5. the method according to claim 1, wherein corresponding with the presence or absence of file destination to cloud server inquiry Convert file before, further includes:
The corresponding convert file of inquiry file destination in the local database;
When inquiring failure, the step that whether there is the corresponding convert file of file destination to cloud server inquiry is executed Suddenly.
6. according to the method described in claim 5, it is characterized in that, whether there is the corresponding conversion of file destination in local search File, comprising:
According to the store path of file destination, the corresponding local convert file of file destination is inquired in the local database;
When not inquiring local convert file, inquiry failure;
When inquiring local convert file, compare the digest value of the corresponding convert file of the file destination on cloud server It is whether consistent with the digest value of the local convert file;
If inconsistent, inquiry failure.
7. method according to any one of claims 1 to 6, which is characterized in that further include:
When getting the convert file of each file destination, all convert files are packaged, generate packaging file.
8. the method according to claim 1, wherein the file destination is Target Photo file;
Carrying out conversion process to the file destination includes:
At least one conversion regime is passed through to the file destination and carries out conversion process;
Wherein, the conversion regime includes conversion of resolution, format conversion or compression.
9. a kind of acquisition device of convert file characterized by comprising
Enquiry module, for whether there is the corresponding convert file of file destination to cloud server inquiry;Wherein, the target File includes Target Photo file and/or target audio file;
Conversion module, for carrying out conversion process to the file destination, obtaining when the query result of the enquiry module is no To convert file;
Uploading module is used for the convert file to be uploaded to the cloud server for other terminal inquiries;
Download module, for downloading convert file from the cloud server when the query result of the enquiry module, which is, is.
10. a kind of document conversion system, which is characterized in that including cloud server and terminal;
The cloud server is used to provide file destination corresponding convert file to the terminal;
The terminal includes the acquisition device of convert file as claimed in claim 9.
11. a kind of electronic equipment, including memory, processor and it is stored on the memory and can transports on the processor Capable computer program, which is characterized in that the processor realizes the claims 1 to 8 when executing the computer program The step of described in any item methods.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer can It executes instruction, when being called and being executed by processor, the computer executable instructions promote the computer executable instructions The processor realizes the described in any item methods of claim 1 to 8.
CN201910664722.XA 2019-07-22 2019-07-22 Acquisition methods, device and the document conversion system of convert file Pending CN110362546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910664722.XA CN110362546A (en) 2019-07-22 2019-07-22 Acquisition methods, device and the document conversion system of convert file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910664722.XA CN110362546A (en) 2019-07-22 2019-07-22 Acquisition methods, device and the document conversion system of convert file

Publications (1)

Publication Number Publication Date
CN110362546A true CN110362546A (en) 2019-10-22

Family

ID=68220720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910664722.XA Pending CN110362546A (en) 2019-07-22 2019-07-22 Acquisition methods, device and the document conversion system of convert file

Country Status (1)

Country Link
CN (1) CN110362546A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490012A (en) * 2021-07-26 2021-10-08 南京炫佳网络科技有限公司 Preemptive injection method, device, server and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769638A (en) * 2011-05-05 2012-11-07 腾讯科技(深圳)有限公司 Method, device and system for downloading files
CN102982116A (en) * 2012-11-09 2013-03-20 中国联合网络通信集团有限公司 Multi-media transfer method and system based on cloud
CN104021170A (en) * 2014-05-30 2014-09-03 华为技术有限公司 Information acquiring method and cloud server
US20140344892A1 (en) * 2012-04-28 2014-11-20 Guangzhou Ucweb Computer Technology Co., Ltd Cloud-storage-based file processing method and system
CN104317956A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Query and memory space cleaning method and system based on cloud server
CN105824552A (en) * 2015-07-29 2016-08-03 维沃移动通信有限公司 Text information recognition method and device
CN106332556A (en) * 2015-04-30 2017-01-11 华为技术有限公司 Cloud file transmission method, terminal and cloud server
CN106407286A (en) * 2016-08-29 2017-02-15 乐视控股(北京)有限公司 Music search method and apparatus
CN107357864A (en) * 2017-06-30 2017-11-17 联想(北京)有限公司 A kind of document handling method and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769638A (en) * 2011-05-05 2012-11-07 腾讯科技(深圳)有限公司 Method, device and system for downloading files
US20140344892A1 (en) * 2012-04-28 2014-11-20 Guangzhou Ucweb Computer Technology Co., Ltd Cloud-storage-based file processing method and system
CN102982116A (en) * 2012-11-09 2013-03-20 中国联合网络通信集团有限公司 Multi-media transfer method and system based on cloud
CN104021170A (en) * 2014-05-30 2014-09-03 华为技术有限公司 Information acquiring method and cloud server
CN104317956A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Query and memory space cleaning method and system based on cloud server
CN106332556A (en) * 2015-04-30 2017-01-11 华为技术有限公司 Cloud file transmission method, terminal and cloud server
CN105824552A (en) * 2015-07-29 2016-08-03 维沃移动通信有限公司 Text information recognition method and device
CN106407286A (en) * 2016-08-29 2017-02-15 乐视控股(北京)有限公司 Music search method and apparatus
CN107357864A (en) * 2017-06-30 2017-11-17 联想(北京)有限公司 A kind of document handling method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490012A (en) * 2021-07-26 2021-10-08 南京炫佳网络科技有限公司 Preemptive injection method, device, server and storage medium

Similar Documents

Publication Publication Date Title
KR102310187B1 (en) A distributed computing system including multiple edges and cloud, and method for providing model for using adaptive intelligence thereof
RU2619195C2 (en) Method and device for finding a file in a storage unit and router
CN108287758A (en) A kind of application resource management method, application method and device
CN106502715A (en) A kind of application program collocation method and device by all kinds of means
CN110489126A (en) Execution method and apparatus, storage medium and the electronic device of compiler task
WO2016058488A1 (en) Method and device for providing sdk files
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN107204998B (en) Method and device for processing data
US20200210488A1 (en) Automatic resource management for build systems
CN112052011A (en) Method and device for combining small programs, electronic equipment and medium
CN110362546A (en) Acquisition methods, device and the document conversion system of convert file
CN112199186B (en) Data processing method, device, equipment and storage medium based on intelligent contract
CN108897858A (en) The appraisal procedure and device, electronic equipment of distributed type assemblies index fragment
Anthony et al. Online bottleneck matching
CN101415029B (en) Method and apparatus for distributing files
CN111984595B (en) File processing method and device and storage medium
CN111459611A (en) Mirror image pulling method and device for Kubernetes system
CN111225032A (en) Method, system, device and medium for separating application service and file service
CN108334374A (en) The method and apparatus of component dynamic load and execution
CN112947900A (en) Web application development method and device, server and development terminal
CN115525300A (en) Incremental mirror image packaging method and system in container cloud scene
CN114047938A (en) Method, device and equipment for constructing mirror image and readable storage medium
CN112988176A (en) Channel package generation method and device, storage medium and electronic equipment
CN112506526A (en) Data presentation software deployment method and device and electronic equipment
CN113031972A (en) Method for decoupling flink stream calculation dependent file and mirror image in cloud native scene

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022

RJ01 Rejection of invention patent application after publication