CN114915624B - File processing method and system and electronic equipment - Google Patents

File processing method and system and electronic equipment Download PDF

Info

Publication number
CN114915624B
CN114915624B CN202210818213.XA CN202210818213A CN114915624B CN 114915624 B CN114915624 B CN 114915624B CN 202210818213 A CN202210818213 A CN 202210818213A CN 114915624 B CN114915624 B CN 114915624B
Authority
CN
China
Prior art keywords
file
target
information
identifier
server
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
CN202210818213.XA
Other languages
Chinese (zh)
Other versions
CN114915624A (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.)
Feihu Information Technology Tianjin Co Ltd
Original Assignee
Feihu Information Technology Tianjin 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 Feihu Information Technology Tianjin Co Ltd filed Critical Feihu Information Technology Tianjin Co Ltd
Priority to CN202210818213.XA priority Critical patent/CN114915624B/en
Publication of CN114915624A publication Critical patent/CN114915624A/en
Application granted granted Critical
Publication of CN114915624B publication Critical patent/CN114915624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • 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)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file processing method, a file processing system and electronic equipment, wherein the file processing system comprises: a client and a server; the client responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the server; the server side searches whether a file identifier identical to the target identifier exists in at least one stored file identifier, and determines whether transcoding success information corresponding to the target file exists or not based on a search result; wherein each file identifier is generated based on the file content of one file; and the server determines the issuing processing mode of the target file according to the determination result of whether the transcoding success information exists or not. The invention can avoid the repeated uploading and transcoding processes of the same file, effectively reduce the file processing pressure of the client and the server, save network resources, reduce the time for issuing processing and improve the issuing efficiency.

Description

