CN109933569B - File merging method, file opening method and related equipment - Google Patents

File merging method, file opening method and related equipment Download PDF

Info

Publication number
CN109933569B
CN109933569B CN201910082138.3A CN201910082138A CN109933569B CN 109933569 B CN109933569 B CN 109933569B CN 201910082138 A CN201910082138 A CN 201910082138A CN 109933569 B CN109933569 B CN 109933569B
Authority
CN
China
Prior art keywords
format
file
files
reading
combined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910082138.3A
Other languages
Chinese (zh)
Other versions
CN109933569A (en
Inventor
陈翔
黄迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910082138.3A priority Critical patent/CN109933569B/en
Publication of CN109933569A publication Critical patent/CN109933569A/en
Priority to PCT/CN2019/118801 priority patent/WO2020155780A1/en
Application granted granted Critical
Publication of CN109933569B publication Critical patent/CN109933569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (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)

Abstract

The invention provides a merging method of files based on data processing, an opening method of files, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a cat command input by a user, and acquiring a plurality of first files with different formats to be combined from a designated position according to the cat command; splicing the plurality of first files according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain a combined file; the combined file is stored to a designated position by taking any one of different formats of a plurality of first files as a storage format, all the files in the combined file obtained by the combining method are not interfered with each other, when the combined file is popularized to a client, the transmission of the plurality of files can be completed by only one transmission channel, and the corresponding content can be opened and displayed by software in a plurality of formats, so that the user can conveniently open and browse the content.

Description

File merging method, file opening method and related equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method for merging files, a method for opening a file, and related devices.
Background
At present, a file spreading mode can only adopt a single file spreading mode, for example, when spreading, files in any format such as video, documents, pictures and the like can be used for transmission, if the files in multiple formats are required to be spread, the files are required to be transmitted, on one hand, the cost is high from the aspect of enterprises, on the other hand, the files are inconvenient from the aspect of clients, and the files are required to be transmitted and spread after being combined.
In the prior art, files with different formats are combined, and a compressed file is generally obtained by compressing and combining a plurality of files, so that the files can be seen only after decompression, and the files still obtained after decompression occupy space and memory positions and are troublesome to operate.
In addition, there is a technology of integrating pictures, documents and the like into one file, but in this method, for example, a picture file is inserted into a combined file formed by document files, a user opens the file and can see the content of the combined file at the same time, and in some cases, the content of two files need not be combined together, for example, two companies a and b, a company a is a video propaganda file, and a company b is a document propaganda file, if propaganda contents of the company a and b can only be integrated together by the method, but the user can also view the respective content separately in advance of combining into one file.
Disclosure of Invention
The invention mainly aims to provide a file merging method, a file opening method, computer equipment and a storage medium, and aims to solve the problem that when files with different formats are merged, only contents can be merged or the contents can be merged by compression so as to cause extremely inconvenient use.
Based on the above object, the present invention provides a method for merging files, comprising:
acquiring a cat command input by a user, wherein the cat command is used for merging files with different formats;
acquiring a plurality of first files with different formats to be combined from a designated position according to the cat command; the first file comprises protocol information corresponding to a file format, wherein the protocol information comprises a protocol header positioned at a byte starting position in the file, and the protocol header comprises a byte starting position, a byte ending position and information of byte length from the byte starting position to the byte ending position;
splicing the plurality of first files according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain a combined file;
And storing the combined file to the designated position in any one of different formats of a plurality of first files as a storage format.
Further, the step of storing the merged file in any one of different formats of the plurality of first files as a storage format to the specified location includes:
acquiring format information input by a user and used for storing the merged file;
and storing the combined file to the designated position in the storage format according to the format information.
Further, the first files include JPG format files and non-JPG format files, and the step of splicing the plurality of first files according to the manner that the byte start position of the next first file is spliced to the byte end position of the previous first file until all the first files are spliced to obtain the merged file includes:
the non-JPG format files are packed and compressed after being combined through the cat command, so that non-JPG format compressed files are obtained;
and splicing the non-JPG format compressed file and the JPG format file according to the mode that the byte starting position of the next file is spliced to the byte ending position of the previous file to obtain the combined file.
The invention also provides a method for opening the combined file obtained by the combining method, which comprises the following steps:
acquiring first opening information of a user for opening the combined file through reading software;
judging whether the reading format of the reading software is the storage format according to the first opening information;
if so, displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information.
Further, the plurality of first files with different formats to be combined include a first file with a first format and a first file with a second format, the storage format is the first format, and after the step of displaying the content of the first file with the first format corresponding to the storage format in the combined file according to the first opening information, the method includes:
acquiring modification information for modifying the storage format by a user, wherein the modification information comprises a format suffix name corresponding to the second format;
modifying the storage format of the combined file from the first format to the second format according to the modification information;
acquiring second opening information of a user for opening the combined file through reading software corresponding to the second format;
And displaying the content of the first file corresponding to the second format in the combined file according to the second opening information.
Further, the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information includes:
finding a first protocol header of a first file with a file format being the storage format in the combined file according to the first opening information;
acquiring a corresponding first byte starting position and a first byte length from the first protocol header, and extracting file content corresponding to the first byte length by taking the first byte starting position as a starting point;
and analyzing and displaying the file content.
Further, the format information of the storage format includes a suffix name of the format, and after the step of determining whether the reading format of the reading software is the storage format according to the first opening information, the method includes:
if the reading format is not the storage format, judging whether the reading format is any one of the plurality of different formats except the storage format;
if the reading format is any one of the storage formats except for the plurality of different formats, judging whether the reading software is the reading software capable of ignoring the format suffix name of the file;
If the reading software is the reading software capable of ignoring the format suffix name of the file, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format; otherwise, stopping opening the combined file.
Further, after the step of determining whether the reading software is the reading software capable of ignoring the format suffix name of the file, the method includes:
if the reading software is not the reading software capable of ignoring the format suffix name of the file, acquiring the reading format of the reading software;
and changing the format suffix name of the combined file into the format suffix name corresponding to the reading format according to the reading format, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format.
The invention also provides a computer device comprising a memory storing a computer program and a processor implementing the steps of the above method when executing the computer program.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
The beneficial effects of the invention are as follows: the files with different formats are combined into one combined file through the combining method, and the files are not interfered with each other, so that when the combined file needs to be popularized to a client, the transmission of the files can be completed through only one transmission channel, and the corresponding content can be opened and displayed through software with various formats, so that the user can conveniently open and browse the file.
Drawings
FIG. 1 is a schematic diagram showing steps of a method for merging files according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating steps of a method for opening a merge file according to an embodiment of the invention;
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, the method for merging files in this embodiment includes:
step S1: acquiring a cat command input by a user, wherein the cat command is used for merging files with different formats;
step S2: acquiring a plurality of first files with different formats to be combined from a designated position according to the cat command; the first file comprises protocol information corresponding to a file format, wherein the protocol information comprises a protocol header positioned at a byte starting position in the file, and the protocol header comprises a byte starting position, a byte ending position and information of byte length from the byte starting position to the byte ending position;
Step S3: splicing the plurality of first files according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain a combined file;
step S4: and storing the combined file to the designated position in any one of different formats of a plurality of first files as a storage format.
As described in the above steps S1 and S2, the merging of files of different formats may be implemented by a cat command (cat is a abbreviation of conccate, which means that a plurality of text files are displayed or connected together) which is a command for merging files under a Linux system (a computer operating system), specifically, the command may be directly input by a user, and then the system acquires the command. After the cat command is acquired, the cat command is executed, first a first file to be combined is acquired from a designated position, the first file to be combined is a file prepared in advance, and the first file to be combined is stored in the designated position, for example, a preset database of a storage system, and the first file to be combined is directly acquired from the preset database when needed. The first file is used for merging and spreading, and can be files with different formats, such as video format, PDF format, TXT format and word format. It will be appreciated that merging files of different formats, i.e. merging bytes in the content of multiple files, each file itself carries protocol information including protocol rules, byte lengths, format types, etc. Specifically, the protocol information, such as letters, numbers or a combination of both, may be described by a character agreed by the format, where the protocol information in the file format is specification information of the format, including attribute information such as Length and Identifier, the Identifier is the type of the format, the attribute information may be represented by characters agreed by the format, such as Identifier attribute in the protocol information in the FIF format, the header of the file occupies 5 bytes, the corresponding character is "JFIF" + "0", and the protocol information in the video format includes attributes such as box size, box type, etc., where the box type attribute represents type, occupies 4 bytes, and the corresponding character is a format character (such as "ftyp", "moov") of the video. For convenience of description in this embodiment, the byte with the protocol information in front of the file is defined as a protocol header, and the protocol header includes information of byte start position, byte end position, and byte length from the byte start position to the byte end position.
As described in the above steps S3 and S4, the files with different formats are merged according to the cat command in a byte end-to-end splicing manner, that is, splicing is performed in a manner of splicing the byte start position of the next first file to the byte end position of the previous first file until all the first files are spliced, so that the merged file is obtained, and thus, contents among various formats in the merged file are not interfered with each other. After forming the merged file, the merged file is stored in any one of the different formats of the first file as a storage format in the specified location.
For example, the files 1 and 2 are combined, the files 1 and 2 to be combined are stored to a designated position, then a cat command, such as cat+File 1 (file name) +File 2 (file name) →combined file (name) input by a user, is used, so that the cat command is obtained, the files 1 and 2 are obtained after finding according to the cat command and searching according to the names of the files 1 and 2 at the designated position, then the combination is performed, the beginning position of the 2 bytes of the files is spliced to the ending position of the bytes of the files 1 during the combination, and the combined file name is the combined file (name) input by the operation. When reading by using the reading software, the reading software finds the corresponding protocol header of the first file, analyzes the byte length content of the section and displays the byte length content, and the reading software can be various software for watching file content, such as a PDF reader, a video player, a word reader and the like.
In one embodiment, the step S4 includes:
step S41: acquiring format information input by a user and used for storing the merged file;
step S42: and storing the combined file to the designated position in the storage format according to the format information.
In this embodiment, since the merge file may use any one of different formats of the first file as a storage format, before storing, one of the formats may be selected by the user as a storage format, and then stored, where the format information includes a format suffix name of the merge file, when the format suffix name input by the user is obtained, the merge file may be stored in the format of the format suffix name, and note that the format suffix name input by the user is a suffix name of any one of the different formats of the first file, so that the user may directly store the merge file in a format desired by the user to a designated location after merging according to actual needs, thereby avoiding the trouble of changing the format during subsequent use, for example, a merge file formed by merging a video format file and a PDF format file by the above-mentioned merge method. In another example, if the user wants to promote the merged file after merging the video format and the PDF format of the promotional file to the client, but it is actually more attractive for the client to initially receive the video, then the user may input the format information of the video when storing according to the actual need, so that the storage format of the merged file is the video format, and then promoted to the client.
In one embodiment, the first file includes a JPG format file and a non-JPG format file, and the step S3 includes:
step S31: the non-JPG format files are packed and compressed after being combined through the cat command, so that non-JPG format compressed files are obtained;
step S32: and splicing the non-JPG format compressed file and the JPG format file according to the mode that the byte starting position of the next file is spliced to the byte ending position of the previous file to obtain the combined file.
In this embodiment, the files in different formats may further include JPG format files and non-JPG format files, where the non-JPG format files (such as mp4 format, PDF format, TXT format, word format, etc.) are first combined by the above-mentioned combining method and then compressed, that is, combined according to the cat command and then packed and compressed, so as to obtain a non-JPG format compressed file, then the non-JPG format compressed file is combined with the JPG format files, when the user wants to view the content of the JPG format files in the combined file, the user only needs to open the JPG format files by using a picture reader, if the user wants to view other files that are combined together, then decompress the compressed files by using a decompression tool, at this time, the compressed files are decompressed and then a secondary combined file except the JPG format file is obtained, and then the secondary combined file is viewed by using reading software in a corresponding format.
In summary, by the above-mentioned merging method, a plurality of files with different formats are merged into a merged file, so when the merged file needs to be promoted to a client, the transmission of the plurality of files can be completed only by one transmission channel, and as the files with different formats in the merged file are not interfered with each other, the content corresponding to the format of the reading software in the merged file can be identified by the reading software, and when the content is opened, the content can be extracted for display, i.e. one file can be opened and the corresponding content can be displayed by software with different formats, and the user can open the file for viewing very conveniently.
Referring to fig. 2, the present invention further provides a method for opening the merged file, where the opening method includes:
step S5: acquiring first opening information of a user opening the combined file through reading software,
step S6: judging whether the reading format of the reading software is the storage format according to the first opening information;
step S7: if so, displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information.
In this embodiment, after the above-mentioned combined file is synthesized, the combined file may be propagated and promoted to the user client, where the above-mentioned combined file may be a media propagated propaganda file, and the above-mentioned first file may be files with various formats, such as files with formats of video, PDF, TXT, word, etc. After receiving the combined file, the client may open and view the combined file, and when the user opens the combined file through the reading software, the client obtains the first opening information for opening the combined file as described in step S5.
As described in the above step S6 and step S7, it can be understood that what kind of reading software is generally used can only open the file with the corresponding reading format, for example, the PDF reader can only open the file with PDF, the video player can only open the video file, the word reader can only open the word document file, etc., and if the file with the corresponding reading format is not available, there may be a case that the file cannot be opened and the content of the corresponding file cannot be displayed. And because the reading software adopted by the user is unknown, before the content is displayed, the reading format of the reading software can be obtained through the first opening information, then whether the reading format of the reading software is the storage format of the corresponding combined file is judged, for example, when the combined file is formed by combining an MP4 file and a PDF file, the storage format can be any one of the MP4 file and the PDF file, if the storage format is MP4, the reading format is judged to be MP4, namely, the user is informed that the MP4 player is adopted to open the combined file, and then the content of the MP4 file in the combined file can be displayed according to the first opening information.
In one embodiment, the storage format of the combined file may also be adapted to the reading format of the corresponding reading software by modifying it. The plurality of first files with different formats to be combined include a first file with a first format and a first file with a second format, wherein the storage format is the first format, and after the step S7, the method includes:
Step S71: acquiring modification information for modifying the storage format by a user, wherein the modification information comprises a format suffix name corresponding to the second format;
step S72: modifying the storage format of the combined file from the first format to the second format according to the modification information;
step S73: acquiring second opening information of a user for opening the combined file through reading software corresponding to the second format;
step S74: and displaying the content of the first file corresponding to the second format in the combined file according to the second opening information.
In this embodiment, the first format and the second format may be any one of the formats of video, PDF, TXT, word, etc., and the first format and the second format are different, and the combined file may be modified according to the user's needs (the modified format is the format included in the combined file). Specifically, the first format may be modified to the second format by modifying the format suffix of the merge file, where the modification information input by the user is information for modifying the format suffix of the merge file, and includes the modified format suffix, in this embodiment, the first format needs to be modified to the second format, and then the modification information includes the format suffix corresponding to the second format, for example, a banking company, merges a loan introduction material word document and a promotion small video into one merge file, and sends the merge file to a client, where the merge file is stored in an MP4 format, and then the video file of the merge file may be directly played by an MP4 player, and when its suffix name is changed to the word document suffix (for example, doc), the word file in the merge file may be opened by a word reader.
For example, the propaganda video (MP 4 format file) of company A and detailed text introduction (PDF format) of the product are combined into a combined file, the combined file is promoted to the client of the user in MP4 format, at this time, the user can directly watch the propaganda video by adopting a video player, if interested, the format suffix name of the combined file can also be directly modified, and then the product introduction in PDF format is further checked by a PDF reader, so that the user does not need to interact with company A for a second time, thereby being convenient and saving trouble.
In one embodiment, the step S7 includes:
step S701: finding a protocol header of a first file with a file format being the storage format in the combined file according to the first opening information;
step S702: acquiring a corresponding first byte starting position and a first byte length from the first protocol header, and extracting file content corresponding to the first byte length by taking the first byte starting position as a starting point;
step S703: and analyzing and displaying the file content.
In this embodiment, the first files in each format in the merged file do not interfere with each other, occupy part of the memory in the merged file, and have corresponding protocol headers in the merged file for the reading software to identify. When the combined file is opened by using the reading software, searching a first protocol header of a first file corresponding to the storage format in the combined file according to first opening information obtained during opening, obtaining a first byte starting position and a first byte length from the first protocol header, extracting file contents in the first byte length by taking the first byte starting position as a starting point and the ending position as an ending point, wherein the file contents are file contents corresponding to the storage format, namely the file contents of the first file corresponding to the storage format, and displaying the file contents.
In another embodiment, the user may edit the format of the combined file to obtain a storage format for the combined file for storage. For example, the user directly clicks the merged file to display a plurality of alternative formats, and then selects the formats, for example, mp4, PDF and TXT are included in the formats, at this time, the user can click and select one of the formats, the client can obtain format information input by the user, and the format selected by the user is used as a storage format of the merged file according to the format information and then stored in a designated position of the client. Of course, if the user wants to change to another format, the user can also select to change to another format. Therefore, the step of modifying the format by a user can be saved, and the file with the corresponding format can be opened directly by selecting the format, which is more convenient.
In an embodiment, the format information of the storage format includes a suffix name of the format, and after the step S6, the method further includes:
step S61: if the reading format is not the storage format, judging whether the reading format is any one of the plurality of different formats except the storage format;
step S62: if the reading format is any one of the storage formats except for the plurality of different formats, judging whether the reading software is the reading software capable of ignoring the format suffix name of the file;
Step S63: if the reading software is the reading software capable of ignoring the format suffix name of the file, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format; otherwise, stopping opening the combined file.
In this embodiment, when it is determined that the reading format is not the storage format, it indicates that the combined file cannot be directly opened by using the reading software, but the reading format may be any of multiple formats of the first file except for the storage format, and since the same reading format has various different reading software, and the codes of the different reading software for implementing the functions thereof are not the same, some reading software codes may ignore the format suffix name of the file and directly open the file having the reading format, while some may not, for example, a first video player and a second video player may only open the file with the suffix name WMV, and a second video player may ignore the suffix name of the file, so long as the file includes the video file and may be opened, and if the combined file is opened, the displayed content is the first file content corresponding to the reading format, but not the first file content of the storage format. Therefore, the step needs to continuously judge whether the reading format is any one of the storage formats except for a plurality of different formats, if not, namely, the reading format of the reading software is not any one of the formats in the first file, the matched first file cannot be found, and therefore the opening of the combined file is stopped. However, if the reading format is any one of a plurality of different formats except the storage format, it is determined that the reading software is not the reading software capable of ignoring the format suffix name of the file, and because the reading software capable of ignoring the format suffix name can directly identify the corresponding protocol header, when the reading software identifies the protocol header, it can be determined that the reading software is the reading software capable of ignoring the format suffix name of the file, and at the same time, the first file corresponding to the reading format is opened and displayed.
For example, the combined file is formed by combining an MP4 format first file, a PDF format first file and a TXT format first file, and when a user opens the combined file by using reading software, firstly judging whether the reading format of the reading software is the MP4 format, if so, opening the combined file by the reading software is a video file, namely the MP4 format first file; if not, judging whether the reading format is the other two formats except the MP4 format, namely judging whether the reading format is the PDF format or the TXT format, and if the reading format is not the PDF format or the TXT format, opening the combined file at the moment can not be started, namely stopping opening. If the reading format is PDF format, judging whether the reading software is the software capable of ignoring the format suffix name, if yes, opening the first file in PDF format, if the reading format is TXT format, judging whether the reading software is the software capable of ignoring the format suffix name, if yes, opening the first file in TXT format, and if the reading software is not the software capable of ignoring the format suffix name, opening the combined file.
In one embodiment, after the step S62, the method includes:
step S64: if the reading software is not the reading software capable of ignoring the format suffix name of the file, acquiring the reading format of the reading software;
step S65: and changing the format suffix name of the combined file into the format suffix name corresponding to the reading format according to the reading format, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format.
In this embodiment, when it is determined that the reading software is not reading software capable of ignoring the format suffix name, that is, the reading software cannot open the merged file at this time, the reading format of the reading software may be obtained and the format of which the reading format is identified, then the format suffix name of the merged file is changed to the format suffix name corresponding to the reading format.
The invention provides a file merging device, which comprises:
The system comprises an acquisition command unit, a command processing unit and a command processing unit, wherein the acquisition command unit is used for acquiring a cat command input by a user, and the cat command is used for merging files with different formats;
the file obtaining unit is used for obtaining a plurality of first files with different formats to be combined from the appointed position according to the cat command; the first file comprises protocol information corresponding to a file format, wherein the protocol information comprises a protocol header positioned at a byte starting position in the file, and the protocol header comprises a byte starting position, a byte ending position and information of byte length from the byte starting position to the byte ending position;
a spliced file unit, configured to splice a plurality of first files according to a manner that a byte start position of a next first file is spliced to a byte end position of a previous first file until all the first files are spliced to obtain a combined file;
and a file storing unit configured to store the merged file in any one of different formats of the plurality of first files as a storage format to the specified location.
As described above in the command unit and the file unit, the merging of files of different formats may be implemented by a cat command (cat is a abbreviation of conccate, which means that a plurality of text files are displayed or connected) which is a command for merging files under a Linux system (a computer operating system), specifically, the command may be directly input by a user, and then the system acquires the command. After the cat command is acquired, the cat command is executed, first a first file to be combined is acquired from a designated position, the first file to be combined is a file prepared in advance, and the first file to be combined is stored in the designated position, for example, a preset database of a storage system, and the first file to be combined is directly acquired from the preset database when needed. These first files are used for merging and spreading, and may be files in different formats, such as video format, PDF format, TXT format, and word format. It will be appreciated that merging files of different formats, i.e. merging bytes in the content of multiple files, each file itself carries protocol information including protocol rules, byte lengths, format types, etc. Specifically, the protocol information, such as letters, numbers or a combination of both, may be described by a character agreed by the format, where the protocol information in the file format is specification information of the format, including attribute information such as Length and Identifier, the Identifier is the type of the format, the attribute information may be represented by characters agreed by the format, such as Identifier attribute in the protocol information in the FIF format, the header of the file occupies 5 bytes, the corresponding character is "JFIF" + "0", and the corresponding character is "JFIF" + "as in the video format, the protocol information includes attributes such as box size, box type, etc., where the box type attribute represents type, occupies 4 bytes, and the corresponding character is a format character (such as" ftyp "," moov ") of the video. For convenience of description in this embodiment, the first several bytes of the file with protocol information are defined as a protocol header, and the protocol header includes information of byte start position, byte end position, and byte length from the byte start position to the byte end position.
And combining the files with different formats according to the cat command in a byte head-to-tail splicing mode, namely splicing according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain the combined file, so that contents among various formats in the combined file are not interfered with each other. After forming the merged file, the merged file is stored in any one of the different formats of the first file as a storage format in the specified location.
For example, the files 1 and 2 are combined, the files 1 and 2 to be combined are stored to a designated position, then a cat command, such as cat+File 1 (file name) +File 2 (file name) →combined file (name) input by a user, is used, so that the cat command is obtained, the files 1 and 2 are obtained after finding according to the cat command and searching according to the names of the files 1 and 2 at the designated position, then the combination is performed, the beginning position of the 2 bytes of the files is spliced to the ending position of the bytes of the files 1 during the combination, and the combined file name is the combined file (name) input by the operation. When reading by using the reading software, the reading software can reach the protocol header corresponding to the first file, further analyze the content with the byte length of the section, and display the content.
In one embodiment, the storing file unit includes:
the information acquisition subunit is used for acquiring format information input by a user and used for storing the combined file;
and the storage file subunit is used for storing the combined file to the appointed position in the storage format according to the format information.
In this embodiment, since the merge file may use any one of different formats of the first file as a storage format, before storing, one of the formats may be selected by the user as a storage format, and then stored, where the format information includes a format suffix name of the merge file, when the format suffix name input by the user is obtained, the merge file may be stored in the format of the format suffix name, and note that the format suffix name input by the user is a suffix name of any one of the different formats of the first file, so that the user may directly store the merge file in a format desired by the user to a designated location after merging according to actual needs, thereby avoiding the trouble of changing the format during subsequent use, for example, a merge file formed by merging a video format file and a PDF format file by the above-mentioned merge method. In another example, if the user wants to promote the merged file after merging the video format and the PDF format of the promotional file to the client, but it is actually more attractive for the client to initially receive the video, then the user may input the format information of the video when storing according to the actual need, so that the storage format of the merged file is the video format, and then promoted to the client.
In one embodiment, the first file includes a JPG format file and a non-JPG format file, and the spliced file unit includes:
the compressed file subunit is used for merging the files with the non-JPG format through the cat command and then packing and compressing the files to obtain compressed files with the non-JPG format;
and the spliced file subunit is used for splicing the non-JPG format compressed file and the JPG format file according to the mode that the byte starting position of the next file is spliced to the byte ending position of the previous file so as to obtain the combined file.
In this embodiment, the files in different formats may further include JPG format files and non-JPG format files, where the non-JPG format files (such as mp4 format, PDF format, TXT format, word format, etc.) are first combined by the above-mentioned combining method and then compressed, that is, combined according to the cat command and then packed and compressed, so as to obtain a non-JPG format compressed file, then the non-JPG format compressed file is combined with the JPG format files, when the user wants to view the content of the JPG format files in the combined file, the user only needs to open the JPG format files by using a picture reader, if the user wants to view other files that are combined together, then decompress the compressed files by using a decompression tool, at this time, the compressed files are decompressed and then a secondary combined file except the JPG format file is obtained, and then the secondary combined file is viewed by using reading software in a corresponding format.
In summary, through the above-mentioned merging device, merge a plurality of files of different formats into a merge file and each file does not interfere with each other, so when needs to popularize to the customer, only need a transmission channel once just can accomplish the transmission of a plurality of files, and because the file of different formats in this merge file does not interfere with each other, can discern the content of corresponding reading software format in the merge file through reading software, and can extract this part of content and show when opening, namely a file can be opened through the software of multiple formats and the corresponding content is shown, and the user opens and browses and watches extremely conveniently.
In one embodiment, the present invention further provides an apparatus for opening the merged file, where the opening apparatus includes:
an acquisition opening unit for acquiring first opening information for opening the combined file by a user through reading software,
the judging storage unit is used for judging whether the reading format of the reading software is the storage format according to the first opening information;
and the display content unit is used for displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information when the reading format of the reading software is the storage format.
In this embodiment, after the above-mentioned combined file is synthesized, the combined file may be propagated and promoted to the user client, where the above-mentioned combined file may be a media propagated propaganda file, and the above-mentioned first file may be files with various formats, such as files with formats of video, PDF, TXT, word, etc. After receiving the combined file of the propagation system, the client can open and view the combined file, and when the user opens the combined file through the reading software, the client obtains the first opening information for opening the combined file.
As described above in the determining storage unit and the display content unit, it is understood that what kind of reading software is generally adopted can only open the file with the corresponding reading format, for example, the PDF reader can only open the file with PDF, the video player can only open the video file, the word reader can only open the word document file, etc., and if the file with the corresponding reading format is not available, there may be a case that the file cannot be opened and the content of the corresponding file cannot be displayed. And because the reading software adopted by the user is unknown, before the content is displayed, the reading format of the reading software can be obtained through the first opening information, then whether the reading format of the reading software is the storage format of the corresponding combined file is judged, for example, when the combined file is formed by combining an MP4 file and a PDF file, the storage format can be any one of the MP4 file and the PDF file, if the storage format is MP4, the reading format is judged to be MP4, namely, the user is informed that the MP4 player is adopted to open the combined file, and then the content of the MP4 file in the combined file can be displayed according to the first opening information.
In one embodiment, the storage format of the combined file may also be adapted to the reading format of the corresponding reading software by modifying it. The above-mentioned multiple first files with different formats to be combined include a first file with a first format and a first file with a second format, where the above-mentioned storage format is the first format, and the above-mentioned opening device for combining files further includes:
the acquisition and modification unit is used for acquiring modification information for modifying the storage format by a user, wherein the modification information comprises a format suffix name corresponding to the second format;
a modification format unit, configured to modify a storage format of the merged file from the first format to the second format according to the modification information;
the second opening unit is used for acquiring second opening information for opening the combined file by a user through reading software corresponding to the second format;
and the second display unit is used for displaying the content of the first file corresponding to the second format in the combined file according to the second opening information.
In this embodiment, the first format and the second format may be any one of the formats of video, PDF, TXT, word, etc., and the first format and the second format are different, and the combined file may be modified according to the user's needs (the modified format is the format included in the combined file). Specifically, the first format may be modified to the second format by modifying the format suffix of the merge file, where the modification information input by the user is information for modifying the format suffix of the merge file, and includes the modified format suffix, in this embodiment, the first format needs to be modified to the second format, and then the modification information includes the format suffix corresponding to the second format, for example, a banking company, merges a loan introduction material word document and a promotion small video into one merge file, and sends the merge file to a client, where the merge file is stored in an MP4 format, and then the video file of the merge file may be directly played by an MP4 player, and when its suffix name is changed to the word document suffix (for example, doc), the word file in the merge file may be opened by a word reader.
For example, the propaganda video (MP 4 format file) of company A and detailed text introduction (PDF format) of the product are combined into a combined file, the combined file is promoted to the client of the user in MP4 format, at this time, the user can directly watch the propaganda video by adopting a video player, if interested, the format suffix name of the combined file can also be directly modified, and then the product introduction in PDF format is further checked by a PDF reader, so that the user does not need to interact with company A for a second time, thereby being convenient and saving trouble.
In one embodiment, the displaying the content unit includes:
a searching protocol subunit, configured to find a protocol header of a first file with a file format being the storage format in the merged file according to the first opening information;
the extraction content subunit is used for acquiring a corresponding first byte starting position and a first byte length from the first protocol header, and extracting file content corresponding to the first byte length by taking the first byte starting position as a starting point;
and the analysis display subunit is used for analyzing and displaying the file content.
In this embodiment, the first files in each format in the merged file do not interfere with each other, occupy part of the memory in the merged file, and have corresponding protocol headers in the merged file for the reading software to identify. When the combined file is opened by using the reading software, searching a first protocol header of a first file corresponding to the storage format in the combined file according to first opening information obtained during opening, obtaining a first byte starting position and a first byte length from the first protocol header, extracting file contents in the first byte length by taking the first byte starting position as a starting point and the ending position as an ending point, wherein the file contents are file contents corresponding to the storage format, namely the file contents of the first file corresponding to the storage format, and displaying the file contents.
In another embodiment, the user may edit the format of the combined file to obtain a storage format for the combined file for storage. For example, the user directly clicks the merged file to display a plurality of alternative formats, and then selects the formats, for example, mp4, PDF and TXT are included in the formats, at this time, the user can click and select one of the formats, the client can obtain format information input by the user, and the format selected by the user is used as a storage format of the merged file according to the format information and then stored in a designated position of the client. Of course, if the user wants to change to another format, the user can also select to change to another format. Therefore, the step of modifying the format by a user can be saved, and the file with the corresponding format can be opened directly by selecting the format, which is more convenient.
In an embodiment, the format information of the storage format includes a suffix name of the format, and the opening device of the combined file further includes:
judging a multi-cell unit, wherein the multi-cell unit is used for judging whether the reading format is any one of the storage formats except for the reading format if the reading format is not the storage format;
The judging and neglecting unit is used for judging whether the reading software is the reading software capable of neglecting the format suffix name of the file or not if the reading format is any one of the storage formats except for the plurality of different formats;
the reading software is used for reading the file with the format suffix name of the file, and displaying the content of the first file corresponding to the reading format; otherwise, stopping opening the combined file.
In this embodiment, when it is determined that the reading format is not the storage format, it indicates that the combined file cannot be directly opened by using the reading software, but the reading format may be any of multiple formats of the first file except for the storage format, and since the same reading format has various different reading software, and the codes of the different reading software for implementing the functions thereof are not the same, some reading software codes may ignore the format suffix name of the file and directly open the file having the reading format, while some may not, for example, a first video player and a second video player may only open the file with the suffix name WMV, and a second video player may ignore the suffix name of the file, so long as the file includes the video file and may be opened, and if the combined file is opened, the displayed content is the first file content corresponding to the reading format, but not the first file content of the storage format. Therefore, whether the reading format is any one of the storage formats is determined continuously, if not, that is, the reading format of the reading software is not any one of the formats in the first file, the matched first file cannot be found, and therefore the opening of the combined file is stopped. However, if the reading format is any one of a plurality of different formats except the storage format, it is determined that the reading software is not the reading software capable of ignoring the format suffix name of the file, and because the reading software capable of ignoring the format suffix name can directly identify the corresponding protocol header, when the reading software identifies the protocol header, it can be determined that the reading software is the reading software capable of ignoring the format suffix name of the file, and at the same time, the first file corresponding to the reading format is opened and displayed.
For example, the combined file is formed by combining an MP4 format first file, a PDF format first file and a TXT format first file, and when a user opens the combined file by using reading software, firstly judging whether the reading format of the reading software is the MP4 format, if so, opening the combined file by the reading software is a video file, namely the MP4 format first file; if not, judging whether the reading format is the other two formats except the MP4 format, namely judging whether the reading format is the PDF format or the TXT format, and if the reading format is not the PDF format or the TXT format, opening the combined file at the moment can not be started, namely stopping opening. If the reading format is PDF format, judging whether the reading software is the software capable of ignoring the format suffix name, if yes, opening the first file in PDF format, if the reading format is TXT format, judging whether the reading software is the software capable of ignoring the format suffix name, if yes, opening the first file in TXT format, and if the reading software is not the software capable of ignoring the format suffix name, opening the combined file.
In one embodiment, the opening device of the combined file includes:
the reading unit is used for acquiring the reading format of the reading software if the reading software is not the reading software capable of ignoring the format suffix name of the file;
and the modification prefix name unit is used for modifying the format suffix name of the combined file into the format suffix name corresponding to the reading format according to the reading format, opening the combined file through the reading software and displaying the content of the first file corresponding to the reading format.
In this embodiment, when it is determined that the reading software is not reading software capable of ignoring the format suffix name, that is, the reading software cannot open the merged file at this time, the reading format of the reading software may be obtained and the format of which the reading format is identified, then the format suffix name of the merged file is changed to the format suffix name corresponding to the reading format.
Referring to fig. 3, in an embodiment of the present invention, there is further provided a computer device, which may be a server, and an internal structure thereof may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store all the data needed to merge the files in multiple formats and to open the merged file. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of merging files and a method of opening a merged file resulting from merging by the merging method.
The above processor executes the steps of the above file merging method: acquiring a cat command input by a user, wherein the cat command is used for merging files with different formats; acquiring a plurality of first files with different formats to be combined from a designated position according to the cat command; the first file comprises protocol information corresponding to a file format, wherein the protocol information comprises a protocol header positioned at a byte starting position in the file, and the protocol header comprises a byte starting position, a byte ending position and information of byte length from the byte starting position to the byte ending position; splicing the plurality of first files according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain a combined file; and storing the combined file to the designated position in any one of different formats of a plurality of first files as a storage format.
In the above-mentioned computer device, the step of storing the merged file in any one of different formats of the plurality of first files as a storage format to the specified location includes: acquiring format information input by a user and used for storing the merged file; and storing the combined file to the designated position in the storage format according to the format information.
In one embodiment, the first files include JPG files and non-JPG files, and the step of splicing the plurality of first files according to a manner that a byte start position of a next first file is spliced to a byte end position of a previous first file until all the first files are spliced to obtain a merged file includes: the non-JPG format files are packed and compressed after being combined through the cat command, so that non-JPG format compressed files are obtained; and splicing the non-JPG format compressed file and the JPG format file according to the mode that the byte starting position of the next file is spliced to the byte ending position of the previous file to obtain the combined file.
The step of the processor executing the method for opening the combined file obtained by the combining method comprises the following steps: acquiring first opening information of a user for opening the combined file through reading software; judging whether the reading format of the reading software is the storage format according to the first opening information; if so, displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information.
In the above computer device, the plurality of first files with different formats to be combined include a first file with a first format and a first file with a second format, the storage format is the first format, and after the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information, the method includes: acquiring modification information for modifying the storage format by a user, wherein the modification information comprises a format suffix name corresponding to the second format; modifying the storage format of the combined file from the first format to the second format according to the modification information; acquiring second opening information of a user for opening the combined file through reading software corresponding to the second format; and displaying the content of the first file corresponding to the second format in the combined file according to the second opening information.
In one embodiment, the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information includes: finding a first protocol header of a first file with a file format being the storage format in the combined file according to the first opening information; acquiring a corresponding first byte starting position and a first byte length from the first protocol header, and extracting file content corresponding to the first byte length by taking the first byte starting position as a starting point; and analyzing and displaying the file content.
In one embodiment, the format information of the storage format includes a suffix name of the format, and after the step of determining whether the reading format of the reading software is the storage format according to the first opening information, the method includes: if the reading format is not the storage format, judging whether the reading format is any one of the plurality of different formats except the storage format; if the reading format is any one of the storage formats except for the plurality of different formats, judging whether the reading software is the reading software capable of ignoring the format suffix name of the file; if the reading software is the reading software capable of ignoring the format suffix name of the file, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format; otherwise, stopping opening the combined file.
In one embodiment, after the step of determining whether the reading software is capable of ignoring the format suffix name of the file, the method includes: if the reading software is not the reading software capable of ignoring the format suffix name of the file, acquiring the reading format of the reading software; and changing the format suffix name of the combined file into the format suffix name corresponding to the reading format according to the reading format, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device to which the present application is applied.
An embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the computer program when executed by a processor implements a method for merging files, specifically: acquiring a cat command input by a user, wherein the cat command is used for merging files with different formats; acquiring a plurality of first files with different formats to be combined from a designated position according to the cat command; the first file comprises protocol information corresponding to a file format, wherein the protocol information comprises a protocol header positioned at a byte starting position in the file, and the protocol header comprises a byte starting position, a byte ending position and information of byte length from the byte starting position to the byte ending position; splicing the plurality of first files according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain a combined file; and storing the combined file to the designated position in any one of different formats of a plurality of first files as a storage format.
The above-mentioned computer-readable storage medium, the above-mentioned step of storing the merged file to the specified location in any one of different formats of the plurality of first files as a storage format, includes: acquiring format information input by a user and used for storing the merged file; and storing the combined file to the designated position in the storage format according to the format information.
In one embodiment, the first files include JPG files and non-JPG files, and the step of splicing the plurality of first files according to a manner that a byte start position of a next first file is spliced to a byte end position of a previous first file until all the first files are spliced to obtain a merged file includes: the non-JPG format files are packed and compressed after being combined through the cat command, so that non-JPG format compressed files are obtained; and splicing the non-JPG format compressed file and the JPG format file according to the mode that the byte starting position of the next file is spliced to the byte ending position of the previous file to obtain the combined file.
The method for opening the combined file obtained by the combining method is realized when the computer program is executed by a processor, and specifically comprises the following steps: acquiring first opening information of a user for opening the combined file through reading software; judging whether the reading format of the reading software is the storage format according to the first opening information; if so, displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information.
The computer readable storage medium includes a plurality of first files with different formats to be combined, including a first file with a first format and a first file with a second format, where the storage format is the first format, and after the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information, the method includes: acquiring modification information for modifying the storage format by a user, wherein the modification information comprises a format suffix name corresponding to the second format; modifying the storage format of the combined file from the first format to the second format according to the modification information; acquiring second opening information of a user for opening the combined file through reading software corresponding to the second format; and displaying the content of the first file corresponding to the second format in the combined file according to the second opening information.
In one embodiment, the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information includes: finding a first protocol header of a first file with a file format being the storage format in the combined file according to the first opening information; acquiring a corresponding first byte starting position and a first byte length from the first protocol header, and extracting file content corresponding to the first byte length by taking the first byte starting position as a starting point; and analyzing and displaying the file content.
In one embodiment, the format information of the storage format includes a suffix name of the format, and after the step of determining whether the reading format of the reading software is the storage format according to the first opening information, the method includes: if the reading format is not the storage format, judging whether the reading format is any one of the plurality of different formats except the storage format; if the reading format is any one of the storage formats except for the plurality of different formats, judging whether the reading software is the reading software capable of ignoring the format suffix name of the file; if the reading software is the reading software capable of ignoring the format suffix name of the file, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format; otherwise, stopping opening the combined file.
In one embodiment, after the step of determining whether the reading software is capable of ignoring the format suffix name of the file, the method includes: if the reading software is not the reading software capable of ignoring the format suffix name of the file, acquiring the reading format of the reading software; and changing the format suffix name of the combined file into the format suffix name corresponding to the reading format according to the reading format, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by hardware associated with a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or directly or indirectly applied to other related technical fields are included in the scope of the invention.

Claims (7)

1. A method for merging files, comprising:
acquiring a cat command input by a user, wherein the cat command is used for merging files with different formats;
acquiring a plurality of first files with different formats to be combined from a designated position according to the cat command; the first file comprises protocol information corresponding to a file format, wherein the protocol information comprises a protocol header positioned at a byte starting position in the file, and the protocol header comprises a byte starting position, a byte ending position and information of byte length from the byte starting position to the byte ending position;
Splicing the plurality of first files according to the mode that the byte starting position of the next first file is spliced to the byte ending position of the previous first file until all the first files are spliced to obtain a combined file;
storing the merged file to the specified location in any one of a plurality of different formats of the first file as a storage format;
acquiring a reading format of reading software for reading the combined file, and changing a format suffix name of the combined file into a format suffix name corresponding to the reading format based on a preset rule;
the first files include JPG format files and non-JPG format files, and the steps of splicing the plurality of first files according to a mode that a byte start position of a next first file is spliced to a byte end position of a previous first file until all the first files are spliced to obtain a combined file include:
the non-JPG format files are packed and compressed after being combined through the cat command, so that non-JPG format compressed files are obtained;
splicing the non-JPG format compressed file and the JPG format file according to the mode that the byte starting position of the next file is spliced to the byte ending position of the previous file to obtain the combined file;
The step of merging files includes:
acquiring first opening information of a user for opening the combined file through reading software;
judging whether the reading format of the reading software is the storage format according to the first opening information;
if yes, displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information;
the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information includes:
finding a first protocol header of a first file with a file format being the storage format in the combined file according to the first opening information;
acquiring a corresponding first byte starting position and a first byte length from the first protocol header, and extracting file content corresponding to the first byte length by taking the first byte starting position as a starting point;
and analyzing and displaying the file content.
2. The method of merging files according to claim 1, wherein the step of storing the merged file to the specified location in any one of different formats of the plurality of first files as a storage format includes:
Acquiring format information input by a user and used for storing the merged file;
and storing the combined file to the designated position in the storage format according to the format information.
3. The method for opening a combined file according to claim 1, wherein the plurality of first files with different formats to be combined include a first file with a first format and a first file with a second format, the storage format is the first format, and after the step of displaying the content of the first file corresponding to the storage format in the combined file according to the first opening information, the method comprises:
acquiring modification information for modifying the storage format by a user, wherein the modification information comprises a format suffix name corresponding to the second format;
modifying the storage format of the combined file from the first format to the second format according to the modification information;
acquiring second opening information of a user for opening the combined file through reading software corresponding to the second format;
and displaying the content of the first file corresponding to the second format in the combined file according to the second opening information.
4. The method for opening a combined file according to claim 1, wherein the format information of the storage format includes a format suffix name, and the step of determining whether the reading format of the reading software is the storage format according to the first opening information includes:
if the reading format is not the storage format, judging whether the reading format is any one of a plurality of different formats except the storage format;
if the reading format is any one of the storage formats except for the plurality of different formats, judging whether the reading software is the reading software capable of ignoring the format suffix name of the file;
if the reading software is the reading software capable of ignoring the format suffix name of the file, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format; otherwise, stopping opening the combined file.
5. The method for opening a combined file according to claim 4, wherein after the step of determining whether the reading software is capable of ignoring the format suffix name of the file, the method comprises:
If the reading software is not the reading software capable of ignoring the format suffix name of the file, acquiring the reading format of the reading software;
and changing the format suffix name of the combined file into the format suffix name corresponding to the reading format according to the reading format, opening the combined file through the reading software, and displaying the content of the first file corresponding to the reading format.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 5 when the computer program is executed.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
CN201910082138.3A 2019-01-28 2019-01-28 File merging method, file opening method and related equipment Active CN109933569B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910082138.3A CN109933569B (en) 2019-01-28 2019-01-28 File merging method, file opening method and related equipment
PCT/CN2019/118801 WO2020155780A1 (en) 2019-01-28 2019-11-15 File merging method, file opening method, and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082138.3A CN109933569B (en) 2019-01-28 2019-01-28 File merging method, file opening method and related equipment

Publications (2)

Publication Number Publication Date
CN109933569A CN109933569A (en) 2019-06-25
CN109933569B true CN109933569B (en) 2024-03-19

Family

ID=66985256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082138.3A Active CN109933569B (en) 2019-01-28 2019-01-28 File merging method, file opening method and related equipment

Country Status (2)

Country Link
CN (1) CN109933569B (en)
WO (1) WO2020155780A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933569B (en) * 2019-01-28 2024-03-19 平安科技(深圳)有限公司 File merging method, file opening method and related equipment
CN111597151A (en) * 2020-05-20 2020-08-28 广州平云小匠科技有限公司 File generation method and device, computer equipment and storage medium
CN116992057A (en) * 2023-06-30 2023-11-03 北京百度网讯科技有限公司 Method, device and equipment for processing multimedia files in storage equipment
CN116755593B (en) * 2023-08-11 2023-10-24 江苏中威科技软件系统有限公司 Method for combining or combining information with file aggregation whiteboard for reading and operating

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017090054A1 (en) * 2015-11-26 2017-06-01 Satyam Sandepogu Editfile
CN107194001A (en) * 2017-06-14 2017-09-22 网宿科技股份有限公司 A kind of column storage format file rapid-combination method and its system
CN108632541A (en) * 2017-03-20 2018-10-09 杭州海康威视数字技术股份有限公司 A kind of more video clip merging methods and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8291315B2 (en) * 2006-02-28 2012-10-16 Ricoh Co., Ltd. Standardized network access to partial document imagery
US8589454B2 (en) * 2011-01-17 2013-11-19 International Business Machines Corporation Computer data file merging based on file metadata
CN103390005B (en) * 2012-05-11 2016-05-04 北大方正集团有限公司 A kind of method and system of merge document
CN106101264B (en) * 2016-07-20 2019-05-24 腾讯科技(深圳)有限公司 Content distributing network log method for pushing, device and system
CN109147831A (en) * 2018-09-26 2019-01-04 深圳壹账通智能科技有限公司 A kind of voice connection playback method, terminal device and computer readable storage medium
CN109933569B (en) * 2019-01-28 2024-03-19 平安科技(深圳)有限公司 File merging method, file opening method and related equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017090054A1 (en) * 2015-11-26 2017-06-01 Satyam Sandepogu Editfile
CN108632541A (en) * 2017-03-20 2018-10-09 杭州海康威视数字技术股份有限公司 A kind of more video clip merging methods and device
CN107194001A (en) * 2017-06-14 2017-09-22 网宿科技股份有限公司 A kind of column storage format file rapid-combination method and its system

Also Published As

Publication number Publication date
CN109933569A (en) 2019-06-25
WO2020155780A1 (en) 2020-08-06

Similar Documents

Publication Publication Date Title
CN109933569B (en) File merging method, file opening method and related equipment
US9448974B2 (en) Method and apparatus for processing XML for display on a mobile device
KR101219228B1 (en) System and method for delivering informaiton using image code
CN105635849A (en) Text display method and device during playing of multi-media files
CN108717437B (en) Search result display method and device and storage medium
US7509575B2 (en) Optimization of content
US10262072B2 (en) Reception device, information processing method in reception device, transmission device, information processing device, and information processing method
US20110010397A1 (en) Managing annotations decoupled from local or remote sources
US8806351B2 (en) System and method for packing of small objects for efficient delivery over networks
CN101916293B (en) Introduce the method and apparatus of media information in a document
CN110928767A (en) Webpage analysis method, device, equipment and storage medium
CN111625308A (en) Information display method and device and electronic equipment
TWI435226B (en) A method of reading a system, a terminal, an image server, a computer program product, a terminal, and an image server
CN112822286A (en) Message pushing method and device
EP3125589A1 (en) Information transmitting method and device and information receiving method and device
CN103514272A (en) Method and device for providing thumbnail corresponding to webpage content
US20100082535A1 (en) Method and System for Uploading Advertisement Content
US7395266B2 (en) Portable terminal and method of controlling the same
US20190138657A1 (en) Information processing device and information terminal
WO2017032249A1 (en) Video file display method and system
CN108614844B (en) Multimedia file generation method and device
CN102307259A (en) Content processing method based on mobile terminal application and mobile terminal
KR101174398B1 (en) Apparatus and method for recommanding contents
WO2016095405A1 (en) Method and device for presenting application program on android device
US20190012103A1 (en) Virtual removable memory component

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
GR01 Patent grant
GR01 Patent grant