CN114328410A - File processing method and device, computer equipment and storage medium - Google Patents

File processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114328410A
CN114328410A CN202111621450.9A CN202111621450A CN114328410A CN 114328410 A CN114328410 A CN 114328410A CN 202111621450 A CN202111621450 A CN 202111621450A CN 114328410 A CN114328410 A CN 114328410A
Authority
CN
China
Prior art keywords
file
target
source file
processing mode
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111621450.9A
Other languages
Chinese (zh)
Inventor
刘丁源
杨涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Taimei Medical Technology Co Ltd
Original Assignee
Zhejiang Taimei Medical Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Taimei Medical Technology Co Ltd filed Critical Zhejiang Taimei Medical Technology Co Ltd
Priority to CN202111621450.9A priority Critical patent/CN114328410A/en
Publication of CN114328410A publication Critical patent/CN114328410A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a file processing method, a file processing device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a source file; analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage mode is used for indicating that a storage mode suitable for the expected purpose is appointed for the target file; executing the target processing mode on the source file to obtain a target file; and storing the target file according to the target storage mode. By constructing a set of file processing method capable of carrying out pre-processing operation on files in different formats, the use efficiency of file users is improved.

Description

File processing method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer data processing technologies, and in particular, to a file processing method, an apparatus, a computer device, and a storage medium.
Background
In the process of developing computer applications, developers need to copy files to be processed to a computer for realizing functions of specific business scenarios in a single storage medium for processing operations according to different business scenarios. This results in increased technician burden and increased link length and difficulty in file handling. In addition, for part of processing operations, developers in different service scenes need to repeatedly implement the processing operations, which causes resource waste to a certain extent.
Disclosure of Invention
In view of the above, embodiments of the present disclosure are directed to providing a file processing method, device, computer device and storage medium, so as to improve the usage efficiency of file users to some extent.
An embodiment of the present specification provides a file processing method, including: receiving a source file; analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage mode is used for indicating that a storage mode suitable for the expected purpose is appointed for the target file; executing the target processing mode on the source file to obtain a target file; and storing the target file according to the target storage mode.
An embodiment of the present specification provides a file processing apparatus, including: the receiving module is used for receiving a source file; the analysis module is used for analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage mode is used for indicating that a storage mode suitable for the expected purpose is appointed for the target file; the processing module is used for executing the target processing mode on the source file to obtain the target file; and the storage module is used for storing the target file according to the target storage mode.
The embodiment of the present specification provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the embodiment when executing the computer program.
The present specification embodiments propose a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of the embodiments.
By constructing a set of file processing method capable of carrying out pre-processing operation on files in different formats, the use efficiency of file users is improved.
Drawings
FIG. 1 is a diagram illustrating a document processing system according to an embodiment.
Fig. 2 is a schematic flow chart of a file processing method according to an embodiment.
FIG. 3 is a diagram illustrating medical document file processing according to an embodiment.
Fig. 4 is a schematic diagram illustrating a picture file processing according to an embodiment.
Fig. 5 is a schematic diagram illustrating video file processing according to an embodiment.
Fig. 6 is a schematic diagram of a document processing apparatus according to an embodiment.
Detailed Description
In order to make the technical solution of the present invention better understood, the technical solution of the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present specification belong to the protection scope of the present specification.
Referring to fig. 1, a document processing system is provided in an embodiment of the present disclosure. The file processing system may include a client and a server. The client may be an electronic device with network access capabilities. Specifically, for example, the client may be a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a television, a smart speaker, a microphone, and the like. Wherein, wearable equipment of intelligence includes but not limited to intelligent bracelet, intelligent wrist-watch, intelligent glasses, intelligent helmet, intelligent necklace etc.. Alternatively, the client may be software capable of running in the electronic device. The server may be an electronic device having a certain arithmetic processing capability. Which may have a network communication module, a processor, memory, etc. Of course, the server may also refer to software running in the electronic device. The server may also be a distributed server, which may be a system with multiple processors, memory, network communication modules, etc. operating in coordination. Alternatively, the server may also be a server cluster formed by several servers. Or, with the development of scientific technology, the server can also be a new technical means capable of realizing the corresponding functions of the specification implementation mode. For example, it may be a new form of "server" implemented based on quantum computing.
Referring to fig. 2, an embodiment of the present disclosure provides a file processing method. The method may be applied to a server. The method comprises the following steps.
Step S110: a source file is received.
Before processing a file, a source file needs to be received to determine a target processing mode and a target storage mode according to file attributes of the source file.
The source files may be files in different business scenarios. The source file may have file attributes, which may be recorded in a file header. Specifically, for example, the source file may be a specification document for describing application software, and the specification document may be edited based on editing software such as Word, WPS, and the like. Of course, the source file may also be a picture file for recording the user's head portrait or image data in the medical field. Specifically, the file type of the picture file may be JPEG, RAW, DICOM, or the like. In addition, the source file can also be a video file, and can be applied to a live scene.
The mode of receiving the source file can be obtained by directly sending the source file to the server by the client and monitoring the sending task of the client by the server. Of course, the receiving mode may also be that the server actively sends a request for obtaining the source file to the client, and the server receives the source file after the client sends the request.
Step S120: analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage means is used for indicating that the storage means suitable for the expected purpose is appointed for the target file.
Upon receiving a source file, a server may analyze an intended usage of the source file based on file attributes of the source file. On the basis, the source file can be subjected to preprocessing operation to obtain a target file and a target storage mode. In the process of developing projects by technicians of different service lines, repeated execution operations can be reduced, the link length and difficulty of file processing are reduced, and the development efficiency when the source file is used for developing services is improved. In some embodiments, the time consumption caused by the need of waiting for the source file to be processed in real time during the use of the source file by a user can also be reduced to a certain extent.
The intended use of the source file may be used to represent the manner in which the source file is intended to be used. The intended use may be determined according to the attributes of the source file and the usage scenario of the source file. For example, in the clinical medical field, the picture-type file may be a medical diagnostic picture file whose intended use may be shared among different terminals to determine a diagnostic plan. The video file can be a recorded video of a medical test or a medical operation and is used for learning and summarizing of a medical practitioner. Of course, there may be multiple intended uses for the source file in the same business scenario. Specifically, for example, the source file may be a document file, and the document file may be a medical diagnosis report requiring an expert to sign. Of course, the document may also be an operational instruction manual for the medical data system, which is used to assist the operator of the system to become familiar with the system functionality. In some embodiments, the same source file may correspond to multiple intended uses. For example, for video files, it can be used for live broadcasting and also for local viewing.
The manner in which the intended use of the source file is analyzed may be determined based on file attributes of the source file. The service usage scenario of the source file can be determined through the attributes of the file, and the expected usage of the source file in the corresponding service scenario is determined according to different service scenarios. Specifically, for example, for a picture file, a picture file with a lower resolution may be used as an avatar for a different user, and a picture with a high resolution in RAW format may be a medical image in the medical field for diagnosing a patient. By identifying the format and resolution information of the picture file, the expected use of the source file can be estimated. For document files, in a particular application scenario, a small document file may be a contract for determining a party or a civil relationship between parties; the large document file may be a product specification that describes the product in relative detail by way of an application genre.
The target processing means may be arranged to process the source file into a target file that conforms to the intended use. The target processing mode may be determined according to the intended use of the source file. Specifically, for example, for a document file that needs to be signed, the target processing manner may be to convert the document file into a file in a format that restricts editing. For the video file needing live broadcasting, the target processing mode can be that the video file is converted in advance according to the protocol of the push stream. For pictures that need to be the user's avatar, the target processing manner may be to perform operations such as appropriate compression, resolution reduction, etc. on the pictures. In some embodiments, the target processing mode may also be in accordance with file attributes of the source file. Specifically, for example, in the process of converting a document type source file into an encrypted file, the server may also call a conversion interface corresponding to the application software according to the application software that processes the source file, and convert the source file to ensure file conversion compatibility.
The target storage means is used for indicating that the storage means suitable for the expected purpose is appointed for the target file. The target storage mode may also be determined according to the intended use of the source file. In some embodiments, the source file and the corresponding target file obtained through the target processing mode are stored in the target storage mode, so that the development efficiency of technicians in development by using the source file can be further improved. Specifically, for example, for a picture that does not need to be strictly encrypted, the picture may be stored in the cloud in a manner of CDN network acceleration. The preview on the page can directly open the rendering without downloading, so that the access rate is improved. In addition, for video files for live broadcasting, the video files can be stored in a server supporting push streaming. And partial documents can be stored in a cloud server to ensure the cooperative work of personnel in each region. The target storage mode can determine a plurality of target storage terminals, wherein the target storage terminals can be a local server, a cloud server or a third-party server.
Step S130: and executing the target processing mode on the source file to obtain the target file.
And processing the source file according to a target processing mode to obtain a target file. By preprocessing, on one hand, the problem that the efficiency is reduced due to repeated development of a plurality of service lines related to the same operation in the process of processing the source file can be avoided to a certain extent; on the other hand, in the process of using the source file by the user, the waste of time caused by executing partial processing operation in real time can be avoided to a certain extent.
The target file may be a target file obtained by executing a target processing manner on the source file. The target file may be plural, and the plural target files may be subordinate to one source file. In some embodiments, the target file may also include the source file. Specifically, for example, when a still picture is processed, multiple granularity compression may be performed on the still picture to obtain multiple pictures with different sizes, so as to be suitable for fast presentation of different application scenarios. The plurality of pictures with different sizes may correspond to different resolutions, and may include original pictures with unchanged resolutions. Of course, the target file may be a target file obtained by processing and adjusting another file according to the target processing manner corresponding to the source file and the source file. Specifically, for example, in the case where the source file is a document type file, the server may further store an inverted index file for recording all document type files accumulated in history. In the process of processing the source file, the content of the source file can be analyzed, the vocabulary related to the source file is counted, and the information of the corresponding source file is updated in the inverted index file.
In some embodiments, multiple target files corresponding to the same source file may correspond to multiple intended uses. In addition, a plurality of target files corresponding to the same source file can also correspond to a plurality of target storage modes. Specifically, for example, the target processing manner for the picture file may be to perform multi-grain compression on the picture to obtain two pictures with lower resolution and original resolution. Wherein the intended use of the lower resolution picture may be for avatar and the intended use of the original resolution picture may be for sharing. For lower resolution pictures, the target storage may be stored at a local server. Of course, the lower resolution pictures may also be stored on the cloud server. For pictures of the original resolution, the target storage manner may be stored on a cloud server. Of course, the picture of the original resolution may also be stored on the cloud server.
Step S140: and storing the target file according to the target storage mode.
The target file is stored in a target storage mode which is in accordance with the expected use of the source file corresponding to the target file, so that the use efficiency of a user, a developer or other users in the process of using the corresponding source file or the target file subordinate to the source file can be improved to a certain extent.
In some embodiments, the step of analyzing the intended use of the source file to derive a target processing mode and a target storage mode corresponding to the source file comprises: acquiring file attribute information of the source file; analyzing an intended use of the source file based on the file attribute information.
The expected use of the source file can be determined conveniently, quickly and accurately through the file attribute information of the source file.
The file attribute information may include metadata information for describing the file. The file attribute information may include an extension name, a file type, a creation user, a creation time, a modification time, a file size, an extension attribute, and the like of the file. The file type may also be expressed as a format of a file. Wherein the extended attribute may include information of an application program that created or modified the corresponding source file. Specifically, for example, it may be recorded in the extended attribute of the source file of the document type that the document type is edited by WPS or Word.
The intended use of the source file may be analyzed based on the file attribute information. The source file may be analyzed for its intended use based on one of a plurality of file attribute information. Specifically, the intended use of the source file may be determined based on the extension of the file. For example, in a specific business scenario, a docx file with an extension may be a document file, which may be used as a signature contract. The file with extension JPEG may be a picture file that can be used as a user's avatar. In some embodiments, files of different extensions may correspond to the same intended use. Specifically, for example, video files with mp4 extension and flv extension can be shared and displayed after being encoded by a specified pull streaming protocol. Of course, the intended use of the source file may be analyzed based on a plurality of file attribute information of a plurality of file attribute information. For example, in some business scenarios, for document files with extensions that are each docx, the file attributes may also include the number of pages of the document file. When the number of pages of the document file is small, the intended use of the document file may be as a signature contract. When the number of pages of the document file is large, the document file can be a specification of the application software for describing and explaining the application software. Therefore, for the files with the same extension, the expected use of the files can be analyzed according to the attributes of the files, and the files are processed and stored according to the expected use.
In some embodiments, the file attribute information of the source file comprises a file type of the source file; correspondingly, analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file, and the method comprises the following steps: and determining a target processing mode and a target storage mode corresponding to the source file according to the file type.
And the target processing mode and the target storage mode corresponding to the source file can be determined quickly based on the file type.
The file type may be a file format. Different formats of files may correspond to different file extensions. By file type, the intended use of the file can be determined. In particular, for example, for MP4 format video files, it may be determined that the purpose of the video file may be to be used as a live use in a particular business scenario. For a Word file, it may be determined that the purpose of the Word file may be at least one of a signature document, a contract, or a specification. Based on the file type of the source file and the intended use of the source file, the target processing manner and the target storage method of the source file can be determined.
According to the method for determining the target processing mode and the target storage mode corresponding to the source file according to the file type, a file processing module can be matched according to the file format, and the module can comprise the target processing mode and the target storage mode. Specifically, for example, a picture in JPEG format may be matched to a processing module for processing the picture in JPEG format, and the processing module may process the picture to obtain a picture with a low rate, a picture with a medium resolution, and an original picture.
Of course, in some embodiments, files of different formats may be processed by the same processing module. The processing mode of the processing module can be adjusted correspondingly according to the format of the source file. For example, pictures of JPEG and PNG can be matched to the same processing module. In some embodiments, the processing module may invoke an interface adapted to the picture in the corresponding format to process the picture. Of course, the method for determining the target processing method and the target storage method corresponding to the source file according to the file type may also be designed with corresponding processing methods for different types of files, so as to meet the intended use of the corresponding type of file. For example, the processing method corresponding to the tif format picture may be set to convert the tif format picture into a format such as PNG or JPEG. In some embodiments, a specified target processing method may also be applied to the file. For example, in the case of a picture-type file, in the process of generating a plurality of pictures having different resolutions based on an original picture, a specified watermark may be added to the generated picture in accordance with a user instruction.
In some embodiments, the file attributes of the source file include an amount of data; analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file, wherein the target processing mode and the target storage mode comprise the following steps: determining a plurality of processing modes corresponding to the file types; the processing modes comprise a first processing mode and a second processing mode corresponding to different expected purposes; taking the first processing mode as the target processing mode under the condition that the data volume of the source file is smaller than a preset threshold value; or, the second processing mode is taken as the target processing mode when the data amount of the source file is larger than a preset threshold.
Multiple files of the same type can have different expected purposes, so in the process of determining the expected purpose of the source file, the expected purpose can be determined by the data amount and the file type by considering the data amount in the file attribute, so as to determine a target processing mode and a target storage mode aiming at a more subdivided business scene.
The data amount may be expressed as a size of an information amount recorded by the source file. The data size may be a file size, and may be used to indicate a memory space occupied by the source file. For example, a Word document has a data size of 100kb, which may indicate that the Word document occupies 100kb of space in the memory. In some embodiments, for a document class file, the data amount may also represent page number information of the document file.
Files of the same file type can correspond to a plurality of processing modes. The plurality of processing methods may correspond to different intended uses. The plurality of processing manners may include a first processing manner and a second processing manner. For files of the same file type, under the condition that the data volume of the files is smaller than a preset threshold value, the files can be processed in a first processing mode. And under the condition that the data volume of the file is larger than a preset threshold value, processing the file in a second processing mode. Wherein the preset threshold may be a predetermined value. Specifically, for example, for a Word file, it may be converted to a PDF file based on the intended use. Converting a Word file into a PDF file may correspond to multiple processing methods. The processing method may be to call an interface of Office to convert a Word file into a PDF file, or call an interface of library Office to convert the Word file into a PDF file. Different conversion interfaces are different in indexes such as file processing efficiency, reduction degree and fidelity rate. Thus, for Word files smaller than 10M, the information stored therein may be considered to be predominantly text-based, such as signature documents. The text distortion rate of the text-based document is low in the conversion process, so that the text-based document can be converted by using library Office to improve the conversion rate. For Word files larger than 10M, more picture information can be considered to be included therein. Therefore, in order to ensure the fidelity of the Word file in the conversion process, an Office interface can be adopted for converting the Word file. In some embodiments, the corresponding processing mode may also be determined based on the number of pages of Word.
Of course, multiple processing modes corresponding to files of the same file type may correspond to the same intended use. Specifically, for example, for a file in a zip format, there may be a plurality of processing manners. More than two processing modes can be used for backing up the file in the zip format. The processing mode can be that under the condition that the zip-format file occupies a large space, the zip-format compressed file is processed in a fragment uploading mode and stored in a target cloud. Or, under the condition that the occupied space of the zip-format file is small, the zip file is directly uploaded to the target cloud.
Correspondingly, files of the same file type can correspond to a plurality of storage modes. And under the condition that the data volume of the file is smaller than a preset threshold value and the file is processed by the first processing mode, obtaining a first target file and storing the first target file by a first storage mode. And under the condition that the data volume of the file is larger than a preset threshold value and the file is processed by the second processing mode, obtaining a second target file and storing the target file by a second storage mode.
Referring to FIG. 3, in some embodiments, the source file is a medical document file including medical data; the intended uses include: a signature document for generating the medical document file; correspondingly, the step of analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file comprises the following steps: determining the target storage mode and the target processing mode corresponding to the expected use; wherein, the target processing mode of the source file comprises the following steps: restricting medical data included in the source file from being modified; and storing the medical document after the target processing mode is executed according to the target storage mode.
The medical document file may be a document of a medical field. Specifically, the medical document may be a report in the medical field, a flow file in the medical field, a specification of a medical system, an audit file in the medical field, and the like. The medical document may relate to information such as data in the medical field, which has a certain sensitivity. Therefore, for part of the medical document, the medical document can be converted into a document for limiting editing and stored on the target terminal. For example, the medical document may be converted to a PDF format. During the process of acquiring the medical document, the server may send the medical document with editing restriction to ensure that the medical data is not modified to some extent. In some embodiments, the server may also automatically send medical documents that may or may not be editable, depending on the permissions of the user logging into the system. In addition, for some files such as medical reports needing to be signed by the attending doctors, the files are converted into a non-editable format in advance, and the time consumed for conversion in the using process can be avoided to a certain extent.
In some embodiments, the target storage manner corresponding to the medical document may include cloud storage and local storage. Wherein medical documents with relatively high security can be stored locally. The documents stored in the cloud may then provide online processing functionality. In particular, for example, the medical document may be stored on a WPS cloud server to provide online editing functionality of the document. In some embodiments, the target processing manner of the medical document may be placed in the cloud, and the target storage manner may be stored in the local server.
Referring to FIG. 4, in some embodiments, the source file is a picture file; the intended uses include: the system is used for displaying the information included in the picture file; correspondingly, the step of analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file comprises the following steps: determining the target storage mode and the target processing mode corresponding to the expected use; wherein, the target processing mode of the source file comprises the following steps: converting the source file into a standard type file; and storing the picture file after the target processing mode is executed according to the target storage mode.
The picture files may be pictures of different fields. The pictures may have different formats. When a client side uniformly displays a plurality of pictures with different formats, the client side is required to support the corresponding formats. Therefore, before the pictures are stored, the pictures can be converted into files of standard types, so that the problem that a part of pictures which are not supported by the format cannot be shown due to the limited picture formats supported by the client is avoided to a certain extent. Wherein the standard type may be a specified picture type. For example, the standard type may be a JPEG type among picture types, and may also be a PNG type. In the clinical medical field, the picture may be a picture in which medical information is recorded. For example, the picture may be a photograph of a paper document in the medical field, or the picture may be image data of a patient in the medical field. In clinical medical trials, an auditor of a sponsor may view various pictures in a clinical trial in a client. Wherein the client may be a browser. However, since the capturing devices of the pictures have a certain variability, the obtained pictures may have different formats. For example, the format of the picture may include TIF, JPG, PNG, GIF, and the like. In some embodiments, when the client browses pictures with different formats, the client is not compatible with the picture format and cannot display the pictures. Therefore, the pictures acquired by different acquisition devices can be converted into the picture types supported by the client, and the converted pictures are stored. When the auditor of the application party refers to the related pictures, the incompatibility condition can be avoided to a certain extent.
In some embodiments, the target storage manner corresponding to the picture file includes cloud storage and local storage. Specifically, the still picture file may be stored in a shared disk of the local server. The pictures stored in the local server may have better security. Of course, the picture file may also be stored in the cloud. The pictures stored in the cloud can be relatively flexibly applied. Specifically, for example, pictures stored in the cloud may provide a unified preview according to some front-end components. Of course, pictures may also be processed. For example, a watermark may be added to a picture. In some embodiments, a portion of the still picture that does not need to be encrypted may be stored locally and accelerated by CND to improve data transmission rate and stability.
Referring to FIG. 5, in some embodiments, the source file is a video file; the intended uses include: the video file is used for forming a video stream sent to a client; correspondingly, the step of analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file comprises the following steps: determining the target storage mode and the target processing mode corresponding to the expected use; wherein, the target processing mode of the source file comprises the following steps: converting the source file into the video stream based on a specified encoding protocol; and storing the video file after the target processing mode is executed according to the target storage mode.
The video stream may be a video stream for pushing to a client. The video stream may be encoded from the video file according to a specified encoding protocol. The specified encoding protocol may be a push streaming protocol. For example, the push streaming protocol may be RTSP, HLS protocol, etc. In particular, the server may encode the video file based on a specified push streaming protocol, such as the HLS protocol. When the video is used in live activities, the encoded streaming video file can be directly sent to a stream pushing server based on a specified URL address, and then the inference server pushes the video stream to a client, so that the encoding time is shortened, and the workload of developers is reduced. Of course, the video stream can also be pushed to the client directly by the server storing the video stream. In some embodiments, the server may also serve as a stream pulling end, and perform transcoding through a specified protocol, so that the video content can be used directly based on the encoded video file during the usage process. Specifically, for example, the server may store a video file supporting pull streaming, and the user may pull the video content of the video file through a designated address to view the video content in real time. In some embodiments, the bandwidth of the intranet is relatively larger than that of the extranet, so that video files with large data volume can be stored on the local server. The video in the local server can be transmitted to the plug-flow server based on the intranet, and the limitation of the bandwidth of the extranet can be avoided to a certain extent, so that the video file can be rapidly encoded. Of course, the video file can also be stored in the cloud server, so that users in different areas can obtain the video file better.
Referring to fig. 6, in some embodiments, a document processing apparatus may be provided. The device comprises: the device comprises a receiving module, an analysis module, a processing module and a storage module.
The receiving module is used for receiving the source file.
The analysis module is used for analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage means is used for indicating that the storage means suitable for the expected purpose is appointed for the target file.
And the processing module is used for executing the target processing mode on the source file to obtain the target file.
And the storage module is used for storing the target file according to the target storage mode.
The specific functions and effects realized by the file processing apparatus can be explained with reference to other embodiments in this specification, and are not described herein again. The various modules in the sample generation apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device may be provided, comprising a memory having a computer program stored therein and a processor that implements the method steps of the embodiments when executing the computer program.
In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored, which when executed by a processor implements the method steps in the embodiments. The specific functions and effects achieved by the sample generation device can be explained by referring to other embodiments in this specification, and are not described herein again. The respective modules in the document processing apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device may be provided, comprising a memory having a computer program stored therein and a processor that implements the method steps of the embodiments when executing the computer program.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include processes of the embodiments of the methods. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The description is made in a progressive manner among the embodiments of the present specification. The different embodiments focus on the different parts described compared to the other embodiments. After reading this specification, one skilled in the art can appreciate that many embodiments and many features disclosed in the embodiments can be combined in many different ways, and for the sake of brevity, all possible combinations of features in the embodiments are not described. However, as long as there is no contradiction between combinations of these technical features, the scope of the present specification should be considered as being described.
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 phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an embodiment of the present disclosure, and is not intended to limit the scope of the claims of the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.
In the present specification, the embodiments themselves are emphasized differently from the other embodiments, and the embodiments can be explained in contrast to each other. Any combination of the embodiments in this specification based on general technical common knowledge by those skilled in the art is encompassed in the disclosure of the specification.