File processing method and system and electronic equipment
Technical Field
The present invention relates to the field of file processing technologies, and in particular, to a file processing method and system, and an electronic device.
Background
With the development of science and technology, the file processing technology is continuously improved.
Currently, in order to meet certain needs (for example, displaying personal dynamics and sharing a video file with others), a user may initiate a publishing request for the video file on a client, and then the client and a server may publish the video file to complete final publishing of the video file on a social platform or other file publishing platforms.
Specifically, after receiving a video file publishing request, the client may upload the video file to the server in advance; and then, the server can sequentially execute the processes of transcoding, auditing, final releasing and the like on the video file. After the server successfully transcodes the video file, the transcoded resources can be stored.
However, if the number of video files is large, the file processing load on the client and the server is large.
Disclosure of Invention
In view of the above problems, the present invention provides a file processing method, system and electronic device for overcoming the above problems or at least partially solving the above problems, and the technical solution is as follows:
a file processing method is applied to a file processing system, and the file processing system comprises the following steps: a client and a server; the file processing method comprises the following steps:
the client responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on file content of the target file, and sends the target identifier to the server;
the server side searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each of the file identifiers is generated based on file content of a file;
and the server determines a publishing processing mode of the target file according to the determination result of whether the transcoding success information exists or not.
Optionally, the determining, based on the search result, whether transcoding success information corresponding to the target file exists includes:
when the search result shows that the file identifier which is the same as the target identifier exists, the server side determines that transcoding success information corresponding to the target file exists;
and when the search result shows that the file identifier which is the same as the target identifier does not exist, the server side determines that transcoding success information corresponding to the target file does not exist.
Optionally, the file processing method further includes:
when the server receives the target identifier, generating request identification information for identifying the issuing request;
the server generates first record information in a file information table which is saved in advance, wherein the first record information saves file information of the target file, and the file information comprises state type information, the request identification information and the target identifier;
when transcoding success information corresponding to the target file exists, the server determines the state type information of the target file as to-be-audited state information in the first recording information;
and the server returns the request identification information in the first record information to the client.
Optionally, the file processing method further includes:
and when the transcoding success information corresponding to the target file does not exist, the server marks the state type information of the target file as to-be-uploaded state information in the first record information.
Optionally, the file processing method further includes:
and the client inquires the state type information of the target file from the server based on the request identification information.
Optionally, the determining, by the server side, whether the transcoding success information exists or not, determines a publishing processing mode of the target file, including:
when the transcoding success information does not exist, the server sends a file uploading instruction to the client, so that the client uploads the target file to the server;
and the server side carries out transcoding operation on the target file to obtain transcoding resources of the target file.
Optionally, the determining, by the server side, whether the transcoding success information exists or not, determines a publishing processing mode of the target file, including:
and when the transcoding success information exists, the server searches for the transcoded resource corresponding to the target file, and issues the target file based on the transcoded resource.
A document processing system, the document processing system comprising: a client and a server;
the client responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on the file content of the target file, and sends the target identifier to the server;
the server side searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the searching result; wherein each of the file identifiers is generated based on file content of a file;
and the server determines a publishing processing mode of the target file according to the determination result of whether the transcoding success information exists or not.
Optionally, the determining, based on the search result, whether transcoding success information corresponding to the target file exists is set as:
when the search result shows that the file identifier which is the same as the target identifier exists, the server side determines that transcoding success information corresponding to the target file exists;
and when the search result shows that the file identifier which is the same as the target identifier does not exist, the server side determines that transcoding success information corresponding to the target file does not exist.
Optionally, when receiving the target identifier, the server further generates request identification information for identifying the publishing request;
the server generates first record information in a file information table stored in advance, wherein the first record information stores file information of the target file, and the file information comprises state type information, the request identification information and the target identifier;
when transcoding success information corresponding to the target file exists, the server side determines the state type information of the target file as to-be-audited state information in the first recording information;
and the server returns the request identification information in the first record information to the client.
Optionally, when transcoding success information corresponding to the target file does not exist, the server further marks the state type information of the target file as to-be-uploaded state information in the first record information.
Optionally, the client further queries the server for the state type information of the target file based on the request identification information.
Optionally, the server determines, based on the determination result of whether the transcoding success information exists, a publishing processing manner of the target file, and sets the publishing processing manner to be:
when the transcoding success information does not exist, the server sends a file uploading instruction to the client, so that the client uploads the target file to the server;
and the server side carries out transcoding operation on the target file to obtain transcoding resources of the target file.
And the server determines the issuing processing mode of the target file according to the determination result of whether the transcoding success information exists or not, and is set as follows:
and when the transcoding success information exists, the server searches for the transcoded resource corresponding to the target file, and issues the target file based on the transcoded resource.
A file processing method is applied to electronic equipment, and the electronic equipment comprises the following steps: a first processing unit and a second processing unit; the file processing method comprises the following steps:
the first processing unit responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on file content of the target file, and sends the target identifier to the second processing unit;
the second processing unit searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the searching result; wherein each of the file identifiers is generated based on file contents of one file;
and the second processing unit determines a release processing mode of the target file based on the determination result of whether the transcoding success information exists.
An electronic device, comprising: a first processing unit and a second processing unit; wherein:
the first processing unit responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on file content of the target file, and sends the target identifier to the second processing unit;
the second processing unit searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the searching result; wherein each of the file identifiers is generated based on file content of a file;
and the second processing unit determines a release processing mode of the target file based on the determination result of whether the transcoding success information exists.
The invention provides a file processing method, a file processing system and electronic equipment, wherein the file processing system comprises: a client and a server; the client responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the server; the server side searches whether a file identifier identical to the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the searching result; each file identifier is generated based on the file content of one file; and the server determines the issuing processing mode of the target file according to the determination result of whether the transcoding success information exists or not. The invention can avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources required to be consumed by the processes of uploading, transcoding and the like, effectively reduce the release processing time required to be waited by a user and improve the release efficiency.
The above description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood, and to make the above and other objects, features, and advantages of the present invention more apparent.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a first file processing method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a file processing system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a third file processing method according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, the present embodiment proposes a first file processing method, which may be applied to a file processing system, where the file processing system may include: a client and a server; the file processing method may include the steps of:
s101, a client responds to a file publishing request and generates a target identifier which can uniquely identify a target file based on the file content of the target file;
wherein the file publishing request may be a publishing request for the target file.
The target file is a file requested to be issued.
Specifically, the target file may be a video type, an audio type or a document type, and the specific file type of the target file is not limited in the present invention.
The target identifier is a file identifier which is generated by the client based on the file content of the target file and can uniquely identify the target file.
When the file content of a file changes, the file identifier generated based on the file content also changes, and thus the file identifier can be used as a unique identifier of the file. Specifically, for two files, no matter whether the file names of the two files are consistent or not, as long as the file identifiers of the two files are the same, it can be said that the file contents of the two files are consistent and belong to the same file; if the file identifiers of the two files are different, it can be shown that the file contents of the two files are inconsistent and belong to different files.
Specifically, when the target file needs to be published, the server may determine whether the file with the same content as the target file has been successfully published in history based on the file identifier of the server. If the file is successfully published, the server can be shown to store the transcoded resources corresponding to the target file, and at this time, the server can directly use the transcoded resources to perform subsequent publishing processing procedures, so that the client does not need to upload the target file to the server, and the server does not need to perform transcoding operation, repeated uploading and transcoding procedures performed on files with the same content can be avoided, network resources consumed by the uploading, transcoding and other procedures can be effectively saved, the publishing processing time required by a user to wait can be effectively reduced, and the publishing efficiency is improved.
Specifically, the server may first save a file identifier generated by the client of a file that has been successfully published in history, and in the process of publishing the target file, the server may first obtain a target identifier that is a file identifier of the target file generated by the client, and then may search for whether a file identifier identical to the target identifier exists in each saved file identifier, and determine a subsequent publishing process flow based on the search result.
Optionally, the client may receive a file publishing request carrying a target file, which is input by a user, in advance, and then, in response to the file publishing request, may generate a target identifier based on file content of the target file;
optionally, the client may receive a file publishing request carrying a file ID (such as a file name) of the target file, which is input by the user, in advance, obtain the target file from a file stored in the client or another device in response to the file publishing request, and then generate the target identifier based on the file content of the target file.
Alternatively, the client may also receive a file publishing request for the target file input by another device in advance, and then generate the target identifier of the target file in response to the file publishing request.
Optionally, the step S101 may include:
the client side processes the file content of the target file by adopting an information abstract algorithm to generate a target identifier.
The message digest algorithm may include at least an MD digest algorithm, a secure hash algorithm, and a message authentication code.
Optionally, the MD digest algorithm may be an MD5 algorithm. Specifically, the client may use the MessageDigest encryption engine class to Md5 encrypt the binary stream of the target file. Specifically, the client may first read the binary stream of the target file, then encrypt the binary stream with the message digest.update (buffer, 0, len) to generate a string array, and then convert the string number into a string by using integer.tohexstring (), so as to generate a corresponding MD5 value, that is, the target identifier of the target file.
The method and the device can effectively ensure the accuracy of the file identifier for uniquely identifying the file through the information abstract algorithm, thereby effectively determining whether the target file is the file which is successfully issued.
S102, the client sends the target identifier to a server;
specifically, the client may send the target identifier to the server after generating the target identifier.
S103, the server side searches whether a file identifier identical to the target identifier exists in at least one stored file identifier; wherein each file identifier is generated based on the file content of one file;
note that each file identifier stored in the server may be generated by the client based on the file content of a different file in history. Specifically, in the process of issuing each pair of files, the client generates a corresponding file identifier based on the file content of the file, and sends the generated file identifier to the server; when receiving a file identifier sent by a client, a server can compare the file identifier with each stored file identifier, and if the stored file identifier does not have a file identifier identical to the file identifier, it can be said that the file is not successfully issued, and the file identifier can be stored; if the stored file identifiers have the file identifiers which are the same as the file identifiers, the file can be indicated to be successfully published historically, the file identifiers do not need to be stored, the transcoded resources corresponding to the file can be directly applied to perform a subsequent publishing processing flow, the client does not need to upload the file, the server does not need to transcode the file and the like, repeated uploading and transcoding processes of the same file can be avoided, network resources consumed by the uploading, transcoding and other processes can be effectively saved, the publishing processing time required by a user to wait can be effectively reduced, and the publishing efficiency can be improved.
Specifically, after obtaining the target identifier, the server may search for whether a file identifier consistent with the target identifier exists in the stored file identifiers.
Optionally, the server may store each file identifier in a target storage space such as a database or a folder, and when the target identifier needs to be searched, the server may search in the target storage space.
Optionally, when the target identifier is an MD5 value, the client may carry the MD5 value as a parameter request server interface, and after receiving the request, the server may search whether an MD5 value identical to the target identifier exists.
Optionally, in another file processing method proposed in this embodiment, the target identifier and each file identifier are generated by using the same identifier generation algorithm.
It should be noted that the client may generate the file identifier by processing different files using the same identifier generation algorithm (e.g., MD5 algorithm). At this time, the invention can further ensure the unique identification of the file identifier to the file.
S104, the server side obtains a search result;
the search result is the search result of whether the server searches for the file identifier which is the same as the target identifier in each file identifier.
Specifically, the search result may include a first result and a second result; the first result may be that the same file identifier as the target identifier does not exist in each file identifier, and the second result may be that the same file identifier as the target identifier exists in each file identifier.
And S105, the server determines whether transcoding success information corresponding to the target file exists or not based on the search result.
The transcoding success information may be information that is generated by the server after successfully transcoding a certain file and is used for identifying that the file has been successfully transcoded.
Specifically, after transcoding the file, the server may obtain partial attribute information of the file, and correspondingly store the partial attribute information of the file, to generate successful transcoding information of the file. For example, for a video file, the server may obtain attribute information such as a playing time length, a resolution, a picture, a rotation angle, a frame rate, a file identifier, and the like of the video file, and correspondingly store the obtained attribute information into a row of information in a database table to generate transcoding success information (each stored attribute information may be used as transcoding success information of the file).
It should be noted that, after each pair of files is transcoded, the server can obtain the corresponding transcoded resource and generate a corresponding transcoding success message. It is understood that the server may transcode only the file corresponding to the file identifier that is not repeated, and may prohibit the transcoding of the file identifier that is repeated.
Optionally, step S105 may include:
when the search result is that the file identifier which is the same as the target identifier exists, the server side determines that transcoding success information corresponding to the target file exists;
and when the searching result shows that the file identifier same as the target identifier does not exist, the server side determines that the transcoding success information corresponding to the target file does not exist.
Specifically, if the search result indicates that a file identifier identical to the target identifier exists in each file identifier, it may be indicated that the server generates and stores transcoded resources and transcoding success information corresponding to the file content of the target file;
specifically, if the search result indicates that no file identifier identical to the target identifier exists in the file identifiers, it may be indicated that the server does not store the transcoded resources and the transcoding success information corresponding to the file content of the target file.
S106, determining whether the server side has the determination result of the transcoding success information, and determining a publishing processing mode of the target file.
And determining whether the transcoding success information corresponding to the target file exists or not. Specifically, the determination result may include a first determination result and a second determination result. The first determination result may be that transcoding success information corresponding to the target file exists; the second determination result may be that the transcoding success information corresponding to the target file does not exist yet.
Specifically, after obtaining a determination result of whether the transcoding success information exists, the server may determine what publishing processing manner to subsequently adopt for the target file based on the determination result.
Optionally, step S106 may include:
when the transcoding success information does not exist, the server sends a file uploading instruction to the client, so that the client uploads the target file to the server;
and the server performs transcoding operation on the target file to obtain transcoding resources of the target file.
It should be noted that if the transcoding success information does not exist, it may be indicated that a file having the same file content as the target file has not been successfully published historically, the client may upload the target file to the server, and the server may transcode the target file to obtain a corresponding transcoded resource, and then perform a subsequent publishing process using the transcoded resource.
Specifically, the server may instruct the client to execute a corresponding processing mode by sending, to the client, identification information for identifying whether the transcoding success information exists. Wherein, the identification information may be isOld = true or isOld = false; when transcoding success information does not exist, the server side can generate identification information of isOld = false and return the identification information of isOld = false to the client side; when receiving the identification information of isOld = false, the client may execute a process of uploading a target file to the server; when the transcoding success information exists, the server side can generate identification information of isOld = true, and return the identification information of isOld = true to the client side; when the client receives the identification information of isOld = true, the client may prohibit execution of a process of uploading the target file to the server.
Optionally, step S106 may include:
and when the transcoding success information exists, the server side searches the transcoded resource corresponding to the target file, and releases the target file based on the transcoded resource.
It should be noted that, if the transcoding success information exists, it may be indicated that a file having the same file content as the target file has been successfully published historically, the client does not need to upload the target file to the server, and the server may directly find out the transcoded resource corresponding to the target file, and perform a subsequent publishing processing flow using the transcoded resource. At the moment, the method and the system can avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources consumed by the processes such as uploading and transcoding and the like, effectively reduce the release processing time required by a user to wait, and improve the release efficiency.
The file processing method provided by this embodiment is applied to a file processing system, and the file processing system includes: a client and a server; the client responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the server; the server side searches whether a file identifier identical to the target identifier exists in at least one stored file identifier, and obtains a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each file identifier is generated based on the file content of one file; and the server determines the issuing processing mode of the target file according to the determination result of whether the transcoding success information exists or not. The invention can avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources required to be consumed by the processes of uploading, transcoding and the like, effectively reduce the release processing time required to be waited by a user and improve the release efficiency.
Based on fig. 1, the present embodiment proposes a second file processing method. The method may further comprise the steps of:
s201, when receiving a target identifier, a server generates request identification information for identifying an issuing request;
the request identification information may be used to identify a user's issue request for a certain file at a certain time.
Specifically, the server may generate request identification information for identifying the user's issue request for the target file this time when receiving the target identifier sent by the client.
S202, the server side generates first record information in a file information table stored in advance, wherein the first record information stores file information of a target file, and the file information comprises state type information, request identification information and a target identifier;
the file information table may be used to record the relevant information of the file corresponding to each file publishing request. It is understood that the file information table may be generated by the server.
Specifically, the file information table may include a plurality of pieces of record information, and each piece of record information may include file information of one file. Specifically, each piece of record information may be composed of field values of one file under a plurality of specified field names.
The state type information may be a field value with a field name of a state type in the file information table, and may be used to identify a current state of the file. It should be noted that, in the process of issuing the file, the file may include states of waiting to be uploaded, waiting to be transcoded, waiting to be audited, and the like. The present invention can identify the current state of a file through state type information.
It should be noted that, when the server issues each pair of files, a piece of record information may be generated for each file, and the generated record information may be stored in the file information table. The record information may include the request identification information, file name, status type information, file identifier, file-related attribute (such as file data size and file type), and other related file information. It is understood that the request identification information, the file name, the file identifier, and the like may be field values under one field in the file information table.
Specifically, if the server performs transcoding operation on a file, the server may mark the record information corresponding to the file as successful transcoding. Note that the recording information of the file and the transcoding success information are different information.
S203, when transcoding success information corresponding to the target file exists, the server determines the state type information of the target file as to-be-audited state information in the first recording information;
specifically, the information of the state to be audited may identify the current state of the file as the state to be audited.
It should be noted that when the transcoding success information corresponding to the target file exists, the target file does not need to be uploaded and transcoded, and the transcoding success information corresponding to the target file can be directly used to enter a subsequent processing flow, i.e., an audit flow.
Specifically, when the transcoding success information corresponding to the target file exists, the server may identify the state type information of the target file as the to-be-audited state information in the first record information.
S204, the server returns the request identification information in the first record information to the client.
Specifically, the server may return the request identification information in the first record information to the client after determining the state type information of the target file in the first record information as the state information to be audited.
Optionally, the second file processing method may further include:
and when the transcoding success information corresponding to the target file does not exist, the server marks the state type information of the target file as the state information to be uploaded in the first recording information.
The information of the state to be uploaded can identify the current state of the file as the state to be uploaded.
It should be noted that, when transcoding success information corresponding to the target file does not exist, the server may mark the state type information of the target file as to-be-uploaded state information in the first record information.
Optionally, the second file processing method may further include:
and the client inquires the state type information of the target file from the server based on the request identification information.
Specifically, after receiving the request identification information returned by the server, the client may display the request identification information on an interface, so that the user may send a request for inquiring the release progress carrying the request identification information to the server through the client.
Optionally, after step S203, the second file processing method may further include:
the server returns the first record information to the client;
the client outputs the first record information.
Specifically, the server may return the first record information to the client after determining the specific state type information of the target file in the first record information; the client can display the first record information on a display interface so as to display the related file information and the release processing progress of the target file, provide better service for the user and ensure the user stickiness.
The file processing method provided by the embodiment can show the relevant file information and the issuing processing progress of the target file for the user, provide better service for the user, and ensure the user viscosity.
Corresponding to the method shown in fig. 1, as shown in fig. 2, the present embodiment proposes a document processing system, which may include: a client 101 and a server 102;
the client 101 responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the server 102;
the server 102 searches whether a file identifier identical to the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; each file identifier is generated based on the file content of one file;
the server 102 determines a release processing mode for the target file based on the determination result of whether the transcoding success information exists.
It should be noted that, for specific processing procedures of the client 101 and the server 102 and beneficial effects thereof, reference may be made to the related description of the steps S101 to S106 in fig. 1 in this embodiment, and details are not repeated here.
Optionally, based on the search result, it is determined whether transcoding success information corresponding to the target file exists, and the settings are:
when the search result shows that the file identifier same as the target identifier exists, the server 102 determines that transcoding success information corresponding to the target file exists;
when the search result shows that the file identifier identical to the target identifier does not exist, the server 102 determines that transcoding success information corresponding to the target file does not exist.
Optionally, the server 102 further generates request identification information for identifying the publishing request when receiving the target identifier;
the server 102 generates first record information in a file information table which is saved in advance, wherein the first record information saves file information of a target file, and the file information comprises state type information, request identification information and a target identifier;
when transcoding success information corresponding to the target file exists, the server 102 determines the state type information of the target file as to-be-audited state information in the first recording information;
the server 102 returns the request identification information in the first record information to the client 101.
Optionally, when the transcoding success information corresponding to the target file does not exist, the server 102 further marks the state type information of the target file as to-be-uploaded state information in the first record information.
Optionally, the client 101 further queries the server 102 for the status type information of the target file based on the request identification information.
Optionally, the server 102 determines, based on a determination result of whether the transcoding success information exists, a publishing processing manner of the target file, and sets the publishing processing manner to be:
when the transcoding success information does not exist, the server 102 sends a file uploading instruction to the client 101, so that the client 101 uploads a target file to the server 102;
the server 102 transcodes the target file to obtain the transcoding resources of the target file.
Optionally, the server 102 determines, based on a determination result of whether the transcoding success information exists, a publishing processing manner of the target file, and sets the publishing processing manner to be:
when the transcoding success information exists, the server 102 finds out the transcoded resources corresponding to the target file, and issues the target file based on the transcoded resources.
The document processing system provided in this embodiment includes: a client 101 and a server 102; the client 101 responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the server 102; the server 102 searches whether a file identifier identical to the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each file identifier is generated based on the file content of one file; the server 102 determines a publishing processing mode of the target file based on the determination result of whether the transcoding success information exists. The invention can avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client 101 and the server 102, save network resources consumed by the processes of uploading, transcoding and the like, effectively reduce the release processing time length required by a user to wait, and improve the release efficiency.
As shown in fig. 3, the present embodiment proposes a third file processing method, which may be applied to an electronic device, where the electronic device may include: a first processing unit and a second processing unit; the file processing method can comprise the following steps:
s201, the first processing unit responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on file content of the target file, and sends the target identifier to the second processing unit;
s202, the first processing unit sends the target identifier to the second processing unit;
s203, the second processing unit searches whether a file identifier identical to the target identifier exists in at least one stored file identifier; each file identifier is generated based on the file content of one file;
s204, the second processing unit obtains a search result;
s205, the second processing unit determines whether transcoding success information corresponding to the target file exists or not based on the search result;
s206, the second processing unit determines a publishing processing mode of the target file based on the determination result of whether the transcoding success information exists.
The specific steps executed by the first processing unit and the technical effects brought by the steps can be the same as those of the client in the first file processing method; the specific steps executed by the second processing unit and the technical effects thereof may be the same as those of the server in the first file processing method.
It can be understood that the electronic device can integrate the first processing unit and the second processing unit at the same time to independently complete the file processing method of the present invention, and also can avoid the repeated uploading and transcoding processes performed on the same file, effectively reduce the file processing pressure of the client and the server, save the network resources consumed by the uploading and transcoding processes, and the like, and can effectively reduce the release processing time required by the user to wait, and improve the release efficiency.
The file processing method provided by this embodiment may be applied to an electronic device, where the electronic device may include: a first processing unit and a second processing unit; the first processing unit responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the second processing unit; the second processing unit searches whether a file identifier identical to the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the searching result; wherein each file identifier is generated based on the file content of one file; the second processing unit determines a release processing mode of the target file based on the determination result of whether the transcoding success information exists. The electronic equipment can simultaneously integrate the first processing unit and the second processing unit to independently complete the file processing method, can also avoid repeated uploading and transcoding processes to the same file, effectively reduces the file processing pressure of a client and a server, saves network resources consumed by the uploading and transcoding processes and the like, can effectively reduce the publishing processing time of a user needing to wait, and improves the publishing efficiency.
Corresponding to the method shown in fig. 3, as shown in fig. 4, the present embodiment provides an electronic device, which may include: a first processing unit 201 and a second processing unit 202; wherein:
the first processing unit 201, in response to the file publishing request, generates a target identifier that can uniquely identify the target file based on the file content of the target file, and sends the target identifier to the second processing unit 202;
the second processing unit 202 searches whether a file identifier identical to the target identifier exists in the stored at least one file identifier, and obtains a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; each file identifier is generated based on the file content of one file;
the second processing unit 202 determines a release processing manner for the target file based on the determination result of whether or not the transcoding success information exists.
It should be noted that, for specific processing procedures of the first processing unit 201 and the second processing unit 202 and technical effects brought by the processing procedures, reference may be made to the related descriptions of steps S201 to S206 in fig. 3 in this embodiment, and details are not described here again.
The electronic device provided in this embodiment may include: a first processing unit 201 and a second processing unit 202; the first processing unit 201 responds to the file publishing request, generates a target identifier capable of uniquely identifying the target file based on the file content of the target file, and sends the target identifier to the second processing unit 202; the second processing unit 202 searches whether a file identifier identical to the target identifier exists in the at least one stored file identifier, and obtains a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each file identifier is generated based on the file content of one file; the second processing unit 202 determines a release processing manner for the target file based on the determination result of whether or not the transcoding success information exists. The electronic device can integrate the first processing unit 201 and the second processing unit 202 at the same time to independently complete the file processing process, can also avoid executing repeated uploading and transcoding processes on the same file, effectively reduces the file processing pressure of a client and a server, saves network resources consumed by the uploading and transcoding processes and the like, can effectively reduce the publishing processing time of a user needing to wait, and improves the publishing efficiency.
The present embodiment proposes a fourth file processing method, which may be applied to an electronic device, and which may include:
s301, responding to a file release request, and generating a target identifier capable of uniquely identifying a target file based on the file content of the target file;
s302, searching whether a file identifier identical to the target identifier exists in at least one stored file identifier to obtain a searching result; wherein each file identifier is generated based on the file content of one file;
s303, determining whether transcoding success information corresponding to the target file exists or not based on the searching result;
s304, determining a publishing processing mode of the target file based on the determination result of whether the transcoding success information exists.
It can be understood that, the electronic device of the present invention can independently complete the file processing process by independently executing steps S301, S302, S303, and S304, and can also avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources consumed by the uploading and transcoding processes, and can effectively reduce the publishing processing time that the user needs to wait, and improve the publishing efficiency.
The file processing method provided by the embodiment can be applied to electronic equipment. The invention can respond to the file release request, and generate the target identifier which can uniquely identify the target file based on the file content of the target file; searching whether a file identifier identical to the target identifier exists in at least one stored file identifier, and obtaining a searching result; wherein each file identifier is generated based on the file content of one file; determining whether transcoding success information corresponding to the target file exists or not based on the search result; and determining a publishing processing mode of the target file based on the determination result of whether the transcoding success information exists. The invention can also avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources consumed by the uploading and transcoding processes and the like, effectively reduce the publishing processing time length required by the user to wait, and improve the publishing efficiency.
Corresponding to the fourth file processing method, the present embodiment proposes an electronic device, which may include: the device comprises a generating unit, a searching unit, an obtaining unit, a first determining unit and a second determining unit; wherein:
a generating unit configured to generate, in response to a file publishing request, a target identifier that can uniquely identify a target file based on file content of the target file;
the searching unit is used for searching whether a file identifier identical to the target identifier exists in at least one stored file identifier; wherein each file identifier is generated based on the file content of one file;
an obtaining unit, configured to obtain a search result;
a first determining unit, configured to determine whether transcoding success information corresponding to the target file exists based on the search result;
and the second determining unit is used for determining the issuing processing mode of the target file based on the determination result of whether the transcoding success information exists.
It is understood that the electronic device of the present invention can independently complete the document processing procedure by integrating the generation unit, the search unit, the obtaining unit, the first determination unit, and the second determination unit. The invention can also avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources required to be consumed by the processes of uploading, transcoding and the like, effectively reduce the release processing time required to be waited by a user and improve the release efficiency.
The electronic device provided by this embodiment can independently complete the file processing process by integrating the generation unit, the search unit, the obtaining unit, the first determination unit, and the second determination unit. The invention can also avoid executing repeated uploading and transcoding processes on the same file, effectively reduce the file processing pressure of the client and the server, save network resources required to be consumed by the processes of uploading, transcoding and the like, effectively reduce the release processing time required to be waited by a user and improve the release efficiency.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (7)

