CN107809447B - File transmission processing method and related equipment - Google Patents

File transmission processing method and related equipment Download PDF

Info

Publication number
CN107809447B
CN107809447B CN201610814407.7A CN201610814407A CN107809447B CN 107809447 B CN107809447 B CN 107809447B CN 201610814407 A CN201610814407 A CN 201610814407A CN 107809447 B CN107809447 B CN 107809447B
Authority
CN
China
Prior art keywords
file
preview information
type
information
preview
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
CN201610814407.7A
Other languages
Chinese (zh)
Other versions
CN107809447A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610814407.7A priority Critical patent/CN107809447B/en
Publication of CN107809447A publication Critical patent/CN107809447A/en
Application granted granted Critical
Publication of CN107809447B publication Critical patent/CN107809447B/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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information

Abstract

The embodiment of the invention discloses a processing method and related equipment for file transmission, wherein the method comprises the following steps: determining a file to be transmitted; analyzing the file to obtain basic information and preview information of the file, wherein the basic information comprises a characteristic value of the file; sending preview information of the file to a server; and sending a file transmission request and basic information of the file to a receiver, wherein the file transmission request is used for indicating the receiver to receive the basic information, so that the receiver can obtain the preview information from the server through the characteristic value. The embodiment of the invention also provides a terminal and a server. In the embodiment of the invention, the pressure of the server for analyzing the file to be transmitted is greatly reduced, and the file preview service can be provided for any file transmission scene, so that the method and the device are suitable for both the instant file transmission scene and the non-instant file transmission scene, and have a wide application range.

Description