Claims (10)

1. A file processing method is applied to a server and is characterized by comprising the following steps:
receiving a source file;
analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage mode is used for indicating that a storage mode suitable for the expected purpose is appointed for the target file;
executing the target processing mode on the source file to obtain a target file;
and storing the target file according to the target storage mode.
2. The method of claim 1, wherein the step of analyzing the intended use of the source file to derive a target processing mode and a target storage mode corresponding to the source file comprises:
acquiring file attribute information of the source file;
analyzing an intended use of the source file based on the file attribute information.
3. The method according to claim 2, wherein the file attribute information of the source file includes a file type of the source file; correspondingly, analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file, and the method comprises the following steps:
and determining a target processing mode and a target storage mode corresponding to the source file according to the file type.
4. The method of claim 3, wherein the file attributes of the source file comprise an amount of data; analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file, wherein the target processing mode and the target storage mode comprise the following steps:
determining a plurality of processing modes corresponding to the file types; the processing modes comprise a first processing mode and a second processing mode corresponding to different expected purposes;
taking the first processing mode as the target processing mode under the condition that the data volume of the source file is smaller than a preset threshold value; or, the second processing mode is taken as the target processing mode when the data amount of the source file is larger than a preset threshold.
5. The method of claim 1, wherein the source file is a medical document file comprising medical data; the intended uses include: a signature document for generating the medical document file;
correspondingly, the step of analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file comprises the following steps:
determining the target storage mode and the target processing mode corresponding to the expected use; wherein, the target processing mode of the source file comprises the following steps: restricting medical data included in the source file from being modified;
and storing the medical document after the target processing mode is executed according to the target storage mode.
6. The method of claim 1, wherein the source file is a picture file; the intended uses include: the system is used for displaying the information included in the picture file;
correspondingly, the step of analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file comprises the following steps:
determining the target storage mode and the target processing mode corresponding to the expected use; wherein, the target processing mode of the source file comprises the following steps: converting the source file into a standard type file;
and storing the picture file after the target processing mode is executed according to the target storage mode.
7. The method of claim 1, wherein the source file is a video file; the intended uses include: the video file is used for forming a video stream sent to a client;
correspondingly, the step of analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file comprises the following steps:
determining the target storage mode and the target processing mode corresponding to the expected use; wherein, the target processing mode of the source file comprises the following steps: converting the source file into the video stream based on a specified encoding protocol;
and storing the video file after the target processing mode is executed according to the target storage mode.
8. A document processing apparatus, characterized by comprising:
the receiving module is used for receiving a source file;
the analysis module is used for analyzing the predicted use of the source file to obtain a target processing mode and a target storage mode corresponding to the source file; wherein the intended use is to represent a manner in which the source file is intended to be used; wherein the target processing mode is used for processing the source file into a target file which accords with the expected use; the target storage mode is used for indicating that a storage mode suitable for the expected purpose is appointed for the target file;
the processing module is used for executing the target processing mode on the source file to obtain the target file;
and the storage module is used for storing the target file according to the target storage mode.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111621450.9A 2021-12-23 2021-12-23 File processing method and device, computer equipment and storage medium Pending CN114328410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111621450.9A CN114328410A (en) 2021-12-23 2021-12-23 File processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111621450.9A CN114328410A (en) 2021-12-23 2021-12-23 File processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114328410A true CN114328410A (en) 2022-04-12