1. A document processing method applied to a document processing system, the document processing system comprising: a client and a server; the file processing method comprises the following steps:
the client responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on file content of the target file, and sends the target identifier to the server;
the server side searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each of the file identifiers is generated based on file content of a file;
when the transcoding success information exists, the client is prohibited from uploading the target file to the server, and the target file is released based on the transcoded resource corresponding to the target file searched by the server;
when the server receives the target identifier, generating request identification information for identifying the issuing request;
the server generates first record information in a file information table which is saved in advance, wherein the first record information saves file information of the target file, and the file information comprises state type information, the request identification information and the target identifier;
when transcoding success information corresponding to the target file exists, the server determines the state type information of the target file as to-be-audited state information in the first recording information;
the server side returns the request identification information in the first record information to the client side;
and when the transcoding success information corresponding to the target file does not exist, the server marks the state type information of the target file as the state information to be uploaded in the first record information.
2. The method of claim 1, wherein the determining whether transcoding success information corresponding to the target file exists based on the search result comprises:
when the search result shows that the file identifier which is the same as the target identifier exists, the server side determines that transcoding success information corresponding to the target file exists;
and when the search result shows that the file identifier which is the same as the target identifier does not exist, the server determines that the transcoding success information corresponding to the target file does not exist.
3. The document processing method according to claim 1, further comprising:
and the client inquires the state type information of the target file from the server based on the request identification information.
4. The file processing method according to claim 1, wherein the determining, by the server side, whether the transcoding success information exists or not determines a publishing processing manner for the target file, includes:
when the transcoding success information does not exist, the server sends a file uploading instruction to the client, so that the client uploads the target file to the server;
and the server side carries out transcoding operation on the target file to obtain transcoding resources of the target file.
5. A document processing system, the document processing system comprising: a client and a server;
the client responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on file content of the target file, and sends the target identifier to the server;
the server side searches whether the file identifier identical to the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each of the file identifiers is generated based on file content of a file;
when the transcoding success information exists, the client is prohibited from uploading the target file to the server, and the target file is released based on the transcoded resource corresponding to the target file searched by the server;
the server generates request identification information for identifying the issuing request when receiving the target identifier;
the server generates first record information in a file information table which is saved in advance, wherein the first record information saves file information of the target file, and the file information comprises state type information, the request identification information and the target identifier;
when transcoding success information corresponding to the target file exists, the server determines the state type information of the target file as to-be-audited state information in the first recording information;
the server side returns the request identification information in the first record information to the client side;
and when the transcoding success information corresponding to the target file does not exist, the server marks the state type information of the target file as to-be-uploaded state information in the first record information.
6. A file processing method is applied to electronic equipment, and the electronic equipment comprises the following steps: a first processing unit and a second processing unit; the file processing method comprises the following steps:
the first processing unit responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on the file content of the target file, and sends the target identifier to the second processing unit;
the second processing unit searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each of the file identifiers is generated based on file content of a file;
when the second processing unit determines that the transcoding success information exists, the first processing unit is prohibited from uploading the target file, and publishing processing is performed on the basis of the searched transcoded resources corresponding to the target file;
the first processing unit generates request identification information for identifying the issuing request when receiving the target identifier;
the first processing unit generates first record information in a file information table saved in advance, wherein the first record information saves file information of the target file, and the file information comprises state type information, the request identification information and the target identifier;
when transcoding success information corresponding to the target file exists, the first processing unit determines the state type information of the target file as to-be-audited state information in the first recording information;
the first processing unit returns the request identification information in the first record information to the second processing unit;
when the transcoding success information corresponding to the target file does not exist, the first processing unit marks the state type information of the target file as to-be-uploaded state information in the first recording information.
7. An electronic device, comprising: a first processing unit and a second processing unit; wherein:
the first processing unit responds to a file publishing request, generates a target identifier capable of uniquely identifying a target file based on the file content of the target file, and sends the target identifier to the second processing unit;
the second processing unit searches whether the file identifier same as the target identifier exists in at least one stored file identifier to obtain a search result; determining whether transcoding success information corresponding to the target file exists or not based on the search result; wherein each of the file identifiers is generated based on file content of a file;
when the second processing unit determines that the transcoding success information exists, forbidding the first processing unit to upload the target file, and issuing the target file based on the found transcoded resource corresponding to the target file;
the first processing unit generates request identification information for identifying the issuing request when receiving the target identifier;
the first processing unit generates first record information in a file information table saved in advance, wherein the first record information saves file information of the target file, and the file information comprises state type information, the request identification information and the target identifier;
when transcoding success information corresponding to the target file exists, the first processing unit determines the state type information of the target file as to-be-audited state information in the first recording information;
the first processing unit returns the request identification information in the first record information to the second processing unit;
when the transcoding success information corresponding to the target file does not exist, the first processing unit marks the state type information of the target file as to-be-uploaded state information in the first recording information.
CN202210818213.XA 2022-07-13 2022-07-13 File processing method and system and electronic equipment Active CN114915624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210818213.XA CN114915624B (en) 2022-07-13 2022-07-13 File processing method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210818213.XA CN114915624B (en) 2022-07-13 2022-07-13 File processing method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN114915624A CN114915624A (en) 2022-08-16
CN114915624B true CN114915624B (en) 2022-12-13

