[go: up one dir, main page]

CN111193785B - File cutting and transmitting method and device and electronic equipment - Google Patents

File cutting and transmitting method and device and electronic equipment Download PDF

Info

Publication number
CN111193785B
CN111193785B CN201911330794.7A CN201911330794A CN111193785B CN 111193785 B CN111193785 B CN 111193785B CN 201911330794 A CN201911330794 A CN 201911330794A CN 111193785 B CN111193785 B CN 111193785B
Authority
CN
China
Prior art keywords
file
cutting
information
terminal
cut
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
CN201911330794.7A
Other languages
Chinese (zh)
Other versions
CN111193785A (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.)
Beijing Qiyu Information Technology Co Ltd
Original Assignee
Beijing Qiyu Information 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 Beijing Qiyu Information Technology Co Ltd filed Critical Beijing Qiyu Information Technology Co Ltd
Priority to CN201911330794.7A priority Critical patent/CN111193785B/en
Publication of CN111193785A publication Critical patent/CN111193785A/en
Application granted granted Critical
Publication of CN111193785B publication Critical patent/CN111193785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a file cutting and transmitting method and device and electronic equipment. For transferring a file from between a first terminal and a second terminal, comprising: cutting an original file to be uploaded, which is positioned at a first terminal, generating a plurality of cut files, and recording cutting information; uploading the cutting file to the second terminal, and simultaneously sending the cutting information to the second terminal, wherein the second terminal stores the cutting file in a designated file path; recording cutting information and file path information corresponding to the cutting file in a database of the second terminal; and the second terminal provides file inquiry and downloading service according to the information recorded in the database. The invention can quickly and efficiently carry out file transmission, reduce file transmission time and improve user experience.

Description