Family

ID=81014729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111621450.9A Pending CN114328410A (en) 2021-12-23 2021-12-23 File processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114328410A (en)

Similar Documents

Publication Publication Date Title
CN110458918B (en) Method and device for outputting information
US20140026025A1 (en) System and method for collaborating over a communications network
US10341695B2 (en) Media management based on derived quantitative data of quality
KR20190022661A (en) System and method for identifying matching content
US11800201B2 (en) Method and apparatus for outputting information
KR20080052574A (en) High level graphics stream
Huamán et al. Authentication and integrity of smartphone videos through multimedia container structure analysis
US20120254759A1 (en) Browser-based recording of content
WO2022063124A1 (en) Video fusion method and device
CN112328552A (en) Bottom layer data management method, system and computer readable storage medium
US20140029854A1 (en) Metadata supersets for matching images
CN108228843B (en) Internet-based lecture note compression transmission and restoration method
CN113873288A (en) Method and device for generating playback in live broadcast process
CN111432142B (en) Video synthesis method, device, equipment and storage medium
Richter et al. Service-based processing and provisioning of image-abstraction techniques
CN115221453B (en) Media resource management method, device, server and medium
CN111859210B (en) Image processing method, device, equipment and storage medium
CN112363791A (en) Screen recording method and device, storage medium and terminal equipment
Noor et al. ibuck: Reliable and secured image processing middleware for openstack swift
CN111143310B (en) Log recording method and device and readable storage medium
CN114328410A (en) File processing method and device, computer equipment and storage medium
Clark Digital forensics tool testing-image metadata in the cloud
US11973994B2 (en) Media processing method
WO2002007000A2 (en) System and method for associating historical information with sensory data and distribution thereof
Lunesu et al. Using a Standards-based Approach for a Multimedia Knowledge-base.

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