Family

ID=82772548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210818213.XA Active CN114915624B (en) 2022-07-13 2022-07-13 File processing method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114915624B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011057489A1 (en) * 2009-11-11 2011-05-19 腾讯科技(深圳)有限公司 Method and device for multimedia file transcoding
CN102780728A (en) * 2011-05-13 2012-11-14 腾讯科技(深圳)有限公司 Media file transcoding and downloading method and client
CN103916483A (en) * 2014-04-28 2014-07-09 中国科学院成都生物研究所 Self-adaptation data storage and reconstruction method for coding redundancy storage system
WO2017101487A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Method and device for submitting transcoding attribute information
CN109586896A (en) * 2018-11-14 2019-04-05 陕西师范大学 A kind of data integrity verification method based on Hash prefix trees
CN110267118A (en) * 2019-06-18 2019-09-20 北京奇艺世纪科技有限公司 A kind of video distribution method and apparatus and computer readable storage medium
CN114138715A (en) * 2021-11-02 2022-03-04 北京中合谷投资有限公司 Family client-oriented cloud storage method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003196134A (en) * 2001-12-27 2003-07-11 Vision Arts Kk Client-side system, server-side system and client-side program for information exchange system based on image, and storage medium with exchanging information data stored therein
WO2008018851A2 (en) * 2005-10-28 2008-02-14 Entriq Inc. Method and system to automatically publish media assets
CN103457960B (en) * 2012-05-15 2018-03-09 腾讯科技(深圳)有限公司 The method and system of load document in web game
US9661106B2 (en) * 2013-12-04 2017-05-23 Facebook, Inc. Uploading and transcoding media files
CN113727145B (en) * 2021-11-04 2022-03-01 飞狐信息技术(天津)有限公司 Video distribution method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011057489A1 (en) * 2009-11-11 2011-05-19 腾讯科技(深圳)有限公司 Method and device for multimedia file transcoding
CN102780728A (en) * 2011-05-13 2012-11-14 腾讯科技(深圳)有限公司 Media file transcoding and downloading method and client
CN103916483A (en) * 2014-04-28 2014-07-09 中国科学院成都生物研究所 Self-adaptation data storage and reconstruction method for coding redundancy storage system
WO2017101487A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Method and device for submitting transcoding attribute information
CN109586896A (en) * 2018-11-14 2019-04-05 陕西师范大学 A kind of data integrity verification method based on Hash prefix trees
CN110267118A (en) * 2019-06-18 2019-09-20 北京奇艺世纪科技有限公司 A kind of video distribution method and apparatus and computer readable storage medium
CN114138715A (en) * 2021-11-02 2022-03-04 北京中合谷投资有限公司 Family client-oriented cloud storage method and system

