CN115695416A - File downloading method, device, medium and equipment based on cloud storage service - Google Patents

File downloading method, device, medium and equipment based on cloud storage service Download PDF

Info

Publication number
CN115695416A
CN115695416A CN202211386606.4A CN202211386606A CN115695416A CN 115695416 A CN115695416 A CN 115695416A CN 202211386606 A CN202211386606 A CN 202211386606A CN 115695416 A CN115695416 A CN 115695416A
Authority
CN
China
Prior art keywords
content
download
target
file
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211386606.4A
Other languages
Chinese (zh)
Inventor
周禄飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Draft Xiamen Information Service Co ltd
Original Assignee
Draft Xiamen Information Service 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 Draft Xiamen Information Service Co ltd filed Critical Draft Xiamen Information Service Co ltd
Priority to CN202211386606.4A priority Critical patent/CN115695416A/en
Publication of CN115695416A publication Critical patent/CN115695416A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the application provides a file downloading method, device, medium and equipment based on cloud storage service. The method comprises the following steps: receiving a content downloading request sent by a target terminal, wherein the content downloading request comprises a content identifier of target downloading content; acquiring content information corresponding to target downloading content, wherein the content information comprises a virtual path and a storage address corresponding to the target downloading content; according to the storage address, acquiring a download stream corresponding to the target download content from the cloud storage server; instantiating a compressed stream, and writing the download stream into the compressed stream according to the virtual path; the compressed stream is uploaded to the cloud storage server again, and a download address fed back by the cloud storage server is received, wherein the download address comprises address information of the distributed network; and feeding back the download address to the target terminal. According to the technical scheme of the embodiment of the application, the file downloading efficiency can be improved and the downloading cost can be saved while the size of the downloadable file is not limited.

Description