File cutting and transmitting method and device and electronic equipment
Technical Field
The present invention relates to the field of computer information processing, and in particular, to a file cutting transmission method, a device, an electronic apparatus, and a computer readable medium.
Background
Early transfer of files over the Internet was not an easy task, and it was known that the Internet was a very complex computing environment, with PCs, workstations, MACs, servers, mainframes, etc., which could run different operating systems, unix, dos, windows, macOS etc., and file exchanges between the various operating systems required the establishment of a unified file transfer protocol, the so-called FTP. Although there are different FTP applications based on different operating systems, all of these applications follow the same protocol so that the user can transfer his own files to others or obtain files from other user environments. The problems of complicated file uploading, low speed and the like occur.
In the prior art, the problem that the memory overflows easily during the transmission between the server and the server when the client uploads the file again often occurs, so that the file cannot be uploaded or cannot be uploaded. If the user has a 1G file, the file needs to be transmitted to the A server, 4G is stored in the A server, and if the number of the uploaded files is large, the A server stands Ma Nacun until the overflow service is unavailable. After the file cutting technology is used, the file is cut into a plurality of small files (such as 10M small files) during file transmission, and the small files are transmitted to an independent folder of a server, and the file is cut into a plurality of small files called test (n+1) txt. After the transmission of all the small files is finished, storing the information of the file to mysql, wherein the information comprises file names, file suffixes, the number of the files and file folder paths. Therefore, the problem that the memory is fully supported by a single file can be avoided when the large file is transmitted, and the problem that the memory of the whole large file is occupied when the large file is read in one time can be avoided.
Disclosure of Invention
The invention aims to solve the problem that a large file is easy to overflow from a memory in the process of server-to-server transmission.
In order to solve the above technical problems, a first aspect of the present invention provides a file cutting and transmitting method, which includes: cutting an original file to be uploaded, which is positioned at a first terminal, generating a plurality of cut files, and recording cutting information; uploading the cutting file to the second terminal, and simultaneously sending the cutting information to the second terminal, wherein the second terminal stores the cutting file in a designated file path; recording cutting information and file path information corresponding to the cutting file in a database of the second terminal; and the second terminal provides file inquiry and downloading service according to the information recorded in the database.
According to a preferred embodiment of the invention, the cutting information comprises at least one of the following: the method comprises the steps of original file name, cutting point information, number of cutting files and cutting file sequence.
According to a preferred embodiment of the present invention, the file querying and downloading service includes: and displaying file information for downloading according to requests from other terminals, wherein the file information is determined according to the cutting information and the file path information recorded in the database.
According to a preferred embodiment of the present invention, the file querying and downloading service further comprises: and transmitting the cutting file to the terminal which sends the request according to the file path information recorded in the database according to the requests from other terminals, and simultaneously transmitting the cutting information to the terminal.
According to a preferred embodiment of the present invention, further comprising: and the terminal receiving the cutting file and the cutting information merges the cutting file into a new file according to the cutting file and the cutting information, wherein the new file has the same file content as the original file.
According to a preferred embodiment of the present invention, further comprising: the visual interface can accept the drag operation of a user on the visual file icon, and the first terminal uploads and/or downloads the file according to the drag operation.
In order to solve the above technical problem, a second aspect of the present invention provides a file cutting and transferring device, which includes: the transmission module is used for uploading the cut file to the second terminal and simultaneously sending the cut information to the second terminal, and the second terminal stores the cut file in a designated file path;
the recording module is used for recording the cutting information and the file path information corresponding to the cutting file in a database of the second terminal;
and the service module is used for providing file inquiry and downloading services according to the information recorded in the database. According to a preferred embodiment of the invention, the cutting information comprises at least one of the following: the method comprises the steps of original file name, cutting point information, number of cutting files and cutting file sequence.
According to a preferred embodiment of the present invention, the file querying and downloading service includes: and displaying file information for downloading according to requests from other terminals, wherein the file information is determined according to the cutting information and the file path information recorded in the database.
According to a preferred embodiment of the present invention, the file querying and downloading service further comprises: and transmitting the cutting file to the terminal which sends the request according to the file path information recorded in the database according to the requests from other terminals, and simultaneously transmitting the cutting information to the terminal.
According to a preferred embodiment of the invention, the device further comprises:
the receiving module is used for receiving the cutting file and the cutting information;
and the synthesis module is used for merging the cut files into a new file, and the new file has the same file content as the original file.
According to a preferred embodiment of the present invention, the visual interface is capable of accepting a drag operation of a user on a visual file icon;
and the transmission module and the receiving module upload and/or download the file according to the dragging operation.
In addition, the invention also provides electronic equipment, wherein the electronic equipment comprises: a processor; and a memory storing computer executable instructions that, when executed, cause the processor to perform the ordering method for product recommendation according to the present invention.
In addition, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores one or more programs, and the one or more programs, when executed by a processor, implement the sorting method for product recommendation.
Advantageous effects
The invention adopts the file cutting transmission mode, thereby avoiding the occurrence of the unavailable situation of overflow service caused by the fact that the server is fully supported by Ma Nacun when a plurality of uploaded files are uploaded. The problem that the memory is fully supported by a single file can be avoided when the large file is transmitted, and the problem that the memory of the whole large file is read at one time is avoided.
Drawings
In order to make the technical problems solved by the present invention, the technical means adopted and the technical effects achieved more clear, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted, however, that the drawings described below are merely illustrative of exemplary embodiments of the present invention and that other embodiments of the drawings may be derived from these drawings by those skilled in the art without undue effort.
FIG. 1 is a flow chart of a method for file cut transmission of the present invention.
Fig. 2 shows a schematic block diagram of a file cut at a first terminal.
Fig. 3 is a flow chart of a file transfer structure of the present invention between a first terminal and a second terminal.
FIG. 4 is a schematic diagram of an upload/download initiation interface in accordance with one embodiment of the present invention.
FIG. 5 is a schematic diagram of an upload interface of an embodiment of the present invention.
FIG. 6 is a schematic diagram of a download interface of one embodiment of the present invention.
Fig. 7 is a schematic diagram of a transmission interface according to another embodiment of the present invention.
Fig. 8 is a schematic block diagram of a structure of an embodiment of the present invention for a document cutting and transferring apparatus.
Fig. 9 is a block diagram of an exemplary embodiment of an electronic device according to the present invention.
Fig. 10 is a block diagram of an exemplary embodiment of a computer readable medium according to the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments are shown, although the exemplary embodiments may be practiced in various specific ways. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art.
The structures, capabilities, effects, or other features described in a particular embodiment may be incorporated in one or more other embodiments in any suitable manner without departing from the spirit of the present invention.
In describing particular embodiments, specific details of construction, performance, effects, or other features are set forth in order to provide a thorough understanding of the embodiments by those skilled in the art. It is not excluded, however, that one skilled in the art may implement the present invention in a particular situation in a solution that does not include the structures, properties, effects, or other characteristics described above.
The flow diagrams in the figures are merely exemplary flow illustrations and do not represent that all of the elements, operations, and steps in the flow diagrams must be included in the aspects of the present invention, nor that the steps must be performed in the order shown in the figures. For example, some operations/steps in the flowcharts may be decomposed, some operations/steps may be combined or partially combined, etc., and the order of execution shown in the flowcharts may be changed according to actual situations without departing from the gist of the present invention.
The block diagrams in the figures generally represent functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The same reference numerals in the drawings denote the same or similar elements, components or portions, and thus repeated descriptions of the same or similar elements, components or portions may be omitted hereinafter. It will be further understood that, although the terms first, second, third, etc. may be used herein to describe various devices, elements, components or portions, these devices, elements, components or portions should not be limited by these terms. That is, these phrases are merely intended to distinguish one from the other. For example, a first device may also be referred to as a second device without departing from the spirit of the invention. Furthermore, the term "and/or," "and/or" is meant to include all combinations of any one or more of the items listed.
Next, the file cut transmission method of the present invention is described with reference to fig. 1 to 4.
The technical scheme of the invention aims to transmit the file at the first terminal to the second terminal, and the memory overflow is not caused in the transmission process. Meanwhile, the invention does not need the complicated operation of the user when the transmission is carried out.
Step S101, cutting an original file to be uploaded, which is positioned at a first terminal, into a plurality of cut files, and recording cutting information.
In the invention, the terminal refers to any electronic device capable of carrying out data transmission with other electronic devices, including desktop computers, notebook computers, tablet computers, mobile phones and the like, and also includes wearable devices such as intelligent watches, intelligent glasses and the like with data storage and transmission capabilities. In addition, the terminal may be a server, such as a file server. Servers are not limited to servers that are centrally processed, but also include servers that are distributed processed, such as cloud servers.
The terminal is typically provided with a human-machine interaction interface, including for example a display or screen, typically with a visual interaction interface, a mouse, a keyboard, etc. Mobile intelligent terminals such as cell phones, human-machine interaction interfaces are typically touch screens and keys. In any event, the user may interact with the terminal through a human-machine interface.
The terminal itself typically has data storage and data processing capabilities. The invention is mainly applied to terminals for storing data in a file mode, such as computers, mobile phones, servers and the like provided with an operating system such as windows, IOS, android.
Specifically, fig. 2 is a schematic diagram showing a file cutting operation performed on the first terminal. Fig. 3 is a schematic flow chart of a structure of a file transmitted between a first terminal and a second terminal in the present invention, as shown in fig. 2 and 3, the first terminal stores a file to be uploaded on the first terminal, first, the first terminal performs a file cutting operation to cut the file to be uploaded, where the file cutting refers to cutting the file into a plurality of small files (for example, the size of the file to be uploaded is 1G, and may be cut into 10M small files) by using a file cutting technology. The present invention is not limited to any file cutting technique that is currently available, and in principle, the present invention may be applied to any form of file in any file storage system, as long as it is capable of allowing data contained in one file to be divided into two or more file stores. At the time of cutting, it is generally necessary to generate attribute information of a new file, such as a file name, file header information, file attribute information, and the like, from information of an original file.
And, the present invention does not exclude additional data processing at the time of cutting, such as encrypting, compressing, etc., the data. Meanwhile, when the file is cut, file cutting information is also generated. The cutting information refers to any information about the cutting operation generated in performing the file cutting operation. The cutting information should be able to reflect how the cutting is performed when the document is cut, thereby helping to restore the cut document to the original document.
In a specific embodiment, the file cutting information may include an original file name, a cutting file name, cutting point information, the number of cutting files, the order of cutting files, and the like. When encryption or compression is additionally performed in the file cutting process, the file cutting information should also include information about encryption or compression.
Step S102, uploading the cut file to the second terminal, and simultaneously sending the cut information to the second terminal, wherein the second terminal stores the cut file in a designated file path.
The first terminal and the second terminal may be connected by any connection method, including connection through the internet, a local area network, or direct connection through bluetooth, infrared, etc., where the connection method is not limited to wired, and also includes wireless, for example, through a wireless communication network, wifi, etc.
The invention is not limited to the manner in which the files or data are transferred. When transferring files, any existing file transfer protocol may be employed, such as FTP, HTTP protocol, etc. The data transmission mode is more extensive, and can be applied to almost any protocol which can be used for transmitting data, including 4G, 5G, TCP/IP and the like.
The specified file path refers to an address of a folder used for storing the transmitted cut file and set by a user, and the address can be specified by the user of the terminal sending the file before sending the file or can be preset by the user on the terminal receiving the file.
Step S103, recording cutting information and file path information corresponding to the cutting file in a database of the second terminal.
The database of the second terminal comprises file cutting information uploaded from the first terminal, wherein the file cutting information mainly comprises the following steps: original file name, cut file name, number of cut files, order of cut files, and path information generated when the files are cut.
As shown in fig. 3, when receiving a cut file using a second terminal, the second terminal receives the cut file and the cut information according to the cut file.
As shown in fig. 3, the first terminal includes file cutting information and cut files, where the file cutting information includes an original file name, a cut file name, the number of cut files, and a cut file order. The cut files are cut into cut files with the same size, the content of the uploaded second terminal is the cut files, the file information is the uploaded second terminal database, and the database records the original file name, the cut file names, the number of the cut files, the sequence of the cut files and the file path.
In the specific embodiment shown in fig. 3, after the file to be cut is cut into a plurality of small files at the first terminal, the naming format is named in the form of a file name suffix in the cutting order (n+1) thereof, and the names of the cut files are sequentially named according to the cutting file order of the large file when being cut, and the naming mode is "original file name_ (n+1). Suffix name". N is a natural number, and the number of files depends on the size of the large file and the size of the cut file. For example, a 20M text file test.txt is cut 10 times, and the cut file name is named: test_1.Txt to test_10.Txt.
And step S104, the second terminal provides file inquiry and downloading service according to the information recorded in the database.
FIG. 4 is a schematic diagram of an upload/download initiation interface in accordance with one embodiment of the present invention. In this embodiment, the first terminal is a mobile phone client, and the client may upload the cut file to a server as the second terminal or download the file from the server. As shown in fig. 4, the client interface includes an upload button and a download button, and when the upload button is selected, the interface enters the upload interface as shown in fig. 5, and when the download button is selected, the interface enters the download interface as shown in fig. 6.
It should be noted that the upload and download interfaces may be the next level interface of the cut transmission interface shown in fig. 4, where when the upload is selected on the cut transmission interface, the upload interface shown in fig. 5 appears, and when the download is selected, the download interface shown in fig. 6 appears.
Preferably, the inquiry service can be inquired through a terminal. As shown in fig. 5, further includes: and providing a file transmission management visual interface on the first terminal so as to display the file information to be transmitted locally and the file information for downloading, which is inquired from the second terminal.
When the upload button is selected through the cut transmission interface as shown in fig. 4, the upload interface shown in fig. 5 appears, where the interface includes a file name selection frame and a file parameter selection frame, the file name is the original file name, and the file parameters may include parameters describing file attributes such as file type, file location, file size, creation time, and the like. When the transfer button is selected, the file is uploaded to the first terminal, and when the cancel button is selected, the file is returned to the terminal initial interface.
When the download button is selected through the cut transmission interface as shown in fig. 4, the download interface shown in fig. 6 appears, where the download interface includes a file name selection frame, a save location selection frame, and a file parameter selection frame, the file name is the original file name, and the file parameters may include parameters describing file attributes such as file type, file location, file size, creation time, and the like. The file downloads the server to the local when the transfer button is selected and returns to the initial interface when the cancel button is selected.
In this embodiment, the client interface shown in fig. 5 and 6 includes a file name selection box, a file parameter selection box, and an upload and/or download button. When the upload button is selected, the file is cut at the client, the cut file and the file information are uploaded to the server, and the file path, the original file name, the cut file name, the number of the cut files, the sequence of the cut files and the like are combined in the independent file folder. And downloading through a terminal interface.
Specifically, when the user downloads the file, the path information of the file is queried according to the file name, all files under the folder are downloaded to the user's local, and when the last download is completed, the combined file is triggered, the file is read by using a stream file reading mode, and the files are ordered, sequentially read from the smallest file, read 2M Byte each time, write into a complete large file, and name by the original file name.
Fig. 7 is a schematic diagram of a transmission interface according to another embodiment of the present invention. As shown in fig. 7, the left file column is a local file column, and the right file column is a remote terminal (i.e., second terminal, e.g., server) file column. The method has the advantages that the local file information and the uploaded file information can be intuitively seen, a user can drag the local file to the uploaded file for uploading through drag operation on the file icon, and meanwhile, if the file is erroneously selected to the uploaded file column to be removed, the user only needs to drag the file out. The first terminal may upload and/or download the file according to the drag operation.
It should be noted that, in this embodiment, although the uploaded file is displayed as a single file icon at the remote terminal (e.g., server), the cut file is saved on the remote terminal, but is displayed as one file for the convenience of user operation and viewing. In this way, it is imperceptible to the user for background cutting and post-cutting transfer, and storage of cut files, but in effect improves the efficiency and stability of file transfer, thereby improving the user experience.
Those skilled in the art will appreciate that all or part of the steps implementing the above-described embodiments are implemented as a program, i.e., a computer program, executed by a data processing apparatus (including a computer). The above-described method provided by the present invention can be implemented when the computer program is executed. Moreover, the computer program may be stored in a computer readable storage medium, which may be a readable storage medium such as a magnetic disk, an optical disk, a ROM, a RAM, or a storage array composed of a plurality of storage media, for example, a magnetic disk or a tape storage array. The storage medium is not limited to a centralized storage, but may be a distributed storage, such as cloud storage based on cloud computing.
The following describes apparatus embodiments of the invention that may be used to perform method embodiments of the invention. Details described in the embodiments of the device according to the invention should be regarded as additions to the embodiments of the method described above; for details not disclosed in the embodiments of the device according to the invention, reference may be made to the above-described method embodiments.
Fig. 8 is a schematic diagram of a file cutting and transferring apparatus according to the present invention, as shown in fig. 8,
the device comprises:
the device comprises a cutting module, a first terminal and a second terminal, wherein the cutting module is used for cutting an original file to be uploaded of the first terminal, generating a plurality of cutting files, recording cutting information, and storing the file to be uploaded on the first terminal;
the transmission module is used for uploading the cut file to the second terminal and sending the cut file to the second terminal, the second terminal stores the cut file in a designated file path, and the designated file path refers to an address of a folder used for storing the transmitted cut file and set by a user, wherein the address can be designated by a user of a terminal sending the file before sending the cut file or can be preset by a user of a terminal receiving the cut file;
the recording module is used for recording the cutting information and the file path information corresponding to the cutting file in a database of the second terminal, and the file cutting information is mainly as follows: original file name, cut file name, number of cut files, order of cut files, and path information generated when the files are cut. The method comprises the steps of carrying out a first treatment on the surface of the
The service module is used for providing file inquiry and downloading service according to the information recorded in the database, the first terminal is a mobile phone client, and the client can upload and cut files to a server serving as a second terminal or download files from the server.
Wherein the cutting information includes at least one of: the method comprises the steps of original file name, cutting point information, number of cutting files and cutting file sequence.
The file inquiry and download service comprises the following steps: and displaying file information for downloading according to requests from other terminals, wherein the file information is determined according to cutting information and file path information recorded in the database, and the file parameters can comprise parameters describing file attributes such as file type, file position, file size, creation time and the like.
The file querying and downloading service further comprises: and transmitting the cutting file to the terminal which sends the request according to the file path information recorded in the database according to the requests from other terminals, and simultaneously transmitting the cutting information to the terminal.
In one embodiment, the apparatus further comprises:
the receiving module is used for receiving the cutting file and the cutting information;
and the synthesis module is used for merging the cut files into a new file, wherein the new file is the same as the file content of the original file, inquiring the path information of the file according to the file name, downloading all files under the file folder to the local of a user, triggering the merged file when the last downloading is finished, reading the files in a stream file reading mode, sequencing the files, sequentially reading 2M Byte at each time from the smallest file, writing the Byte into a complete large file, and naming the file by the original file name.
The visual interface can accept the dragging operation of a user on the visual file icon;
the transmission module and the receiving module upload and/or download the file according to the dragging operation, and a user can drag the local file to the uploaded file for uploading through the dragging operation of the file icon, and meanwhile, if the file is erroneously selected to the uploaded file column to be removed, the user only needs to drag the file out. The first terminal may upload and/or download the file according to the drag operation.
It will be appreciated by those skilled in the art that the modules in the embodiments of the apparatus described above may be distributed in an apparatus as described, or may be distributed in one or more apparatuses different from the embodiments described above with corresponding changes. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
The following describes an embodiment of an electronic device of the present invention, which may be regarded as a physical form of implementation for the above-described embodiment of the method and apparatus of the present invention. Details described in relation to the embodiments of the electronic device of the present invention should be considered as additions to the embodiments of the method or apparatus described above; for details not disclosed in the embodiments of the electronic device of the present invention, reference may be made to the above-described method or apparatus embodiments.
Fig. 9 is a block diagram of an exemplary embodiment of an electronic device according to the present invention. The electronic device shown in fig. 9 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 9, the electronic device 910 of the exemplary embodiment is embodied in the form of a general-purpose data processing device. Components of the electronic device 910 may include, but are not limited to: at least one processing unit 911, at least one memory unit 912, a bus 916 connecting the different system components (including the memory unit 912 and the processing unit 911), a display unit 919, and the like.
The storage unit 912 stores a computer readable program, which may be a source program or code of a program that is read only. The program may be executed by the processing unit 911 to cause the processing unit 210 to perform the steps of various embodiments of the present invention. For example, the processing unit 911 may perform the steps shown in fig. 1.
The storage unit 912 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 9121 and/or cache memory 9122, and may further include Read Only Memory (ROM) 9129. The storage unit 912 may also include a program/utility 9124 having a set (at least one) of program modules 9125, such program modules 9125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 916 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 910 may also communicate with one or more external devices 920 (e.g., keyboard, display, network device, bluetooth device, etc.), such that a user can interact with the electronic device 920 via the external devices 920, and/or such that the electronic device 910 can communicate with one or more other data processing devices (e.g., routers, modems, etc.). Such communication may occur via an input/output (I/O) interface 914, and may also occur via a network adapter 915 to one or more networks, such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet. The network adapter 915 may communicate with other modules of the electronic device 920 via the bus 916. It should be appreciated that although not shown, other hardware and/or software modules may be used in the electronic device 910, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
FIG. 10 is a schematic diagram of one embodiment of a computer readable medium of the present invention. As shown in fig. 10, the computer program may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. The computer program, when executed by one or more data processing devices, enables the computer readable medium to carry out the above-described method of the present invention, namely: for transferring a file from between a first terminal and a second terminal, comprising: cutting an original file to be uploaded, which is positioned at a first terminal, generating a plurality of cut files, and recording cutting information; uploading the cutting file to the second terminal, and simultaneously sending the cutting information to the second terminal, wherein the second terminal stores the cutting file in a designated file path; recording cutting information and file path information corresponding to the cutting file in a database of the second terminal; and the second terminal provides file inquiry and downloading service according to the information recorded in the database.
From the above description of embodiments, those skilled in the art will readily appreciate that the exemplary embodiments described herein may be implemented in software, or may be implemented in software in combination with necessary hardware. Thus, the technical solution according to the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a computer readable storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, comprising several instructions to cause a data processing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the present invention.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
In summary, the present invention may be implemented in a method, apparatus, electronic device, or computer readable medium that executes a computer program. Some or all of the functions of the present invention may be implemented in practice using a general purpose data processing device such as a microprocessor or Digital Signal Processor (DSP).
The above-described specific embodiments further describe the objects, technical solutions and advantageous effects of the present invention in detail, and it should be understood that the present invention is not inherently related to any particular computer, virtual device or electronic apparatus, and various general-purpose devices may also implement the present invention. The foregoing description of the embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (10)