Also Published As

Publication number Publication date
CN114915624A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CA2660224C (en) Managing media files from multiple sources
CN1828599A (en) Ghosted synchronization
RU2007143551A (en) METHOD, SYSTEM AND COMPUTER READED INFORMATION MEDIA FOR SYNCHRONIZATION OF SUBJECT TO CHANGE DOCUMENTS FOR MANY CUSTOMERS
CN109582644A (en) File memory method, device, equipment and computer readable storage medium
US20090187588A1 (en) Distributed indexing of file content
KR102032583B1 (en) Access to supplemental data based on identifier derived from corresponding primary application data
US20170109371A1 (en) Method and Apparatus for Processing File in a Distributed System
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
US20120005245A1 (en) Universal file naming for personal media over content delivery networks
CN109214855B (en) Material receiving method, device and system
CN110990335B (en) Log archiving method, device, equipment and computer readable storage medium
CN112311902B (en) File sending method and device based on micro-service
US20090210944A1 (en) Anti-maleware data center aggregate
EP1705919A1 (en) Method for signature authentication in a broadcast receiver
CN114915624B (en) File processing method and system and electronic equipment
JP2013004080A (en) Content provision method, recording medium, system and server for extracting and transmitting meta data
CN111225248B (en) On-demand content management method and content distribution network on-demand server
CN100357943C (en) A method for inspecting garbage files in cluster file system
CN115004665B (en) File sharing method, device and system
JP2008035224A (en) Log information management system, log information management device, log information management method, log information management program, and storage medium
CN104822076A (en) Data distribution method and device thereof
CN110555020A (en) Mapping relation establishing and data querying methods, devices and equipment
JP6178119B2 (en) Data migration system and data migration method
CN106886522B (en) Digital product publishing method and device
CN108763425B (en) Method and apparatus for storing and reading audio files

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