File downloading method, device, medium and equipment based on cloud storage service
Technical Field
The application relates to the technical field of computers and communication, in particular to a file downloading method, device, medium and equipment based on cloud storage service.
Background
With the development of internet technology, the application of network storage is more and more extensive, and a user can upload files to be stored in the internet at any time and any place, also can download files from the internet, manage the files stored in the internet, and also can share the files stored in the internet with other people, thereby bringing convenience. In the current technical solution, the size of the downloaded file is often limited for the file downloading in the web mode, and the downloading efficiency is low. Therefore, how to improve the file downloading efficiency and save the downloading cost without limiting the size of the downloadable file becomes an urgent technical problem to be solved.
Disclosure of Invention
Embodiments of the present application provide a file downloading method, apparatus, medium, and device based on a cloud storage service, so that file downloading efficiency can be improved and downloading cost can be saved to at least a certain extent while the size of a downloadable file is not limited.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a file downloading method based on a cloud storage service, the method including:
receiving a content downloading request sent by a target terminal, wherein the content downloading request comprises a content identifier of target downloading content;
acquiring content information corresponding to the target downloading content according to the content identification of the target downloading content, wherein the content information comprises a virtual path and a storage address corresponding to the target downloading content;
according to the storage address, acquiring a download stream corresponding to the target download content from a cloud storage server;
instantiating a compressed stream, and writing the download stream into the compressed stream according to the virtual path;
the compressed stream is uploaded to the cloud storage server again, and a download address which is fed back by the cloud storage server and corresponds to the compressed stream is received, wherein the download address comprises address information of a distributed network;
and feeding back the download address to the target terminal so that the target terminal can send a content download request to the distributed network again through the download address.
According to an aspect of an embodiment of the present application, there is provided a file downloading apparatus based on a cloud storage service, the apparatus including:
the receiving module is used for receiving a content downloading request sent by a target terminal, wherein the content downloading request comprises a content identifier of target downloading content;
a first obtaining module, configured to obtain content information corresponding to the target download content according to a content identifier of the target download content, where the content information includes a virtual path and a storage address corresponding to the target download content;
the second acquisition module is used for acquiring a download stream corresponding to the target download content from a cloud storage server according to the storage address;
the compression module is used for instantiating a compression stream and writing the download stream into the compression stream according to the virtual path;
the return module is used for re-uploading the compressed stream to the cloud storage server and receiving a download address which is fed back by the cloud storage server and corresponds to the compressed stream, wherein the download address comprises address information of a distributed network;
and the processing module is used for feeding back the download address to the target terminal so that the target terminal can send a content download request to the distributed network again through the download address.
According to an aspect of the embodiments of the present application, there is provided a computer readable medium, on which a computer program is stored, the computer program, when executed by a processor, implements a file downloading method based on a cloud storage service as described in the above embodiments.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the file download method based on the cloud storage service as described in the above embodiments.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and executes the computer instructions, so that the computer device executes the file downloading method based on the cloud storage service provided in the above embodiments.
In the technical solutions provided in some embodiments of the present application, a content download request sent by a target terminal is received, where the content download request includes a content identifier of a target download content, and content information corresponding to the content identifier is obtained according to the content identifier, where the content information includes a virtual path and a storage address of the target download content, and according to the storage address, a download stream corresponding to the target download content is obtained from a cloud storage server, and a compressed stream is instantiated, and the download stream is written into the compressed stream according to the virtual path, and the compressed stream is uploaded to the cloud storage server again, and a download address corresponding to the compressed stream and fed back by the cloud storage server is received, where the download address includes address information of a distributed network, and the download address is fed back to the target terminal so that the target terminal sends the content download request to the distributed network again through the download address.
Therefore, through the download stream and the compression stream, the download and compression of the target download content can be synchronously performed, the compression stream is uploaded to the cloud storage server again, and the corresponding download address containing the address information of the distributed network is generated, so that the target terminal can initiate a content download request to the distributed network to download the corresponding content from the nearby distributed network node, and the download efficiency of the file can be improved. In addition, the downloading is carried out through the distributed network nodes, even if the source returns, the internal network is adopted, certain bandwidth cost can be saved, and the size of the downloaded file does not need to be limited.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 shows a schematic flowchart of a file downloading method based on a cloud storage service according to an embodiment of the present application;
fig. 2 shows a block diagram of a file downloading device based on a cloud storage service according to an embodiment of the present application;
FIG. 3 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the embodiments of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a flowchart of a file downloading method based on a cloud storage service according to an embodiment of the present application, where the method may be applied to a server, which may be a physical server or a cloud server providing various cloud services. The server may be a single server or a server cluster composed of a plurality of servers, and is not particularly limited.
Referring to fig. 1, the file downloading method based on the cloud storage service at least includes steps S110 to S160, which are described in detail as follows:
in step S110, a content download request sent by a target terminal is received, where the content download request includes a content identifier of a target download content.
Specifically, a user may browse a file storage space in a web page and manage files stored within the file storage space. When downloading is needed, the user may check the content to be downloaded to generate a content downloading request, and send the content downloading request to the server, where the content downloading request may include a content identifier, such as a file name or a number, of the target downloaded content. Therefore, after receiving the content downloading request, the server can analyze the content downloading request to acquire the content identification of the target downloading content.
In step S120, content information corresponding to the target download content is obtained according to the content identifier of the target download content, where the content information includes a virtual path and a storage address corresponding to the target download content.
Specifically, the server may query a content identifier corresponding to the target download content according to a content identifier of the target download content, so as to determine content information corresponding to the target download content, where the content information may include, but is not limited to, a virtual path and a storage address corresponding to the target download content, where the virtual path may be used to describe a storage directory of the target download content, and the storage address may be a network link, and the corresponding target download content may be accessed according to the storage address.
In step S130, according to the storage address, a download stream corresponding to the target download content is acquired from a cloud storage server.
In step S140, a compressed stream is instantiated, and the download stream is written into the compressed stream according to the virtual path.
Specifically, the server may create a compressed stream, and write the obtained download stream into the compressed stream according to the virtual path, so that when the user downloads the compressed stream, the original folder structure of the target download content may be saved. And the downloading stream is written into the compression stream, so that a mode of compressing while downloading can be realized, and the transmission efficiency of the target downloading content is improved.
In step S150, the compressed stream is uploaded to the cloud storage server again, and a download address corresponding to the compressed stream and fed back by the cloud storage server is received, where the download address includes address information of a distributed network.
In this embodiment, when compression is started, the server may upload the compressed stream to the cloud storage server again, and after receiving the compressed stream, the cloud storage server may generate a download address corresponding to the compressed stream and feed back the download address to the server. It is worth noting that when the cloud storage server starts to receive the compressed stream, the download address can be fed back to the server for the user to download without waiting for the completion of uploading of the compressed stream, so that the compression while downloading the stream, the uploading of the cloud storage server while compressing the target download file, and the downloading of the cloud storage server while uploading the target download file can be realized, and the transmission efficiency of the target download content is improved.
The download address may include address information of a distribution network, which may be a content distribution network or other network having a plurality of network nodes, and the address information may be a domain name or an IP address of the distribution network, which is not limited in particular.
In step S160, the download address is fed back to the target terminal, so that the target terminal can send a content download request to the distributed network again through the download address.
In this embodiment, the server may feed back the download address fed back by the cloud storage server to the target terminal, and the target terminal may send a content download request to the distributed network again according to the download address to obtain the target download content from the distributed network.
In one embodiment of the present application, the target download content includes a target download folder and/or a target download file;
then, according to the content identifier of the target download content, acquiring content information corresponding to the target download content, including:
acquiring file information corresponding to all subfiles under the target downloading folder according to the folder identification of the target downloading folder;
and/or
And acquiring file information corresponding to the target download file according to the file identifier of the target download file.
In this embodiment, the target download content may include a target download folder and/or a target download file, i.e., the user may download for the folder or for a single file. At this time, the content download request may include a folder identifier of the target download folder and a file identifier of the target download file.
Therefore, for a target download folder, the server may obtain file information of all subfiles (including files in the subfolders) included in the target download folder according to the folder identifier, and for the target download file, the server may obtain file information corresponding to the target download file according to the file identifier.
Based on the foregoing embodiments, in one embodiment of the present application, the target download content includes a target download folder and a target download file;
after acquiring the content information corresponding to the target download content according to the content identifier of the target download content, the method further includes:
and according to the file information corresponding to all the subfiles in the target download folder and the file information of the target download file, carrying out duplicate removal processing on the subfiles and the target download file.
In this embodiment, when the user downloads the folder and the file at the same time, after obtaining the file information corresponding to all the subfiles in the target download folder and the file information corresponding to the target download file, the user may compare the file information corresponding to all the subfiles in the target download folder with the file information corresponding to all the subfiles in the target download folder one by one, so as to perform deduplication processing on repeated files, that is, perform no repeated downloading subsequently, thereby saving the computing resources occupied by the downloading.
In one embodiment of the present application, the content download request further includes a user identification; acquiring content information corresponding to the target download content according to the content identifier of the target download content, including:
carrying out downloading authority verification according to the user identification and the content identification of the target downloading content;
and if the verification passes the download authority, acquiring content information corresponding to the target download content according to the content identifier of the target download content.
In this embodiment, the content download request may further include a user identifier, such as a user account, and the server performs a download permission check according to the user identifier and a content identifier of the target download content. In an example, the server may query, according to the content identifier of the target download content, right information corresponding to the target download content, such as information of an uploader, an allowable download range, and the like. Therefore, whether the user identification is in accordance with the allowable downloading range of the target downloading content or not can be determined, if yes, the user identification passes the downloading permission verification, and if not, the user identification does not pass the downloading permission verification. And after the download authority is verified, the server acquires the content information corresponding to the target download content. Thereby ensuring the security of the stored files.
In an example, the user may only download files that are uploaded by the user in history, and at this time, the server may compare the user identifier with the uploader information of the target download content, and allow the download if the user identifier is the same as the uploader information of the target download content, and refuse the download if the user identifier is different from the uploader information of the target download content.
Based on the technical solution of the above embodiment, a specific application scenario of the embodiment of the present application is introduced as follows:
the embodiment of the application further provides a file downloading system based on the cloud storage service, and the system comprises a compression service, a digital asset service, an asset mapping relation storage service, an acceleration service and a file cloud storage service.
The compression service is used for providing an interface for interacting with the target terminal, and a user can interact with the compression service through the target terminal. The digital asset service is used for carrying out authority verification on files required to be downloaded by a user. The asset mapping relation storage service is used for storing and inquiring the corresponding relation between the file identification and the file information. The acceleration service is a content distribution network for providing a download acceleration service. The file cloud storage service is used for providing a file storage function.
Based on the system, in one embodiment of the application, the file downloading method based on the cloud storage service includes the following steps:
step S210, a user selects files and folders to be packaged and downloaded, and clicks and downloads;
step S220, the compression service receives the download request of the user, and performs relevant download authority verification in the digital asset service according to the file identification and the folder identification contained in the download request.
Step S230, after the download authority is verified, the asset mapping relation storage service inquires the file information of all subfiles under the folder according to the folder identifier, inquires the corresponding file information according to the file identifier, and performs duplicate removal processing according to the file information and the folder identifier.
Step S240, the compression service extracts the virtual path and the storage address of the file in the file information, and obtains the download stream of the corresponding file from the file cloud storage service according to the storage address.
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.
Step S260, the compression service uploads the compression stream to the file cloud storage service again, and receives a download address returned by the file cloud storage service, so as to send the download address to the target terminal.
In step S270, the target terminal sends a download request to the acceleration service according to the download address, and the acceleration service obtains the corresponding compressed packet from the file cloud storage service and sends the compressed packet to the target terminal.
Therefore, through the download stream and the compression stream, the download and the compression of the target download content can be synchronously performed, the compression stream is uploaded to the cloud storage server again, the corresponding download address containing the address information of the distributed network is generated, the target terminal can initiate a content download request to the distributed network so as to download the corresponding content from the nearby distributed network node, and the download efficiency of the file can be improved. In addition, the downloading is carried out through the distributed network nodes, even if the source returns, the internal network is adopted, certain bandwidth cost can be saved, and the size of the downloaded file does not need to be limited.
The following describes an embodiment of an apparatus of the present application, which may be used to execute a file downloading method based on a cloud storage service in the foregoing embodiment of the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the file downloading method based on the cloud storage service described above in the present application.
Fig. 2 shows a block diagram of a file downloading apparatus based on a cloud storage service according to an embodiment of the present application.
Referring to fig. 2, a file downloading apparatus based on a cloud storage service according to an embodiment of the present application includes:
a receiving module 210, configured to receive a content download request sent by a target terminal, where the content download request includes a content identifier of a target download content;
a first obtaining module 220, configured to obtain content information corresponding to the target download content according to a content identifier of the target download content, where the content information includes a virtual path and a storage address corresponding to the target download content;
a second obtaining module 230, configured to obtain, according to the storage address, a download stream corresponding to the target download content from a cloud storage server;
a compression module 240, configured to instantiate a compressed stream, and write the download stream into the compressed stream according to the virtual path;
a back-transmission module 250, configured to upload the compressed stream to the cloud storage server again, and receive a download address corresponding to the compressed stream and fed back by the cloud storage server, where the download address includes address information of a distributed network;
and the processing module 260 is configured to feed back the download address to the target terminal, so that the target terminal sends a content download request to the distributed network again through the download address.
In one embodiment of the present application, the target download content includes a target download folder and/or a target download file; the first obtaining module 220 is configured to: acquiring file information corresponding to all subfiles under the target download folder according to the folder identifier of the target download folder; and/or acquiring file information corresponding to the target download file according to the file identifier of the target download file.
In one embodiment of the present application, the target download content includes a target download folder and a target download file; after acquiring the content information corresponding to the target download content according to the content identifier of the target download content, the first acquiring module 220 is further configured to: and according to the file information corresponding to all the subfiles in the target download folder and the file information of the target download file, carrying out duplicate removal processing on the subfiles and the target download file.
In one embodiment of the present application, the content download request further includes a user identification; the first obtaining module 220 is configured to: carrying out downloading authority verification according to the user identification and the content identification of the target downloading content; and if the verification passes the download authority, acquiring content information corresponding to the target download content according to the content identifier of the target download content.
FIG. 3 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system of the electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the application scope of the embodiments of the present application.
As shown in fig. 3, the computer system includes a Central Processing Unit (CPU) 301, which can perform various appropriate actions and processes, such as performing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 302 or a program loaded from a storage portion 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An Input/Output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 308 including a hard disk and the like; and a communication section 309 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that the computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 309, and/or installed from the removable medium 311. When the computer program is executed by a Central Processing Unit (CPU) 301, various functions defined in the system of the present application are executed.
It should be noted that the computer readable media shown in the embodiments of the present application may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A file downloading method based on cloud storage service is characterized by comprising the following steps:
receiving a content downloading request sent by a target terminal, wherein the content downloading request comprises a content identifier of target downloading content;
acquiring content information corresponding to the target downloading content according to the content identification of the target downloading content, wherein the content information comprises a virtual path and a storage address corresponding to the target downloading content;
according to the storage address, acquiring a download stream corresponding to the target download content from a cloud storage server;
instantiating a compressed stream, and writing the download stream into the compressed stream according to the virtual path;
the compressed stream is uploaded to the cloud storage server again, and a download address which is fed back by the cloud storage server and corresponds to the compressed stream is received, wherein the download address comprises address information of a distributed network;
and feeding back the download address to the target terminal so that the target terminal can send a content download request to the distributed network again through the download address.
2. The method of claim 1, wherein the target download content comprises a target download folder and/or a target download file;
then, according to the content identifier of the target download content, acquiring content information corresponding to the target download content, including:
acquiring file information corresponding to all subfiles under the target download folder according to the folder identifier of the target download folder;
and/or
And acquiring file information corresponding to the target download file according to the file identifier of the target download file.
3. The method of claim 2, wherein the target download content comprises a target download folder and a target download file;
after acquiring the content information corresponding to the target download content according to the content identifier of the target download content, the method further includes:
and according to the file information corresponding to all the subfiles in the target download folder and the file information of the target download file, carrying out duplicate removal processing on the subfiles and the target download file.
4. The method of any of claims 1-3, wherein the content download request further comprises a user identification;
then, according to the content identifier of the target download content, acquiring content information corresponding to the target download content, including:
carrying out downloading authority verification according to the user identification and the content identification of the target downloading content;
and if the download authority passes the verification, acquiring content information corresponding to the target download content according to the content identification of the target download content.
5. A file downloading device based on cloud storage service is characterized by comprising:
the receiving module is used for receiving a content downloading request sent by a target terminal, wherein the content downloading request comprises a content identifier of target downloading content;
a first obtaining module, configured to obtain content information corresponding to the target download content according to a content identifier of the target download content, where the content information includes a virtual path and a storage address corresponding to the target download content;
the second acquisition module is used for acquiring a download stream corresponding to the target download content from a cloud storage server according to the storage address;
the compression module is used for instantiating a compression stream and writing the download stream into the compression stream according to the virtual path;
the return module is used for re-uploading the compressed stream to the cloud storage server and receiving a download address which is fed back by the cloud storage server and corresponds to the compressed stream, wherein the download address comprises address information of a distributed network;
and the processing module is used for feeding back the download address to the target terminal so that the target terminal can send a content download request to the distributed network again through the download address.
6. The apparatus of claim 5, wherein the target download content comprises a target download folder and/or a target download file; the first obtaining module is configured to:
acquiring file information corresponding to all subfiles under the target downloading folder according to the folder identification of the target downloading folder;
and/or
And acquiring file information corresponding to the target download file according to the file identifier of the target download file.
7. The apparatus of claim 6, wherein the target download content comprises a target download folder and a target download file;
after acquiring the content information corresponding to the target download content according to the content identifier of the target download content, the first acquiring module is further configured to:
and according to the file information corresponding to all the subfiles in the target download folder and the file information of the target download file, carrying out duplicate removal processing on the subfiles and the target download file.
8. The apparatus of any of claims 5-7, wherein the content download request further comprises a user identification;
the first obtaining module is configured to:
carrying out downloading authority verification according to the user identification and the content identification of the target downloading content;
and if the verification passes the download authority, acquiring content information corresponding to the target download content according to the content identifier of the target download content.
9. A computer-readable medium on which a computer program is stored, the computer program, when executed by a processor, implementing the file downloading method based on the cloud storage service according to any one of claims 1 to 4.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the cloud storage service-based file download method according to any one of claims 1 to 4.
CN202211386606.4A 2022-11-07 2022-11-07 File downloading method, device, medium and equipment based on cloud storage service Pending CN115695416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211386606.4A CN115695416A (en) 2022-11-07 2022-11-07 File downloading method, device, medium and equipment based on cloud storage service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211386606.4A CN115695416A (en) 2022-11-07 2022-11-07 File downloading method, device, medium and equipment based on cloud storage service