1. A file cutting transmission method for transmitting a file between terminals, comprising:
cutting an original file to be uploaded at a first terminal to generate a plurality of cutting files, and recording cutting information, wherein the cutting information at least comprises an original file name, a cutting file name, cutting point information, the number of the cutting files and the sequence of the cutting files; the cut file names are named in a form of a cutting sequence (n+1) by the suffix of the original file names, and n is a natural number;
uploading the cut file to a second terminal, and simultaneously sending the cut information to the second terminal, wherein the second terminal stores the cut file at a designated file path, and the designated file path comprises an address of a folder used for storing the transmitted cut file and set by a user;
recording cutting information corresponding to the cutting file and file path information generated when the file is cut in a database of the second terminal;
the second terminal provides file inquiry and downloading service according to the information recorded in the database, wherein the terminal receiving the cutting file and the cutting information sorts and merges the cutting file into a new file by using a stream file reading mode according to the cutting file and the cutting information by triggering the merging file when the last file is downloaded;
the visual interface is used for receiving the dragging operation of a user on the visual file icon, and the first terminal uploads and/or downloads the file according to the dragging operation; and when a user operates and views the cut file stored on the terminal receiving the cut file and the cut information through the visual interface, the stored cut file is displayed as one file on the visual interface.
2. The file cut transmission method according to claim 1, wherein the file inquiry and download service comprises: and displaying file information for downloading according to requests from other terminals, wherein the file information is determined according to the cutting information and the file path information recorded in the database.
3. The file cut transmission method according to claim 2, wherein the file inquiry and download service further comprises: and transmitting the cutting file to the terminal which sends the request according to the file path information recorded in the database according to the requests from other terminals, and simultaneously transmitting the cutting information to the terminal.
4. The file cutting and transmitting method according to claim 3, wherein the terminal receiving the cutting file and the cutting information sorts and merges the cutting file into a new file by using a stream file reading method according to the cutting file and the cutting information, and the method specifically comprises: and sequentially reading from the smallest file, writing into a complete large file each time by using 2M Byte to obtain a new file with the same content as the source file, and naming the new file by using the original file.
5. A document cutting and transferring apparatus, comprising:
the cutting module is used for cutting the original file to be uploaded of the first terminal, generating a plurality of cutting files and recording cutting information, wherein the cutting information at least comprises an original file name, a cutting file name, cutting point information, the number of the cutting files and the sequence of the cutting files; the cut file names are named in a form of a cutting sequence (n+1) by the suffix of the original file names, and n is a natural number;
the transmission module is used for uploading the cut file to a second terminal and sending the cut information to the second terminal at the same time, the second terminal stores the cut file at a designated file path, and the designated file path comprises an address of a folder which is set by a user and used for storing the transmitted cut file;
the recording module is used for recording cutting information corresponding to the cutting file and file path information generated when the file is cut in a database of the second terminal;
the service module is used for providing file inquiry and downloading service according to the information recorded in the database;
the receiving module is used for receiving the cutting file and the cutting information through the terminal;
the synthesizing module is used for triggering the combined file when the last file is downloaded, and the terminal receiving the cut file and the cut information sorts and combines the cut files into a new file by utilizing a stream file reading mode according to the cut file and the cut information;
the visual interface is used for receiving the dragging operation of a user on the visual file icon through the visual interface, and the first terminal uploads and/or downloads the file according to the dragging operation; and the user is used for displaying the saved cut file as one file on the visual interface when operating and watching the cut file saved on the terminal receiving the cut file and the cut information through the visual interface.
6. The file cut delivery device of claim 5, wherein the file querying and downloading services of a service module comprise: and displaying file information for downloading according to requests from other terminals, wherein the file information is determined according to the cutting information and the file path information recorded in the database.
7. The file cut delivery device of claim 6, wherein the file querying and downloading service of a service module further comprises: and transmitting the cutting file to the terminal which sends the request according to the file path information recorded in the database according to the requests from other terminals, and simultaneously transmitting the cutting information to the terminal.
8. The file cutting and transmitting device according to claim 7, wherein the terminal of the synthesizing module receiving the cutting file and the cutting information sorts and merges the cutting file into new files by using a stream file reading mode according to the cutting file and the cutting information, and the file cutting and transmitting device specifically comprises: and sequentially reading from the smallest file, writing into a complete large file each time by using 2M Byte to obtain a new file with the same content as the source file, and naming the new file by using the original file.
9. An electronic device, comprising: a processor and a memory storing computer executable instructions that, when executed, cause the processor to perform the method of any of claims 1-4.
10. A computer-readable storage medium, comprising: the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-4.
CN201911330794.7A 2019-12-20 2019-12-20 File cutting and transmitting method and device and electronic equipment Active CN111193785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330794.7A CN111193785B (en) 2019-12-20 2019-12-20 File cutting and transmitting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330794.7A CN111193785B (en) 2019-12-20 2019-12-20 File cutting and transmitting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111193785A CN111193785A (en) 2020-05-22
CN111193785B true CN111193785B (en) 2023-05-02

