File downloading method and device based on cloud storage service, medium and equipment
By instantiating compressed streams in cloud storage services and utilizing distributed network addresses for file download, the limitations of file download size and low efficiency in existing technologies are solved, achieving efficient file download and cost savings.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DRAFT (XIAMEN) INFORMATION SERVICE CO LTD
- Filing Date
- 2022-11-07
- Publication Date
- 2026-04-21
AI Technical Summary
Existing technologies for file downloading have size limitations and low efficiency. How can we improve download efficiency and save costs without limiting file size?
By receiving content download requests from the target terminal, the system obtains the virtual path and storage address of the target download content, instantiates a compressed stream, writes the download stream into the compressed stream, re-uploads it to the cloud storage server, and provides a download address containing a distributed network address for the terminal to download.
It enables simultaneous downloading and compression of the target content, improving download efficiency and saving bandwidth costs, without the need to limit file size.
Smart Images

Figure CN115695416B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of computer and communication technology, and more specifically, to a file download method, apparatus, medium, and device based on cloud storage services. Background Technology
[0002] With the development of internet technology, network storage applications are becoming increasingly widespread. Users can upload and download files anytime, anywhere, manage files stored online, and share files with others, bringing numerous conveniences. However, current web-based file downloads often limit the size of downloadable files and suffer from low download efficiency. Therefore, improving download efficiency and reducing costs without limiting downloadable file size has become a pressing technical challenge. Summary of the Invention
[0003] The embodiments of this application provide a file download method, apparatus, medium, and device based on cloud storage services, which can at least to some extent improve file download efficiency and save download costs without limiting the size of downloadable files.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to one aspect of the embodiments of this application, a file download method based on cloud storage service is provided, the method comprising:
[0006] Receive a content download request sent by a target terminal, wherein the content download request includes a content identifier of the target download content;
[0007] Based on the content identifier of the target download content, obtain the content information corresponding to the target download content, the content information including the virtual path and storage address corresponding to the target download content;
[0008] Based on the storage address, obtain the download stream corresponding to the target download content from the cloud storage server;
[0009] Instantiate a compressed stream, and write the download stream into the compressed stream according to the virtual path;
[0010] The compressed stream is re-uploaded to the cloud storage server, and the download address corresponding to the compressed stream is received from the cloud storage server. The download address contains address information of the distributed network.
[0011] The download address is fed back to the target terminal so that the target terminal can resend the content download request to the distributed network using the download address.
[0012] According to one aspect of the embodiments of this application, a file download device based on cloud storage service is provided, the device comprising:
[0013] The receiving module is used to receive a content download request sent by the target terminal, wherein the content download request includes a content identifier of the target download content;
[0014] The first acquisition module is used to acquire content information corresponding to the target download content based on the content identifier of the target download content. The content information includes the virtual path and storage address corresponding to the target download content.
[0015] The second acquisition module is used to acquire the download stream corresponding to the target download content from the cloud storage server according to the storage address;
[0016] A compression module is used to instantiate a compressed stream and write the download stream into the compressed stream according to the virtual path;
[0017] The return module is used to re-upload the compressed stream to the cloud storage server and receive the download address corresponding to the compressed stream from the cloud storage server, wherein the download address contains address information of the distributed network.
[0018] The processing module is used to send the download address back to the target terminal, so that the target terminal can resend the content download request to the distributed network using the download address.
[0019] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the file download method based on cloud storage services as described in the above embodiments.
[0020] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the file download method based on cloud storage services as described in the above embodiments.
[0021] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the file download method based on cloud storage services provided in the above embodiments.
[0022] In some embodiments of this application, the technical solutions involve receiving a content download request sent by a target terminal. This content download request includes a content identifier of the target download content. Based on the content identifier, the corresponding content information is obtained. This content information includes the virtual path and storage address of the target download content. Based on the storage address, the download stream corresponding to the target download content is obtained from the cloud storage server. A compressed stream is then instantiated, and the download stream is written into the compressed stream according to the virtual path. The compressed stream is then re-uploaded to the cloud storage server. The download address corresponding to the compressed stream, which contains the address information of the distributed network, is received from the cloud storage server. This download address is then fed back to the target terminal so that the target terminal can resend the content download request to the distributed network using the download address.
[0023] Therefore, by using both download and compression streams, the download and compression of the target content can be performed simultaneously. The compressed stream is then re-uploaded to the cloud storage server, generating a corresponding download address containing distributed network address information. This allows the target terminal to initiate a content download request to the distributed network to download the corresponding content from the nearest distributed network node, thereby improving file download efficiency. Furthermore, downloading through distributed network nodes, even when returning to the origin server, utilizes its internal network, saving bandwidth costs and eliminating restrictions on the size of the downloaded file.
[0024] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0025] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0026] Figure 1 A flowchart illustrating a file download method based on cloud storage service according to an embodiment of this application is shown;
[0027] Figure 2 A block diagram of a file download apparatus based on cloud storage service according to an embodiment of this application is shown;
[0028] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0029] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0030] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0031] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0032] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0033] Figure 1 The diagram illustrates a flowchart of a file download method based on cloud storage services according to an embodiment of this application. This method can be applied to a server, which can be a physical server or a cloud server providing various cloud services. It should be noted that the server can be a single server or a server cluster composed of multiple servers; no particular limitation is made in this regard.
[0034] Reference Figure 1As shown, this file download method based on cloud storage service includes at least steps S110 to S160, which are described in detail below:
[0035] In step S110, a content download request sent by the target terminal is received, wherein the content download request includes the content identifier of the target download content.
[0036] Specifically, users can browse and manage the file storage space on a web page. When a download is needed, the user can select the content to be downloaded to generate a download request and send it to the server. This download request can include the content identifier of the target content, such as the filename or number. Upon receiving the download request, the server can parse it to obtain the content identifier of the target content.
[0037] In step S120, based on the content identifier of the target download content, the content information corresponding to the target download content is obtained, and the content information includes the virtual path and storage address corresponding to the target download content.
[0038] Specifically, the server can query the correspondence between the content identifier and the content information based on the content identifier of the target download content, thereby determining the content information corresponding to the target download content. This content information may include, but is not limited to, the virtual path and storage address corresponding to the target download content. The virtual path may be used to describe the storage directory of the target download content, and the storage address may be a network link, which allows access to the corresponding target download content.
[0039] In step S130, the download stream corresponding to the target download content is obtained from the cloud storage server according to the storage address.
[0040] In step S140, a compressed stream is instantiated, and the download stream is written into the compressed stream according to the virtual path.
[0041] Specifically, the server can create a compressed stream and write the acquired download stream into it based on the virtual path. Thus, when a user downloads the compressed stream, the original folder structure of the target download content can be preserved. Furthermore, by writing the download stream into the compressed stream, compression can be performed while downloading, improving the transmission efficiency of the target download content.
[0042] In step S150, the compressed stream is re-uploaded to the cloud storage server, and the download address corresponding to the compressed stream is received from the cloud storage server. The download address contains address information of the distributed network.
[0043] In this embodiment, when compression begins, the server can re-upload the compressed stream to the cloud storage server. After receiving the compressed stream, the cloud storage server can generate a download address corresponding to the compressed stream and send the download address back to the server. It is worth noting that when the cloud storage server starts receiving the compressed stream, it does not need to wait for the compressed stream to finish uploading; it can immediately send the download address back to the server for the user to download. This allows for simultaneous acquisition and compression of the download stream, simultaneous compression of the target download file and uploading to the cloud storage server, and simultaneous uploading to the cloud storage server and downloading by the user, improving the transmission efficiency of the target download content.
[0044] The download address may contain address information of a distributed network, which may be a content delivery network or other network with multiple network nodes. The address information may be the domain name or IP address of the distributed network, without any special restrictions.
[0045] In step S160, the download address is fed back to the target terminal so that the target terminal can resend the content download request to the distributed network through the download address.
[0046] In this embodiment, the server can send the download address returned by the cloud storage server back to the target terminal. Based on the download address, the target terminal can resend the content download request to the distributed network to obtain the target download content from the distributed network. Thus, downloading through the distributed network allows for the selection of the nearest distributed network node for downloading, improving transmission efficiency. Furthermore, there is no need to limit the size of the downloaded file, enhancing the user experience.
[0047] In one embodiment of this application, the target download content includes a target download folder and / or a target download file;
[0048] Then, based on the content identifier of the target download content, the content information corresponding to the target download content is obtained, including:
[0049] Based on the folder identifier of the target download folder, obtain the file information corresponding to all sub-files under the target download folder;
[0050] and / or
[0051] Based on the file identifier of the target download file, obtain the file information corresponding to the target download file.
[0052] In this embodiment, the target download content may include a target download folder and / or a target download file; that is, the user can download either a folder or a single file. In this case, the content download request may include the folder identifier of the target download folder and the file identifier of the target download file.
[0053] Therefore, for a target download folder, the server can obtain the file information of all sub-files (including files in subfolders) contained in the target download folder based on the folder identifier, and for a target download file, the server can obtain the file information corresponding to the target download file based on the file identifier.
[0054] Based on the foregoing embodiments, in one embodiment of this application, the target download content includes a target download folder and a target download file;
[0055] After obtaining the content information corresponding to the target download content based on the content identifier of the target download content, the method further includes:
[0056] Based on the file information corresponding to all sub-files in the target download folder and the file information of the target download file, deduplication is performed on the sub-files and the target download file.
[0057] In this embodiment, when a user downloads both a folder and a file simultaneously, after obtaining the file information corresponding to all sub-files under the target download folder and the file information corresponding to the target download file, the user can compare the two. That is, the file information of the target download file is compared one by one with the file information corresponding to all sub-files under the target download folder, thereby deduplicating duplicate files and preventing them from being downloaded repeatedly. This saves the computing resources used for downloading.
[0058] In one embodiment of this application, the content download request further includes a user identifier; then, based on the content identifier of the target download content, obtaining the content information corresponding to the target download content includes:
[0059] Download permission verification is performed based on the user identifier and the content identifier of the target download content;
[0060] If the download permission verification is passed, the content information corresponding to the target download content is obtained based on the content identifier of the target download content.
[0061] In this embodiment, the content download request may also include a user identifier, such as a user account. The server then performs download permission verification based on the user identifier and the content identifier of the target download content. In one example, the server can query the permission information corresponding to the target download content based on its content identifier, such as the uploader's information and the allowed download range. This allows the server to determine whether the user identifier falls within the allowed download range of the target download content. If it does, the download permission verification passes; otherwise, it fails. Only after passing the download permission verification does the server obtain the content information corresponding to the target download content, thus ensuring the security of the stored files.
[0062] In one example, a user can be restricted to downloading only files they have previously uploaded. In this case, the server can compare the user's identifier with the uploader information of the target download content. If they match, the download is allowed; if they do not match, the download is rejected.
[0063] Based on the technical solutions of the above embodiments, the following describes a specific application scenario of an embodiment of this application:
[0064] This application also provides a file download system based on cloud storage services, which includes compression services, digital asset services, asset mapping relationship storage services, acceleration services, and file cloud storage services.
[0065] The compression service provides an interface for interaction with the target terminal, allowing users to interact with the compression service through the target terminal. The digital asset service verifies permissions for files downloaded by the user. The asset mapping storage service stores and queries the correspondence between file identifiers and file information. The acceleration service, or content delivery network, provides download acceleration services. The file cloud storage service provides file storage functionality.
[0066] Based on the above system, in one embodiment of this application, the file download method based on cloud storage service includes the following steps:
[0067] Step S210: The user selects the files and folders to be downloaded in a package and clicks download;
[0068] In step S220, the compression service receives the user's download request and performs relevant download permission verification in the digital asset service based on the file identifier and folder identifier contained in the download request.
[0069] In step S230, after the download permission is verified, the asset mapping relationship storage service queries the file information of all sub-files under the folder based on the folder identifier, then queries the corresponding file information based on the file identifier, and performs deduplication based on the two.
[0070] In step S240, the compression service extracts the virtual path and storage address of the file from the file information, and obtains the download stream of the corresponding file from the file cloud storage service based on the storage address.
[0071] Step S250: The compression service instantiates a compression stream and writes the download stream of the corresponding file into the corresponding compression stream according to the corresponding virtual path.
[0072] In step S260, the compression service re-uploads the compressed stream to the file cloud storage service and receives the download address returned by the file cloud storage service, so as to send the download address to the target terminal.
[0073] In step S270, the target terminal sends a download request to the acceleration service based on the download address. The acceleration service retrieves the corresponding compressed package from the file cloud storage service and sends it to the target terminal.
[0074] Therefore, by using both download and compression streams, the download and compression of the target content can be performed simultaneously. The compressed stream is then re-uploaded to the cloud storage server, generating a corresponding download address containing distributed network address information. This allows the target terminal to initiate a content download request to the distributed network to download the corresponding content from the nearest distributed network node, thereby improving file download efficiency. Furthermore, downloading through distributed network nodes, even when returning to the origin server, utilizes its internal network, saving bandwidth costs and eliminating restrictions on the size of the downloaded file.
[0075] The following describes an apparatus embodiment of this application, which can be used to execute the file download method based on cloud storage services in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the above embodiments of the file download method based on cloud storage services.
[0076] Figure 2 A block diagram of a file download apparatus based on a cloud storage service according to an embodiment of this application is shown.
[0077] Reference Figure 2 As shown, a file download device based on cloud storage service according to an embodiment of this application includes:
[0078] The receiving module 210 is configured to receive a content download request sent by the target terminal, wherein the content download request includes a content identifier of the target download content;
[0079] The first acquisition module 220 is used to acquire content information corresponding to the target download content based on the content identifier of the target download content. The content information includes the virtual path and storage address corresponding to the target download content.
[0080] The second acquisition module 230 is used to acquire the download stream corresponding to the target download content from the cloud storage server according to the storage address;
[0081] Compression module 240 is used to instantiate a compressed stream and write the download stream into the compressed stream according to the virtual path;
[0082] The return module 250 is used to re-upload the compressed stream to the cloud storage server and receive the download address corresponding to the compressed stream from the cloud storage server, wherein the download address contains address information of the distributed network.
[0083] The processing module 260 is used to send the download address back to the target terminal so that the target terminal can resend the content download request to the distributed network through the download address.
[0084] In one embodiment of this application, the target download content includes a target download folder and / or a target download file; then the first acquisition module 220 is used to: acquire file information corresponding to all sub-files under the target download folder according to the folder identifier of the target download folder; and / or acquire file information corresponding to the target download file according to the file identifier of the target download file.
[0085] In one embodiment of this application, the target download content includes a target download folder and a target download file; then, after obtaining the content information corresponding to the target download content based on the content identifier of the target download content, the first obtaining module 220 is further configured to: perform deduplication processing on the sub-files and the target download file based on the file information corresponding to all sub-files under the target download folder and the file information of the target download file.
[0086] In one embodiment of this application, the content download request further includes a user identifier; the first acquisition module 220 is configured to: perform download permission verification based on the user identifier and the content identifier of the target download content; if the download permission verification is passed, then obtain the content information corresponding to the target download content based on the content identifier of the target download content.
[0087] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0088] It should be noted that, Figure 3 The computer system of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0089] like Figure 3As shown, the computer system includes a Central Processing Unit (CPU) 301, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 302 or programs loaded from storage portion 308 into Random Access Memory (RAM) 303, such as performing the methods described in the above embodiments. The RAM 303 also stores various programs and data required for system operation. The CPU 301, ROM 302, and RAM 303 are interconnected via a bus 304. An Input / Output (I / O) interface 305 is also connected to the bus 304.
[0090] The following components are connected to I / O interface 305: an input section 306 including a keyboard, mouse, etc.; an output section 307 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to I / O interface 305 as needed. Removable media 311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 310 as needed so that computer programs read from them can be installed into storage section 308 as needed.
[0091] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 309, and / or installed from removable medium 311. When the computer program is executed by central processing unit (CPU) 301, it performs various functions defined in the system of this application.
[0092] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0094] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0095] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0096] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0097] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0098] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0099] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A file download method based on cloud storage service, characterized in that, include: Receive a content download request sent by a target terminal, wherein the content download request includes a content identifier of the target download content; Based on the content identifier of the target download content, obtain the content information corresponding to the target download content. The content information includes the virtual path and storage address corresponding to the target download content. The virtual path is used to describe the storage directory of the target download content, and the storage address is a network link used to access the corresponding target content. Based on the storage address, obtain the download stream corresponding to the target download content from the cloud storage server; Instantiate a compressed stream, and write the download stream into the compressed stream according to the virtual path to achieve compression while downloading; The compressed stream is re-uploaded to the cloud storage server, and the download address corresponding to the compressed stream is received from the cloud storage server. The download address contains address information of the distributed network. The download address is fed back to the target terminal so that the target terminal can resend the content download request to the distributed network using the download address.
2. The method according to claim 1, characterized in that, The target download content includes the target download folder and / or the target download file; Then, based on the content identifier of the target download content, the content information corresponding to the target download content is obtained, including: Based on the folder identifier of the target download folder, obtain the file information corresponding to all sub-files under the target download folder; and / or Based on the file identifier of the target download file, obtain the file information corresponding to the target download file.
3. The method according to claim 2, characterized in that, The target download content includes the target download folder and the target download file; After obtaining the content information corresponding to the target download content based on the content identifier of the target download content, the method further includes: Based on the file information corresponding to all sub-files in the target download folder and the file information of the target download file, deduplication is performed on the sub-files and the target download file.
4. The method according to any one of claims 1-3, characterized in that, The content download request also includes a user identifier; Then, based on the content identifier of the target download content, the content information corresponding to the target download content is obtained, including: Download permission verification is performed based on the user identifier and the content identifier of the target download content; If the download permission verification is passed, the content information corresponding to the target download content is obtained based on the content identifier of the target download content.
5. A file download device based on cloud storage service, characterized in that, include: The receiving module is used to receive a content download request sent by the target terminal, wherein the content download request includes a content identifier of the target download content; The first acquisition module is used to acquire content information corresponding to the target download content based on the content identifier of the target download content. The content information includes a virtual path and a storage address corresponding to the target download content. The virtual path is a storage directory used to describe the target download content, and the storage address is a network link used to access the corresponding target content. The second acquisition module is used to acquire the download stream corresponding to the target download content from the cloud storage server according to the storage address; A compression module is used to instantiate a compressed stream and write the download stream into the compressed stream according to the virtual path, so as to achieve compression while downloading; The return module is used to re-upload the compressed stream to the cloud storage server and receive the download address corresponding to the compressed stream from the cloud storage server, wherein the download address contains address information of the distributed network. The processing module is used to send the download address back to the target terminal, so that the target terminal can resend the content download request to the distributed network using the download address.
6. The apparatus according to claim 5, characterized in that, The target download content includes a target download folder and / or a target download file; therefore, the first acquisition module is used for: Based on the folder identifier of the target download folder, obtain the file information corresponding to all sub-files under the target download folder; and / or Based on the file identifier of the target download file, obtain the file information corresponding to the target download file.
7. The apparatus according to claim 6, characterized in that, The target download content includes the target download folder and the target download file; After obtaining the content information corresponding to the target download content based on the content identifier of the target download content, the first obtaining module is further configured to: Based on the file information corresponding to all sub-files in the target download folder and the file information of the target download file, deduplication is performed on the sub-files and the target download file.
8. The apparatus according to any one of claims 5-7, characterized in that, The content download request also includes a user identifier; The first acquisition module is used for: Download permission verification is performed based on the user identifier and the content identifier of the target download content; If the download permission verification is passed, the content information corresponding to the target download content is obtained based on the content identifier of the target download content.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the file download method based on cloud storage service as described in any one of claims 1 to 4.
10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the file download method based on a cloud storage service as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system of file downloading of mobile terminal
CN103067523A
Server-side multifile downloading method and system
CN103888513A
File downloading method and system
CN107528865A
File downloading method and device, client and computer readable storage medium
CN110661829A
File downloading method, server, client and storage medium
CN112231603A