Publications (1)

Publication Number Publication Date
CN115695416A true CN115695416A (en) 2023-02-03

Family

ID=85050688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211386606.4A Pending CN115695416A (en) 2022-11-07 2022-11-07 File downloading method, device, medium and equipment based on cloud storage service

Country Status (1)

Country Link
CN (1) CN115695416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135171A (en) * 2023-03-31 2023-11-28 荣耀终端有限公司 Cloud storage method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117135171A (en) * 2023-03-31 2023-11-28 荣耀终端有限公司 Cloud storage method and system

Similar Documents

Publication Publication Date Title
CN108845816B (en) Application program updating method, system, computer device and storage medium
WO2019201039A1 (en) Method and system for updating application and application server
CN106462430B (en) Application upgrade package obtaining method and device
CN110389935B (en) Method, equipment and computer storage medium for starting small program
CN107395784B (en) Method and device for importing internet protocol IP pools in batches
CN106776917B (en) Method and device for acquiring resource file
CN110572422A (en) Data downloading method and device
US20200204688A1 (en) Picture book sharing method and apparatus and system using the same
CN115695416A (en) File downloading method, device, medium and equipment based on cloud storage service
CN116382773A (en) Method for deploying PyFlink task
CN113259494B (en) File storage method and device, electronic equipment and storage medium
CN110505289B (en) File downloading method and device, computer readable medium and wireless communication equipment
CN113297453A (en) Network request response method and device, electronic equipment and storage medium
CN109614383B (en) Data copying method and device, electronic equipment and storage medium
CN111343220B (en) Repeater, distributed file transmission method, distributed file transmission system, medium and electronic equipment
CN113407339A (en) Resource request feedback method and device, readable storage medium and electronic equipment
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN109857719B (en) Distributed file processing method, device, computer equipment and storage medium
CN109547552B (en) API request processing method and device, storage medium and electronic equipment
CN113779122A (en) Method and apparatus for exporting data
CN112035402A (en) File storage method and device and terminal equipment
CN114765606B (en) Container mirror image transmission method, device, equipment and storage medium
CN110727889A (en) Static webpage resource loading method, device, medium and electronic equipment
CN117633392A (en) Page publishing method and device
WO2018145739A1 (en) Methods, client and server relating to a distributed database

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