Family

ID=70709330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330794.7A Active CN111193785B (en) 2019-12-20 2019-12-20 File cutting and transmitting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111193785B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254402B (en) * 2021-05-18 2022-08-30 福州理工学院 Shared file management method and storage medium
CN116074306A (en) * 2022-12-28 2023-05-05 西藏宁算科技集团有限公司 File uploading and downloading method, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005011119A (en) * 2003-06-19 2005-01-13 Hitachi Software Eng Co Ltd Data transfer method
JP2008258755A (en) * 2007-04-02 2008-10-23 Hitachi Ltd File transmission / reception method and system
WO2012122543A1 (en) * 2011-03-09 2012-09-13 Sirius XM Radio, Inc. System and method for increasing transmission bandwidth efficiency
CN106557518A (en) * 2015-09-29 2017-04-05 北大方正集团有限公司 A kind of method for transmitting file, device and terminal
JP2018073064A (en) * 2016-10-27 2018-05-10 合同会社サクセスナレッジ File division and combination system and method thereof

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833294B (en) * 2011-06-17 2015-05-20 阿里巴巴集团控股有限公司 File processing method and system based on cloud storage, and server cluster system
CN102739791B (en) * 2012-06-28 2017-04-05 北京奇虎科技有限公司 A kind of download of file, method for uploading and device
CN103442090B (en) * 2013-09-16 2016-08-17 苏州市职业大学 A kind of cloud computing system of data dispersion storage
CN105095300A (en) * 2014-05-16 2015-11-25 阿里巴巴集团控股有限公司 Method and system for database backup
CN104378422A (en) * 2014-11-13 2015-02-25 中国联合网络通信有限公司保定市分公司 Mobile terminal and file transmission method and system thereof
CN104468843A (en) * 2014-12-31 2015-03-25 浪潮软件股份有限公司 File uploading method and device
CN106294585B (en) * 2016-07-28 2019-10-18 上海倍增智能科技有限公司 Storage method under a cloud computing platform
CN106657213B (en) * 2016-09-14 2020-04-07 深圳峰创智诚科技有限公司 File transmission method and device
CN108234539B (en) * 2016-12-14 2022-06-03 北京金山云网络技术有限公司 File uploading, downloading and transmitting method and device
CN108933805A (en) * 2017-05-26 2018-12-04 武汉斗鱼网络科技有限公司 A kind of document transmission method and system
CN107360254A (en) * 2017-08-22 2017-11-17 北京奇艺世纪科技有限公司 A kind of document down loading method, device, server and terminal
KR102065958B1 (en) * 2017-11-13 2020-02-11 유한회사 이노릭스 Method and system for managing data transfer
CN109040191B (en) * 2018-07-03 2021-11-09 平安科技(深圳)有限公司 File downloading method and device, computer equipment and storage medium
CN110401725A (en) * 2019-08-23 2019-11-01 深圳市鹰硕技术有限公司 File uploading method, device, terminal, server, system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005011119A (en) * 2003-06-19 2005-01-13 Hitachi Software Eng Co Ltd Data transfer method
JP2008258755A (en) * 2007-04-02 2008-10-23 Hitachi Ltd File transmission / reception method and system
WO2012122543A1 (en) * 2011-03-09 2012-09-13 Sirius XM Radio, Inc. System and method for increasing transmission bandwidth efficiency
CN106557518A (en) * 2015-09-29 2017-04-05 北大方正集团有限公司 A kind of method for transmitting file, device and terminal
JP2018073064A (en) * 2016-10-27 2018-05-10 合同会社サクセスナレッジ File division and combination system and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
弯弯.新版文件分割器上手指南.电脑技术.2002,(10),全文. *