File transmission processing method and related equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a related device for processing file transmission.
Background
File transfer (file transfer) is the transfer of a file or a portion thereof from one computer system to another, and the transfer of files over a network by a user is a common operation in work and life. The file is usually transmitted by mail, Instant Messaging (IM) software, network disk, etc. However, some troubles may also occur when the user receives the transmission file. For example, a large compressed file is downloaded, and after downloading, the file is opened to find the content which is not needed by the user, which wastes a lot of time for the user. Some malicious users may also disguise executable files such as viruses or trojans as pictures or documents, and induce the users to download the executable files to spread the virus files.
In order to solve the above problems, the following two methods are generally included: (1) the mailbox provides a virus detection function and can detect the mail attachment. (2) The mailbox or the network disk provides the document preview capability, namely the transmitted file is analyzed through the server, and the preview content of the file is displayed in a webpage form.
In the method, the virus detection function provided by the mail has a certain hysteresis, and in the method 1 or the method 2, the analysis of the transmission file by the server is relied on, and when a large number of users upload the file in the same time period, the analysis pressure of the server is relatively high, and the operation speed of the server is influenced. The server must have a complete file to analyze the file information and provide a file preview service, and the server cannot provide the file preview service for point-to-point real-time file transmission.
Disclosure of Invention
The embodiment of the invention provides a processing method for file transmission and related equipment, which are used for reducing the pressure of a server for analyzing a file to be transmitted and providing a file preview service for any file transmission scene, and are suitable for both IM file transmission scenes and non-instant file transmission scenes, and the application range is very wide.
The first aspect of the present invention provides a processing method for file transmission, including:
determining a file to be transmitted;
analyzing the file to obtain basic information and preview information of the file, wherein the basic information comprises a characteristic value of the file;
sending preview information of the file to a server;
and sending a transmission request of the file and the basic information of the file to a receiver, wherein the transmission request of the file is used for indicating the receiver to receive the basic information, so that the receiver acquires the preview information from the server through the characteristic value.
The second aspect of the present invention provides a processing method for file transmission, including:
receiving a file transmission request sent by a sender and basic information of the file, wherein the basic information comprises a characteristic value of the file, and the preview information is transmitted to a server by the sender;
receiving basic information of the file according to the transmission request;
and acquiring the preview information from the server through the characteristic value.
A third aspect of the present invention provides a method for processing file transmission, including:
receiving preview information of a file sent by a sender, wherein the preview information is obtained by analyzing the file by the sender, the preview information corresponds to a characteristic value in the basic information, and the basic information of the file is obtained by analyzing the file by the sender and is sent to a receiver by the sender;
receiving a characteristic value of the file sent by the receiver;
determining preview information matched with the characteristic value of the file;
and sending the preview information to the receiver.
A fourth aspect of the present invention provides a terminal, comprising:
the determining module is used for determining a file to be transmitted;
the analysis module is used for analyzing the file determined by the determination module to obtain basic information and preview information of the file, wherein the basic information comprises a characteristic value of the file;
the sending module is used for sending the preview information of the file analyzed by the analyzing module to a server;
the sending module is further configured to send a transmission request of the file and the basic information of the file to a receiving party, where the transmission request of the file is used to instruct the receiving party to receive the basic information, so that the receiving party obtains the preview information from the server through the feature value.
A fifth aspect of the present invention provides a terminal, comprising:
the receiving module is used for receiving a file transmission request sent by a sender and basic information of the file, wherein the basic information comprises a characteristic value of the file, and the preview information is transmitted to a server by the sender;
the receiving module is further configured to receive basic information of the file according to the transmission request;
a first obtaining module, configured to obtain the preview information from the server through the feature value received by the receiving module.
A sixth aspect of the present invention provides a server comprising:
the receiving module is used for receiving preview information of a file sent by a sender, the preview information is obtained by analyzing the file by the sender, the preview information corresponds to a characteristic value in the basic information, and the basic information of the file is obtained by analyzing the file by the sender and is sent to the receiver by the sender;
the receiving module is further configured to receive a feature value of the file sent by the receiving party;
the determining module is used for determining the preview information matched with the characteristic value of the file received by the receiving module;
and the sending module is used for sending the preview information determined by the determining module to the receiving party.
According to the technical scheme, the embodiment of the invention has the following advantages:
the method comprises the steps that a terminal of a sender analyzes a file to be transmitted to obtain basic information and preview information of the file to be transmitted, wherein the basic information comprises a characteristic value of the file. In the embodiment of the invention, the terminal of the sender analyzes the file to be transmitted and sends the analyzed preview information to the server, so that the server does not need to analyze the file, and the file analysis pressure of the server is greatly reduced. The terminal of the sender sends a transmission request of the file and the basic information to the receiver, so that a user can determine whether to check the preview information of the file according to the basic information, and if the user needs to check the preview information of the file, the terminal of the receiver can acquire the preview information of the server through the characteristic value in the basic information, so that the user can determine whether to receive the file according to the preview information. In the embodiment of the invention, the pressure of the server for analyzing the file to be transmitted is greatly reduced, and the file preview service can be provided for any file transmission scene, so that the method and the device are suitable for the IM file transmission scene and the non-instant file transmission scene, and have a wide application range.
Drawings
FIG. 1 is a block diagram of a communication system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a processing method for file transfer according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of a sample of basic information in an embodiment of the present invention;
FIG. 3b is a schematic diagram of a sample of basic information in an embodiment of the present invention;
FIG. 3c is a schematic diagram of a sample preview message according to an embodiment of the present invention;
FIG. 3d is a schematic diagram of a sample preview message according to an embodiment of the present invention;
FIG. 3e is a schematic diagram of a sample preview message according to an embodiment of the present invention;
FIG. 3f is a schematic diagram of a sample preview message according to an embodiment of the present invention;
FIG. 3g is a schematic diagram of a sample preview message according to an embodiment of the present invention;
fig. 3h is a schematic diagram of a sample preview message in the embodiment of the present invention;
FIG. 4 is a flowchart illustrating a processing method for file transfer according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a processing method for file transfer according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another embodiment of a terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another embodiment of a terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another embodiment of a terminal according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an embodiment of a terminal in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of another embodiment of a terminal according to an embodiment of the present invention;
FIG. 12 is a block diagram of one embodiment of a server in an embodiment of the invention;
fig. 13 is a schematic structural diagram of another embodiment of a server in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a processing method, a terminal and a server for file transmission, provides a file preview service for any file transmission scene, has a wide application range, and can greatly reduce the file analysis pressure of the server.
In order to make the technical solutions of the present invention better understood, the technical solutions in 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, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of a system architecture of a communication system 100, where the communication system includes a first terminal 110, a server 120, and a second terminal 130, the first terminal 110 is a sender, and the second terminal 130 is a receiver. The terminal in the embodiment of the present invention may be a smart phone, a computer, or a Personal Digital Assistant (PDA), and the like. The communication system can be applied to the application scene of instant messaging transmission files. For example, instant messaging of files is performed through a social application such as QQ, 263. But also to non-instant messaging application scenarios. For example, files are transferred by mail, web disk, etc. For different transmission modes, the server may be a server corresponding to the transmission modes of different files, for example, the server may be a QQ server, may be a wechat server, or the like. The server is illustrative only and not limiting.
In the embodiment of the invention, if the sender needs to transmit the file to the receiving method. The sender analyzes the file, and obtains basic information and preview information of the file to be transmitted through analysis, wherein the basic information is used for describing the file, and the preview information can be partial information of the file. The basic information includes a feature value of a file, where the feature value may be a character string generated for the file when a sender parses the file, and the feature value is used to mark the file, and preferably, the feature value may be a Message-Digest Algorithm (MD 5) value, or may also be an SHA value, RIPEMD, Haval, or the like. In the embodiment of the present invention, the characteristic value may be described by taking the MD5 value as an example. The sender needs to send the transmission request of the file and the basic information of the file to the server first, and the server forwards the transmission request of the file and the basic information to the receiver. The file transmission request is used for instructing the receiver to receive the basic information so that the receiver can obtain the preview information from the server through the characteristic value. And in the file transmission process, providing a file preview service for a user.
Referring to fig. 2, an embodiment of a method for processing file transmission according to the present invention includes:
step 201, the sender determines the file to be transmitted.
The file can be a document file such as Word, PDF, Photoshop, Excel, PPT, AutoCAD, or the like, or the file can also be a multimedia file such as a picture, audio, video, or the like.
In the embodiment of the present invention, the file is described as a PDF file by way of example, but the file is not limited thereto. For example, a user a wants to send a paper document to a user B, and sends the paper document to the user B through the instant messaging of QQ, where the paper document is in PDF format, it should be noted that a first terminal of the user a is a sender, and a second terminal of the user B is a receiver.
Step 202, analyzing the file to obtain basic information and preview information of the file, wherein the basic information includes a characteristic value of the file.
The sender may analyze the file to obtain the basic information and the preview information of the transmission file at the same time, or the sender may analyze the file to obtain the basic information of the transmission file, and then continue analyzing the file to obtain the preview information of the file.
Specifically, the basic information is used to describe the file, please refer to fig. 3a and fig. 3b for understanding, and fig. 3a and fig. 3b are sample diagrams of the basic information. The basic information may include: file name, file type, file size, a characteristic value of the file (e.g., MD5 value), a thumbnail of the file, and the like. In a possible implementation manner, different file types are used to analyze the file, the basic information may also be different, and the basic information for document information such as Word, Excel, PPT, and the like may further include: title, author, abstract, etc. The basic information for audio, video, etc. files may also include: author, title, album, artist, etc. The basic information for the executable file may further include issuer information, version information. Other basic information may also be included for other files. Optionally, the file type may be identified by a file header, so as to avoid disguising the executable file by the file extension. The content included in the basic information may be different according to different file types, and the content included in the basic information is only illustrated in the embodiment of the present invention, and is not limited to the illustration.
The preview information may be partial information of the file or may be summary information of the file. The following lists the preview information of common files, for example:
please refer to fig. 3c, in which fig. 3c is a sample diagram of preview information of a document file. If the document is a document file such as Word, Excel, PPT, PDF, etc., the preview information may be a text summary of the previous M pages, where M is a positive integer.
Please refer to fig. 3d for understanding, fig. 3d is a sample diagram of preview information of a picture file. If the file is a picture file, the preview information may be a thumbnail of the picture. The thumbnail is a small picture obtained by compressing the picture.
Please refer to fig. 3e for understanding, fig. 3e is a sample diagram of preview information of a video file. If the file is a video file, the preview information of the video file may be thumbnails of N images corresponding to different times, where M is a positive integer.
Please refer to fig. 3f for understanding, fig. 3f is a sample diagram of preview information of a design document. If the file is a design document such as Photoshop, the preview information is a thumbnail of the design document.
Please refer to fig. 3g for understanding, fig. 3g is a sample diagram of preview information of the compressed package file. If the file is a compressed package file such as Zip, the preview information is a file directory of the compressed package file. Optionally, the preview information may further include a prompt message indicating whether a password is required.
Please refer to fig. 3f for understanding, fig. 3f is a sample diagram of preview information of an audio file. If the file is an audio file, the preview information is a thumbnail of an album cover of the audio file, and optionally, lyrics are included.
For example, the first terminal of the user a parses the PDF file through the QQ to obtain the basic information of the file, where the basic information of the file includes:
the file type: PDF.
The file size is as follows: 7.07 MB.
MD5 value: 38b8c2c1093dd 0. It should be noted that the file type, file size, and MD5 value are only examples and are not limiting.
The preview information of the file includes: summary information of the first 4 pages of the PDF file. Summary information of the first 4 pages of the PDF file is shown in table 1 below:
TABLE 1
1 Topic of thesis
2 Full text abstract
3 Paper architecture and directory
4 Main contents per chapter
Step 203, the sender sends the preview information to the server;
for example, the first terminal of user a sends the preview information in table 1 above to the server.
And step 204, the sender sends the transmission request of the file and the basic information of the file to the receiver.
Specifically, the sender sends a transmission request of the file and basic information of the file to the server, and the server sends the transmission request and the basic information to the receiver.
For example, the first terminal of the user a sends the transmission request of the PDF file and the basic information of the PDF file to the server through the QQ, and the server sends the transmission request of the PDF file and the basic information of the PDF file to the second terminal of the user B.
For example, the QQ of the second terminal receives the basic information according to the transmission request, and the second terminal presents the basic information of the PDF file to the user through the application interface of the QQ, so that the user B can see the file type and the file size of the file. User B wishes to see preview information for the PDF.
Step 205, receiving a characteristic value of a file sent to a server by a receiver;
for example, the second terminal of user B sends the MD5 value for the file to the server.
Step 206, the server receives the feature value of the file sent by the receiver, and determines the preview information matched with the feature value.
Note that the feature value of the file is used to index the preview information of the file, for example, the feature value is described by taking MD5 as an example,
the server receives the MD5 value of the PDF file sent by the second terminal of the user B, at this time, a plurality of pieces of preview information may be cached in the server, and the server determines the preview information which is matched with the MD5 value in the plurality of pieces of preview information according to the currently received MD5 value sent by the second terminal.
Step 207, the server sends the preview information to the receiver.
The server transmits the determined preview information to the second terminal of the user B.
And step 208, the sender sends the file to the receiver in real time.
And the first terminal of the user A instantly transmits the PDF file to the second terminal of the user B through the QQ.
Step 209, the receiving party receives the preview information of the file, receives a file receiving instruction input by the user according to the preview information, and receives the file sent by the sending party in real time according to the file receiving instruction.
The second terminal of the user B receives the preview information of the PDF file from the server, and the user B considers that the file is the content required by the user B according to the content in the preview information (such as the content in table 1), and needs to view the full-text content of the thesis, and the second terminal of the user B receives the file instantly through the QQ.
It should be noted that step 208 may be performed after step 204, and the specific timing is not limited.
Optionally, the receiving party receives preview information of the file, receives a file rejection instruction input by the user according to the preview information, and receives the file sent by the sending party in real time according to the file rejection instruction.
The second terminal of user B receives the preview information of the PDF file from the server, and user B considers that the file is not the content required by user B according to the content in the preview information (see table 1), and the second terminal of user B may refuse to receive the file.
In the embodiment of the invention, in a scene that a sending party sends a file to a receiving party in an instant mode through a social application (such as QQ), the sending party analyzes the file to be transmitted to obtain the basic information and the preview information of the file to be transmitted, and the sending party sends the preview information to the server, so that the file analysis pressure of the server is greatly reduced. Then, the basic information is transmitted to the receiving side. The receiving party can acquire the preview information of the file from the server through the characteristic value of the file in the basic information, so that a user can determine whether the file needs to be received in real time according to the content of the preview information, and if the user determines that the file needs to be received, the receiving party receives a file receiving instruction input by the user and receives the file in real time according to the file receiving instruction. In the embodiment of the invention, the service for providing the preview information can be applied to an application scene of instant transmission through social application (for example, QQ), so that the situation that the service for providing the preview information in the process of transmitting the file can only be applied to non-instant transmission in the traditional method is changed, and the applicability is enhanced.
It should be noted that, in the above embodiment, an application scenario of instant messaging of a social application (e.g., QQ) is taken as an example for description. Referring to fig. 4, the present invention further provides another embodiment of a method for processing a file to be transferred, which is applied to a scenario of a non-instant file to be transferred.
Steps 401 to 403 are the same as steps 201 to 203, and are not described herein.
Step 404, the server stores the preview information.
Optionally, when the time for storing the preview information by the server is longer than a preset value, the server may clear the preview information. For example, if the time length for storing the preview information is longer than 60 days, the server clears the preview information, so as to save the storage resources of the server.
Steps 405 to 408 are the same as steps 204 and 207 in the embodiment corresponding to fig. 2, and are not repeated here.
Step 409, the sender sends the file to the server.
Step 410, the server caches the file.
Optionally, the server may clear the file. For example, if the size of the file is larger than the preset value, the time limit for the server to store the file is one month, and the server clears the file after one month, so as to save the storage resource of the server.
Step 411, the receiving party receives the preview information from the server, receives a file downloading instruction input by the user according to the preview information, and obtains the file from the server according to the file downloading instruction. The embodiment of the invention can be applied to the application scene of non-instant transmission. A brief description of the application scenario for non-instant delivery follows.
For example, user a wants to send the introduction of vacation mountain to user B, and sends the introduction to user B through non-real-time transmission such as QQ mailbox. Then, the first terminal of the user a parses the picture file through the QQ mailbox to obtain the basic information and the preview information of the file, where the preview information of the file is thumbnails of multiple pictures in the introduction material.
The first terminal of the user A sends the preview information to the server.
And the first terminal of the user A sends the transmission request of the picture file and the basic information of the picture file to the server through the QQ mailbox, and then the server sends the transmission request of the picture file and the basic information to the second terminal of the user B.
When the user B opens the QQ mailbox, the new mail is found, the QQ mailbox of the second terminal receives the basic information according to the transmission request, and the second terminal displays the basic information of the file to the user through an application interface of the QQ mailbox, so that the user B can see the file type, the file size and the like of the file. User B wishes to see a preview of the introductory material.
The second terminal of user B sends the MD5 value for the file to the server. The server receives the MD5 value of the PDF file sent by the second terminal of the user B, and at the moment, the server determines the preview information (thumbnail) of the picture file matched with the MD5 value according to the currently received MD5 value sent by the second terminal, and sends the preview information (thumbnail) to the second terminal of the user B.
The sender can send the introduction material of the picture file to the server. The server caches the file. And the second terminal of the user B receives the preview information from the server, the user B is interested in the vacation mountain after seeing the thumbnail of the file in the QQ mailbox interface and hopefully can see the full-text content of the file, then the second terminal receives a file downloading instruction input by the user B, and the file is obtained from the server according to the file downloading instruction.
The embodiment of the invention can be applied to the application scene of the instant transmission file and the application scene of the non-instant transmission file, and has wide application range. Meanwhile, the file to be transmitted is analyzed by the sender, so that the analysis pressure of the service is greatly reduced.
Referring to fig. 5, another embodiment of a file transfer processing method according to the present invention includes:
step 501, a sender determines a file to be transmitted.
This step should be understood with reference to step 201 in the embodiment corresponding to fig. 2, which is not described herein again.
Step 502, the sender judges whether the basic information of the file exists. If the basic information of the file exists, executing step 503, and if the basic information of the file does not exist, executing step 505;
the first terminal of the user a determines whether there is the basic information of the file. For example, (1) the basic information of the file may be that transmitted by the third terminal of the user C to the first terminal. (2) The first terminal has parsed the file once, and the first terminal has cached the basic information of the file, and in the two cases, the first terminal of the user a has the basic information of the file.
For example, in the first case, the first terminal of user a receives the compressed packet file sent by the third terminal of user C, so when the first terminal of user a is again used as the sender, the first terminal of user a forwards the received compressed packet file to the second terminal of user B, and the first terminal of user a has the basic information of the compressed file.
Step 503, judging whether the server stores preview information of the file according to the characteristic value of the file in the basic information; if the server does not have the preview information of the file, execute step 504; if the server stores the preview information of the file, step 507 is executed.
For example, the first terminal of the user a determines whether the server has the preview information of the compressed package file by the MD5 value in the basic information of the compressed package file. The specific method can be as follows: the first terminal of user a transmits the MD5 value to the server so that the server matches the preview information matching the MD5 value based on the MD5 value, feeds the preview information back to the first terminal if the server determines that there is preview information matching the MD5 value, and feeds a response to the first terminal if the server determines that there is no preview information matching the MD5 value, the response indicating that there is no preview information matching the MD5 value in the server.
Step 504, if the server does not have the preview information, the sender analyzes the preview information of the file according to the file type in the basic information.
The specific method for analyzing the preview information of the file according to the file type of the file may be:
firstly, determining the display type of the preview information corresponding to the file type according to the file type of the file.
For example: (1) and if the file type of the file is the document file, determining that the display type of the preview information corresponding to the document file is the text abstract. (2) And if the file type is a multimedia file, determining the display type of the preview information corresponding to the multimedia file as a thumbnail. The multimedia files comprise audio files, picture files and video files. (3) And if the file type of the file is the compressed package file, determining that the display type of the preview information corresponding to the multimedia is a file directory.
And then, analyzing the file according to the format of the display type to generate preview information of the file.
(1) And analyzing the file according to the format of the text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer. (2) And analyzing the multimedia file according to the format of the thumbnail to generate the thumbnail information of the file. (3) And analyzing the compressed package file according to the format of the file directory to generate directory information of the file.
In the embodiment of the present invention, the file to be sent may be described by taking a compressed package file as an example, and then the preview information of the compressed package file is directory information of the compressed package file.
The sample of the preview information in the embodiment of the present invention can be understood by combining with step 202 in the embodiment corresponding to fig. 2, which is not described herein again.
It should be noted that after step 504, step 506 is performed directly.
Optionally, in step 505, if there is no basic information of the file, the sender parses the file to obtain the basic information and the preview information of the file.
Step 506, the sender sends the preview information to the server.
And step 507, the sender sends the transmission request of the file and the basic information of the file to the receiver, so that the receiver acquires the preview information of the file from the server according to the characteristic value in the basic information.
For example, a first terminal of a user a sends a transmission request and basic information of a compressed package file to a server, the server forwards the transmission request and the basic information of the compressed package file to a second terminal of a user B, then, the second terminal may send an MD5 value in the basic information to the server, after receiving the MD5 value, the server determines preview information with a matched MD5 value, and then, the server feeds the preview information back to the second terminal of the user B.
In the embodiment of the invention, before a sender analyzes a file to be transmitted, whether basic information exists can be judged firstly, if the basic information exists, whether preview information is stored in a server can be judged continuously through the characteristic value in the basic information, if the server has the preview information, the sender does not need to analyze the preview information of the file to be transmitted, the characteristic value in the basic information can be reused as an index, the preview information of the file does not need to be analyzed every time, and the analysis pressure of the sender is reduced.
It should be noted that the embodiment of the present invention may be applied to an application scenario of instant messaging, and may also be applied to an application scenario of non-instant messaging, for example, after step 507, the sender may send a file to the receiver in real time through a social application. Alternatively, the sender may send the file to the server, and the receiver may obtain the file from the server.
As described above, a method for processing file transmission is described, and an embodiment of the present invention further provides a terminal, please refer to a schematic structural diagram of the terminal 600 shown in fig. 6, where the terminal includes:
a determining module 610, configured to determine a file to be transmitted;
the parsing module 620 is configured to parse the file determined by the determining module 610 to obtain basic information and preview information of the file, where the basic information includes a feature value of the file;
a sending module 630, configured to send, to the server, preview information of the file analyzed by the analysis module 620;
the sending module 630 is further configured to send a transmission request of the file and basic information of the file to the receiving party, where the transmission request of the file is used to instruct the receiving party to receive the basic information, so that the receiving party obtains the preview information from the server through the feature value.
Optionally, in an application scenario of instant messaging, the sending module 630 is further configured to send the file to the receiving party in real time.
Optionally, in an application scenario of non-instant messaging, the sending module 630 is further configured to send a file to the server, so that the receiver obtains the file from the server.
Referring to fig. 7, on the basis of the embodiment corresponding to fig. 6, the present invention further provides another embodiment of a terminal 700:
the parsing module 620 further comprises a parsing unit 621, a determining unit 622 and a generating unit 623;
the parsing unit 621 is configured to parse the file determined by the determining module 610 to obtain a file type of the file;
a determining unit 622, configured to determine, according to the file type of the file analyzed by the analyzing unit 621, a display type of the preview information corresponding to the file type;
the generating unit 623 is configured to parse the file according to the format of the presentation type determined by the determining unit 622, and generate preview information of the file.
Specifically, in a possible implementation manner, the determining unit 622 is further configured to determine that, when the file type of the file is a document file, the display type of the preview information corresponding to the document file is a text abstract;
the generating unit 623 is further configured to parse the file according to the format of the text summary determined by the determining unit 622, and generate text summary information before the nth page of the file, where N is a positive integer.
Specifically, in another possible implementation manner, the determining unit 622 is further configured to determine, when the file type is a multimedia file, that the display type of the preview information corresponding to the multimedia is a thumbnail;
the generating unit 623 is further configured to parse the multimedia file according to the format of the thumbnail determined by the determining unit 622, and generate thumbnail information of the file.
Specifically, in another possible implementation manner, the determining unit 622 is further configured to determine that the display type of the preview information corresponding to the multimedia is a file directory when the file type of the file is a compressed package file;
the generating unit 623 is further configured to parse the compressed packet file according to the file directory format determined by the determining unit 622, and generate directory information of the file.
Referring to fig. 8, on the basis of the embodiment corresponding to fig. 6, another embodiment of a terminal 800 according to the present invention includes:
the terminal further includes: a judging module 640, a query module 650 and a triggering module 660;
a judging module 640, configured to judge whether there is the basic information of the file determined by the determining module 610;
the query module 650 is configured to query whether preview information of a file is stored in the server according to a feature value of the file in the basic information when the determination module 640 determines that the basic information of the file exists;
a triggering module 660, configured to trigger execution of a step of sending a transmission request of a file and basic information of the file to a receiving party when the query module 650 determines that the preview information of the file is stored in the server;
the triggering module 660 is further configured to trigger the step of analyzing the file to obtain the basic information and the preview information of the file when the querying module 650 determines that there is no basic information of the file in the server.
It should be noted that the terminal provided in the embodiments corresponding to fig. 6 to fig. 8 is the sender in the embodiments corresponding to fig. 2, fig. 4, and fig. 5.
Further, the middle terminal in fig. 6 to 8 is presented in the form of a functional module. A "module" as used herein may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that provide the described functionality. In a simple embodiment, the terminal of fig. 5-7 may take the form shown in fig. 9.
Another terminal is provided in the embodiment of the present invention, as shown in fig. 9, for convenience of description, only a portion related to the embodiment of the present invention is shown, and specific technical details are not disclosed, please refer to the method portion in the embodiment of the present invention. The terminal may be a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), and the terminal is a mobile phone as an example:
fig. 9 is a block diagram showing a partial structure of a terminal provided in an embodiment of the present invention. Referring to fig. 9, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (WiFi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 9:
the RF circuit 910 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information to the processor 980; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (e.g., a user's operation on or near the touch panel 931 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a preset program. The input unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 931 may cover the display panel 941, and when the touch panel 931 detects a touch operation on or near the touch panel 931, the touch panel transmits the touch operation to the processor 980 to determine the type of the touch event, and then the processor 980 provides a corresponding visual output on the display panel 941 according to the type of the touch event. Although in fig. 9, the touch panel 931 and the display panel 941 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 may be integrated to implement the input and output functions of the mobile phone.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and outputs the audio data to the processor 980 for processing, and then transmits the audio data to, for example, another mobile phone through the RF circuit 910, or outputs the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 9 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, such that the power management system may manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In an embodiment of the present invention, the processor 980 included in the terminal, when executing the executable program in the memory, causes the terminal to perform the steps performed by the sender in the embodiments corresponding to fig. 2, 4 and 5.
Referring to fig. 10, the present invention further provides an embodiment of a terminal, where the terminal 1000 includes:
a receiving module 1010, configured to receive a file transmission request and basic information of a file sent by a sender, where the basic information includes a feature value of the file, and the preview information is transmitted from the sender to the server;
the receiving module 1010 is further configured to receive basic information of the file according to the transmission request;
a first obtaining module 1020, configured to obtain the preview information from the server through the feature value received by the receiving module 1010.
An input module 1030, configured to receive a file receiving instruction;
the receiving module 1010 is further configured to receive a file sent by the sender in real time according to the file receiving instruction received by the input module 1030.
Referring to fig. 11, the present invention further provides an embodiment of a terminal, where the terminal 1100 includes:
a receiving module 1010, configured to receive a file transmission request and basic information of a file sent by a sender, where the basic information includes a feature value of the file, and the preview information is transmitted from the sender to the server;
the receiving module 1010 is further configured to receive basic information of the file according to the transmission request;
a first obtaining module 1020, configured to obtain the preview information from the server through the feature value received by the receiving module 1010.
An input module 1030, configured to receive a file receiving instruction;
the second obtaining module 1040 is configured to obtain the file from the server according to the file receiving instruction received by the input module 1030.
Further, the middle terminal in fig. 10 to 11 is presented in the form of a functional module. A "module" as used herein may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that provide the described functionality. In a simple embodiment, the terminals of fig. 10 to 11 may take the form shown in fig. 9.
Specifically, in the embodiment of the present invention, when the processor 980 included in the terminal executes the executable program in the memory, the terminal executes the steps performed by the receiving side in the embodiment corresponding to fig. 2 and 4.
Referring to fig. 12, the present invention further provides an embodiment of a server 1200, including:
the receiving module 1210 is configured to receive preview information of a file sent by a sender, where the preview information is obtained by analyzing the file by the sender, the preview information corresponds to a characteristic value in basic information, and the basic information of the file is obtained by analyzing the file by the sender and sent to a receiver by the sender;
the receiving module 1210 is further configured to receive a feature value of a file sent by a receiving party;
a determining module 1220 for determining preview information matched with the feature value of the file received by the receiving module 1210;
a sending module 1230, configured to send the preview information determined by the determining module 1220 to the receiving party.
Optionally, the receiving module 1210 is further configured to receive a file sent by a sender;
the receiving module 1210 is further configured to receive a file download request sent by a receiving party;
the sending module 1230 is further configured to send the file to the receiving party according to the file downloading request.
Optionally, a storage module 1240 is further included; the storage module 1240 is used for storing the preview information of the file received by the receiving module 1210.
Further, the server in fig. 12 is presented in the form of a functional module. A "module" as used herein may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that provide the described functionality. In a simple embodiment, the server in FIG. 12 may take the form shown in FIG. 13.
Fig. 13 is a schematic diagram of a server 1300 according to an embodiment of the present invention, which may include a processor 1322, a memory 1332, and one or more storage media 1330 (e.g., one or more mass storage devices) for storing applications or data. Memory 1332 and storage medium 1330 may be, among other things, transitory or persistent storage. The program stored on the storage medium 1330 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a server. Further, the processor 1322 may be arranged to communicate with the storage medium 1330, executing a sequence of instruction operations in the storage medium 1330 on the server 1300.
The server 1300 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350.
Specifically, in the embodiment of the present invention, the processor 1322 included in the server, when executing the executable program in the memory, causes the server to perform the steps performed by the server in the embodiment corresponding to fig. 2 and 4.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (18)

1. A processing method for file transmission is characterized by comprising the following steps:
determining a file to be transmitted;
analyzing the file through a file header to obtain the file type of the file;
determining the display type of preview information corresponding to the file type according to the file type of the file;
analyzing the file according to the format of the presentation type, generating preview information of the file, and generating basic information of the file, where the basic information includes a feature value of the file, and the feature value is used to index the preview information of the file, and determining the presentation type of the preview information corresponding to the file type according to the file type of the file includes: if the file type of the file is a document file, determining that the display type of the preview information corresponding to the document file is a text abstract; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises: analyzing the file according to the format of the text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer;
sending preview information of the file to a server;
and sending a transmission request of the file and the basic information of the file to a receiver, wherein the transmission request of the file is used for indicating the receiver to receive the basic information, so that the receiver acquires the preview information from the server through the characteristic value.
2. The processing method according to claim 1, characterized in that the method further comprises:
and transmitting the file to the receiver in real time.
3. The processing method according to claim 1, characterized in that the method further comprises:
and sending the file to the server so that the receiver acquires the file from the server.
4. The processing method according to claim 1, wherein determining the presentation type of the preview information corresponding to the file type according to the file type of the file comprises:
if the file type is a multimedia file, determining that the display type of the preview information corresponding to the multimedia is a thumbnail;
analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises:
and analyzing the multimedia file according to the thumbnail format to generate the thumbnail information of the file.
5. The processing method according to claim 1, wherein determining the presentation type of the preview information corresponding to the file type according to the file type of the file comprises:
if the file type of the file is a compressed package file, determining that the display type of the preview information corresponding to the compressed package file is a file directory;
analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises:
and analyzing the compressed package file according to the format of the file directory to generate directory information of the file.
6. The processing method according to any one of claims 1 to 5, characterized in that, after determining the file to be transmitted, the method further comprises:
judging whether basic information of the file exists or not;
if the basic information of the file exists, judging whether preview information of the file is stored in the server or not according to the characteristic value of the file in the basic information;
if the server is determined to store the preview information of the file, triggering and executing the step of sending the transmission request of the file and the basic information of the file to a receiving party;
and if the basic information of the file does not exist, triggering and executing the step of analyzing the file to obtain the basic information and the preview information of the file.
7. A processing method for file transmission is characterized by comprising the following steps:
receiving a transmission request of a file and basic information of the file, wherein the basic information comprises a characteristic value of the file, preview information is transmitted to a server by a sender, the characteristic value is used for indexing the preview information of the file, and the acquisition process of the preview information comprises the following steps: analyzing the file through a file header to obtain the file type of the file; determining the display type of preview information corresponding to the file type according to the file type of the file; analyzing the file according to the format of the display type to generate preview information of the file, wherein the step of determining the display type of the preview information corresponding to the file type according to the file type of the file comprises the following steps: if the file type of the file is a document file, determining that the display type of the preview information corresponding to the document file is a text abstract; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises: analyzing the file according to the format of the text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer;
receiving basic information of the file according to the transmission request;
and acquiring the preview information from the server through the characteristic value.
8. The processing method according to claim 7, wherein after the obtaining of the preview information from the server by the feature value, the method further comprises:
receiving a file receiving instruction input by a user;
and receiving the file sent by the sender in real time according to the file receiving instruction.
9. The processing method according to claim 7, wherein after the obtaining of the preview information from the server by the feature value, the method further comprises:
receiving a file receiving instruction input by a user;
and acquiring the file from the server according to the file receiving instruction.
10. A processing method for file transmission is characterized by comprising the following steps:
receiving preview information of a file sent by a sender, wherein the preview information acquiring process comprises the following steps: analyzing the file through a file header to obtain the file type of the file; determining the display type of the preview information corresponding to the file type according to the file type of the file; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information corresponds to a characteristic value in basic information, the basic information of the file is obtained by analyzing the file by the sender and is sent to a receiver by the sender, and the characteristic value is used for indexing the preview information of the file, wherein the display type of the preview information corresponding to the file type is determined according to the file type of the file, and the method comprises the following steps: if the file type of the file is a document file, determining that the display type of the preview information corresponding to the document file is a text abstract; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises: analyzing the file according to the format of the text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer;
receiving a characteristic value of the file sent by the receiver;
determining preview information matched with the characteristic value of the file;
and sending the preview information to the receiver.
11. The process of claim 10, wherein the process further comprises: receiving the file sent by the sender;
receiving a file downloading request sent by the receiver;
and sending the file to the receiver according to the file downloading request.
12. A terminal, comprising:
the determining module is used for determining a file to be transmitted;
the analysis module is used for analyzing the file through the file header to obtain the file type of the file; determining the display type of the preview information corresponding to the file type according to the file type of the file; analyzing the file according to the format of the presentation type, generating preview information of the file, and generating basic information of the file, where the basic information includes a feature value of the file, and the feature value is used to index the preview information of the file, and determining the presentation type of the preview information corresponding to the file type according to the file type of the file includes: if the file type of the file is a document file, determining that the display type of the preview information corresponding to the document file is a text abstract; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises: analyzing the file according to the format of the text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer;
the sending module is used for sending the preview information of the file analyzed by the analyzing module to a server;
the sending module is further configured to send a transmission request of the file and the basic information of the file to a receiving party, where the transmission request of the file is used to instruct the receiving party to receive the basic information, so that the receiving party obtains the preview information from the server through the feature value.
13. The terminal of claim 12, wherein the terminal further comprises:
the sending module is further configured to send the file to the receiving party in real time.
14. The terminal according to any of claims 12 to 13, characterized in that the terminal further comprises: the device comprises a judging module, an inquiring module and a triggering module;
the judging module is used for judging whether the basic information of the file determined by the determining module exists or not;
the query module is configured to query whether preview information of the file is stored in the server through the feature value of the file in the basic information when the determination module determines that the basic information of the file exists;
the triggering module is used for triggering and executing the step of sending the transmission request of the file and the basic information of the file to a receiving party when the inquiry module determines that the preview information of the file is stored in the server;
the triggering module is further configured to trigger execution of the step of analyzing the file to obtain the basic information and the preview information of the file when the query module determines that the server does not have the basic information of the file.
15. A terminal, comprising:
a receiving module, configured to receive a file transmission request sent by a sender and basic information of the file, where the basic information includes a feature value of the file, preview information is transmitted from the sender to a server, the feature value is used to index the preview information of the file, and an acquisition process of the preview information includes: analyzing the file through a file header to obtain the file type of the file; determining the display type of the preview information corresponding to the file type according to the file type of the file; analyzing the file according to the format of the display type to generate preview information of the file, wherein the determining of the display type of the preview information corresponding to the file type according to the file type of the file comprises the following steps: if the file type of the file is a document file, determining that the display type of the preview information corresponding to the document file is a text abstract; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises: analyzing the file according to a format of a text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer;
the receiving module is further configured to receive basic information of the file according to the transmission request;
a first obtaining module, configured to obtain the preview information from the server through the feature value received by the receiving module.
16. The terminal of claim 15, further comprising an input module; the input module is used for receiving a file receiving instruction;
the receiving module is further configured to receive the file sent by the sender in real time according to the file receiving instruction received by the input module.
17. A server, comprising:
the receiving module is used for receiving preview information of a file sent by a sender, and the process of acquiring the preview information comprises the following steps: analyzing the file through a file header to obtain the file type of the file; determining the display type of the preview information corresponding to the file type according to the file type of the file; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information corresponds to a characteristic value in basic information, the basic information of the file is obtained by analyzing the file by the sender and is sent to a receiver by the sender, and the characteristic value is used for indexing the preview information of the file, wherein the display type of the preview information corresponding to the file type is determined according to the file type of the file, and the method comprises the following steps: if the file type of the file is a document file, determining that the display type of the preview information corresponding to the document file is a text abstract; analyzing the file according to the format of the display type to generate preview information of the file, wherein the preview information comprises: analyzing the file according to the format of the text abstract to generate text abstract information before the Nth page of the file, wherein N is a positive integer;
the receiving module is further configured to receive a feature value of the file sent by the receiving party;
the determining module is used for determining the preview information matched with the characteristic value of the file received by the receiving module;
and the sending module is used for sending the preview information determined by the determining module to the receiving party.
18. The server according to claim 17,
the receiving module is further configured to receive the file sent by the sender;
the receiving module is further configured to receive a file downloading request sent by the receiving party;
the sending module is further configured to send the file to the receiving party according to the file downloading request.
CN201610814407.7A 2016-09-08 2016-09-08 File transmission processing method and related equipment Active CN107809447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610814407.7A CN107809447B (en) 2016-09-08 2016-09-08 File transmission processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610814407.7A CN107809447B (en) 2016-09-08 2016-09-08 File transmission processing method and related equipment

Publications (2)

Publication Number Publication Date
CN107809447A CN107809447A (en) 2018-03-16
CN107809447B true CN107809447B (en) 2022-05-31

Family

ID=61569679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610814407.7A Active CN107809447B (en) 2016-09-08 2016-09-08 File transmission processing method and related equipment

Country Status (1)

Country Link
CN (1) CN107809447B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165197B (en) * 2018-08-29 2021-07-27 江苏奇异点网络有限公司 File processing method, terminal and server
CN109379271B (en) * 2018-10-16 2021-04-27 金瓜子科技发展(北京)有限公司 Service interaction method, equipment and storage medium based on IM
CN109558551A (en) * 2018-10-26 2019-04-02 东软集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of previewing file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421800A (en) * 2001-11-30 2003-06-04 英业达股份有限公司 Electronic file previewing system and method
CN101291303A (en) * 2008-06-12 2008-10-22 北京中星微电子有限公司 Remote browsing method, system and terminal for multimedia document
CN103634362A (en) * 2012-08-28 2014-03-12 金蝶软件(中国)有限公司 File transfer method, file server and file transfer system
CN105872714A (en) * 2016-05-26 2016-08-17 北京金山安全软件有限公司 Video previewing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010091583A (en) * 2000-03-16 2001-10-23 박기숙 Network-based selling system for home-page
CN103368951B (en) * 2013-06-29 2017-02-22 广州市动景计算机科技有限公司 File downloading method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1421800A (en) * 2001-11-30 2003-06-04 英业达股份有限公司 Electronic file previewing system and method
CN101291303A (en) * 2008-06-12 2008-10-22 北京中星微电子有限公司 Remote browsing method, system and terminal for multimedia document
CN103634362A (en) * 2012-08-28 2014-03-12 金蝶软件(中国)有限公司 File transfer method, file server and file transfer system
CN105872714A (en) * 2016-05-26 2016-08-17 北京金山安全软件有限公司 Video previewing method and device

Also Published As

Publication number Publication date
CN107809447A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
KR20110084325A (en) Method and apparatus for transmitting and receiving data
US20060047844A1 (en) One step approach to deliver multimedia from local PC to mobile devices
US8381096B2 (en) Managing list tailoring for a mobile device
US11151176B2 (en) Method and apparatus for processing text information
CN109309696B (en) Folder transmission method, sender, receiver, and storage medium
CN107707538B (en) Data transmission method and device, mobile terminal and computer readable storage medium
CN107645551B (en) File transmission method and device
KR101922467B1 (en) Apparatus and method for managing attached file of message in portable terminal
CN110035004B (en) User name card sharing method, friend adding method and related device
US20070044013A1 (en) Methods, devices and computer program products for saving content of a mobile terminal display
WO2014114229A1 (en) Information transmitting method, device and system, and storage medium
CN107809447B (en) File transmission processing method and related equipment
JP2019502190A (en) Information push method, device and system, and computer storage medium
CN112087362B (en) Message forwarding method and device between clients and terminal
CN110688347A (en) File storage method, file storage device and terminal equipment
CN109495376B (en) Group message screening method, mobile terminal and computer readable storage medium
CN108039998B (en) Mail processing method, receiving side terminal, sending side terminal and mail system
CN106970859B (en) Method and device for backing up and recovering offline mail
CN106339402B (en) Method, device and system for pushing recommended content
CN101404647A (en) Method and system for multifaceted scanning
CN109739409B (en) Batch processing method and device and terminal equipment
JP2005284454A (en) Junk e-mail distribution preventive system, and information terminal and e-mail server in the system
CN112333337A (en) Message checking method, device, equipment and storage medium
CN107145572B (en) Data processing method and device, computer equipment and storage medium
CN113392066A (en) Universal catalog management method and device and computer equipment

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