Also Published As

Publication number Publication date
CN111193785A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
WO2022002066A1 (en) Method and apparatus for browsing table in document, and electronic device and storage medium
US9848064B2 (en) Generation and distribution of named, definable, serialized tokens
US20140025695A1 (en) Methods and apparatus for providing unified access to various data resources using virtualized services
WO2023207543A1 (en) Media content publishing method and apparatus, and device, storage medium and program product
CN109492200A (en) Cooperated documents restoring method, device, storage medium and electronic equipment
US10956026B2 (en) Smart element filtering method via gestures
CN108055298A (en) Method and device for controlling message queue
CN111193785B (en) File cutting and transmitting method and device and electronic equipment
JP2022091904A (en) Mini program page skin changeover method, device, and electronic apparatus
WO2023092580A1 (en) Page display method and apparatus, storage medium, and electronic device
CN114047986A (en) Form generation method, form data processing method and device and electronic equipment
CN112256370B (en) Information display method, device and electronic equipment
WO2025020959A1 (en) Data backup method and apparatus, data export method and apparatus, data recovery method and apparatus, and device and medium
CN113779122B (en) Method and device for exporting data
CN112394907A (en) Container-based delivery system construction method, application delivery method and delivery system
WO2013148023A1 (en) Proxying an active link from a shared computer
US11157138B2 (en) Thumbnail generation for digital images
CN110704766A (en) Interface rendering optimization method and device based on real-time snapshot and electronic equipment
CN114997115B (en) Document processing method, device, equipment and medium
US10242111B2 (en) Node controllers for hierarchical data structures
JP2025503655A (en) Group member addition method, apparatus, device, and medium
CN112688793B (en) Data packet obtaining method and device and electronic equipment
US11366613B2 (en) Method and apparatus for writing data
US20170249169A1 (en) Dynamic assistant for applications based on pattern analysis
US20210141562A1 (en) Output management in command line interface

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