CN112187921B - Object file downloading method, device, system, server and storage medium - Google Patents

Object file downloading method, device, system, server and storage medium Download PDF

Info

Publication number
CN112187921B
CN112187921B CN202011041783.XA CN202011041783A CN112187921B CN 112187921 B CN112187921 B CN 112187921B CN 202011041783 A CN202011041783 A CN 202011041783A CN 112187921 B CN112187921 B CN 112187921B
Authority
CN
China
Prior art keywords
object file
file
downloaded
real path
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.)
Active
Application number
CN202011041783.XA
Other languages
Chinese (zh)
Other versions
CN112187921A (en
Inventor
钱兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202011041783.XA priority Critical patent/CN112187921B/en
Publication of CN112187921A publication Critical patent/CN112187921A/en
Application granted granted Critical
Publication of CN112187921B publication Critical patent/CN112187921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device, a system, a server and a storage medium for downloading an object file, wherein the method comprises the following steps: receiving a downloading request of client equipment; acquiring metadata information of the object file to be downloaded according to the downloading request, and determining a real path of the object file to be downloaded according to the metadata information; and accessing a real path by using a preset file transfer protocol, and transmitting the object file to be downloaded corresponding to the real path to client equipment by using a pre-established transmission channel. The method and the device do not depend on the strong interaction between the storage client device and the server, download is carried out by utilizing the pre-established transmission channel, and the problem that the object file occupies network bandwidth when being downloaded is solved.

Description

Object file downloading method, device, system, server and storage medium
Technical Field
The present application relates to the field of object file downloading technologies, and in particular, to an object file downloading method, apparatus, system, server, and computer-readable storage medium.
Background
In the field of storage, storage can be broadly divided into three categories, by service or interface: block storage, file storage, and object storage. Object storage arises to overcome the disadvantages of block storage and file storage and to exploit their respective advantages. The block storage has the advantages of high read-write speed and is not suitable for sharing. The file storage has the advantages of being beneficial to sharing and has the disadvantage of low reading and writing speed. The object storage not only has high reading and writing speed, but also is suitable for a distributed system and is beneficial to sharing. Common open source objects store Ceph, swift.
When the object storage is used for downloading the object, the currently used form is to call an Application Programming Interface (API) provided in the object storage service, and obtain a backend object file through a browser or a curl command based on an HTTP (Hyper Text Transfer Protocol) request, which easily causes a problem of strongly depending on interaction between the object storage client device and the server, and a problem of occupying a large amount of network bandwidth of the object storage server during downloading the object. Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide an object file downloading method, an object file downloading device, a server, a computer-readable storage medium and an object file downloading system, which do not depend on strong interaction between a storage client device and the server and do not occupy network bandwidth. The specific scheme is as follows:
the application discloses a method for downloading an object file, which comprises the following steps:
receiving a downloading request of client equipment;
acquiring metadata information of an object file to be downloaded according to the downloading request, and determining a real path of the object file to be downloaded according to the metadata information;
and accessing the real path by using a preset file transfer protocol, and transmitting the object file to be downloaded corresponding to the real path to the client equipment by using a pre-established transmission channel.
Preferably, before receiving the download request of the client device, the method further includes:
after the uploading of the object file to be downloaded is finished, performing hash calculation according to the attribute information of the object file to be downloaded to obtain a hash value;
generating the metadata information according to the hash value;
the determining the real path of the object file to be downloaded according to the metadata information includes:
analyzing the metadata information to obtain a corresponding hash value;
and determining the real path of the object file to be downloaded according to the hash value.
Preferably, the method further comprises the following steps:
creating an object storage based on a file system, and starting a preset file transfer protocol service in a directory of an object storage pool or other directories containing the object storage directory;
determining a directory stored by the object file as an external root directory of the preset file transfer protocol;
correspondingly, the accessing the real path by using the preset file transfer protocol includes:
and accessing the real path in the root directory by using the preset file transfer protocol.
Preferably, the accessing the real path by using a preset file transfer protocol includes:
and accessing the real path by using FTP.
Preferably, the accessing the real path by using a preset file transfer protocol includes:
accessing the real path using SFTP.
Preferably, the accessing the real path by using a preset file transfer protocol includes:
accessing the real path using an SCP.
The application provides an object file downloading device, including:
the receiving module is used for receiving a downloading request of the client equipment;
the acquisition module is used for acquiring metadata information of the object file to be downloaded according to the downloading request and determining a real path of the object file to be downloaded according to the metadata information;
and the transmission module is used for accessing the real path by using a preset file transmission protocol and transmitting the object file to be downloaded corresponding to the real path to the client equipment by using a transmission channel established in advance.
The application provides a server, including:
a memory for storing a computer program;
a processor for implementing the steps of the object file downloading method when executing the computer program.
The present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the object file downloading method as described above.
The application provides an object file downloading system, comprising:
a server as described above;
and the client equipment is used for sending a downloading request to the server and receiving the file to be downloaded sent by the server by utilizing a pre-established transmission channel.
The application discloses an object file downloading method, which comprises the following steps: receiving a downloading request of client equipment; acquiring metadata information of the object file to be downloaded according to the downloading request, and determining a real path of the object file to be downloaded according to the metadata information; and accessing a real path by using a preset file transfer protocol, and transmitting the object file to be downloaded corresponding to the real path to client equipment by using a pre-established transmission channel.
It can be seen that, after receiving a download request from a client device, the present application obtains metadata information of a corresponding object file to be downloaded, then obtains a real path according to the metadata information, accesses the real path of the object file to be downloaded using a preset file transfer protocol, and downloads the object file to the client device using a pre-established transmission channel.
The application also provides an object file downloading system, a server, a computer readable storage medium and an object file downloading system, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an object file downloading method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an object file downloading device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a server 101 according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an object file downloading system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the object storage downloading object is used, the currently used form is to call an Application Programming Interface (API) provided in the object storage service, and obtain a backend object file through a browser or a curl command based on an HTTP (HyperText Transfer Protocol) request, which easily causes a problem of strongly depending on interaction between the object storage client device and the server, and a problem of occupying a large amount of network bandwidth of the object storage server during the object downloading process. Based on the foregoing technical problem, this embodiment provides an object file downloading method, which does not depend on strong interaction between a storage client device and a server and does not occupy network bandwidth, specifically referring to fig. 1, where fig. 1 is a flowchart of an object file downloading method provided in this embodiment of the present application, and specifically includes:
s101, receiving a downloading request of client equipment;
the execution subject of this embodiment is a server, and the server may provide one or more input/output interfaces for a user, where the input/output interfaces are connected to an input device, and receive an instruction or a request manually input by the user, and the input device may be a touch screen, a keyboard, a mouse, and the like, and receive, through the input/output interfaces, a download request sent by a client device in the client devices. Wherein the request is used for the client device to obtain the object file to be downloaded. The client device is not limited in this embodiment, and may be a computer, a mobile phone, a tablet, or other devices as long as the purpose of this embodiment can be achieved.
The download request may include a name or other identification of the user's desire corresponding to the object file to be downloaded.
S102, acquiring metadata information of the object file to be downloaded according to the downloading request, and determining a real path of the object file to be downloaded according to the metadata information;
acquiring metadata information of an object file to be downloaded in a backend object storage through an internal program according to a downloading request, wherein the metadata information comprises but is not limited to ID information, a name and a hash value; and determining a real path of the object file to be downloaded according to the metadata information, wherein the real path is a storage path which can be seen in the operating system based on the root directory, and the object file to be downloaded needs to be downloaded in the real path when being downloaded.
S103, accessing a real path by using a preset file transfer protocol, and transmitting the object file to be downloaded corresponding to the real path to client equipment by using a pre-established transmission channel.
And when the internal program returns the real path of the object file to be downloaded, accessing the real path by using a preset file transmission protocol, and executing downloading through a transmission channel established in advance, thereby finally realizing that the whole object file to be downloaded is downloaded to the client equipment. In this embodiment, the pre-established transmission channel is a dedicated channel for downloading the object file, and specifically, a network card may be added to the object storage pool, and a network link corresponding to the network card is used to perform data exchange with a server having a preset file transfer protocol, so as to download the object file to be downloaded.
The present embodiment does not limit the preset file transfer protocol, and the user can customize the setting, as long as the purpose of the present embodiment can be achieved. In one implementation, accessing the real path using a predetermined file transfer protocol includes: the real path is accessed using FTP. FTP (File Transfer Protocol) is a method of establishing a connection between an FTP client device and an FTP server. The FTP client device may issue commands to the FTP server to download files, upload files, create or change directories on the server. In another implementation, accessing the real path using a predetermined file transfer protocol includes: the real path is accessed using SFTP. SFTP (Secure File Transfer Protocol) can provide a Secure encryption method for the transmitted File, and has high reliability. In another implementation, accessing the real path using a predetermined file transfer protocol includes: the real path is accessed using the SCP. SCP (Secure Copy protocol) is used for remote file copying and the entire copying process is encrypted. Data transmission uses SSH and SSH connection tunnels are secure using the same authentication method as SSH, and thus file transmission based on SCP protocol is secure. In another implementation, accessing the real path using a predetermined file transfer protocol includes: the real path is accessed using TFTP. Among them, TFTP (Trivial File Transfer Protocol) only supports File Transfer without verifying the authority of the client. Of course, other file transfer protocols are possible, and this embodiment is not limited.
Based on the technical scheme, after receiving a download request of the client device, the embodiment acquires the metadata information of the corresponding object file to be downloaded, acquires the real path according to the metadata information, accesses the real path of the object file to be downloaded by using a preset file transfer protocol, and downloads the object file to the client device by using the pre-established transmission channel.
Further, before receiving a download request from a client device, to determine the reliability of the file, the method further includes:
after the uploading of the object file to be downloaded is finished, performing hash calculation according to the attribute information of the object file to be downloaded to obtain a hash value;
generating metadata information according to the hash value;
determining a real path of the object file to be downloaded according to the metadata information, including:
analyzing the metadata information to obtain a corresponding hash value;
and determining the real path of the object file to be downloaded according to the hash value.
The server stores a plurality of object files, and when the object files are uploaded to the server, hash calculation is performed on attribute information of the object files to generate hash values. According to the method and the device, the uploading of the object file to be downloaded is explained, after the uploading of the object file to be downloaded is completed, the server receives the complete object file to be downloaded, and the swift performs hash calculation on attribute information of the object file to be downloaded, wherein the attribute information includes but is not limited to the name of the object file to be downloaded, the size of the file, a real path and the like, a hash value is finally obtained, metadata information is generated according to the hash value, and the metadata information includes the hash value, IP information, ID information and the like. Further, in the downloading process, after the metadata information is determined, the metadata information is analyzed to obtain a hash value, and if the hash value is successfully calibrated, a real path of the object file to be downloaded is obtained. Therefore, the reliability of the object file to be downloaded is ensured by the hash operation mode in the embodiment.
Further, the method also comprises the following steps: creating an object storage based on a file system, and starting a preset file transfer protocol service in a directory of an object storage pool or other directories containing the object storage directory; determining a directory stored by the object file as an external root directory of a preset file transfer protocol; correspondingly, accessing the real path by using a preset file transfer protocol includes: and accessing the real path in the root directory by using a preset file transfer protocol.
In this embodiment, an object storage is created based on a file system, a preset file transfer protocol service of a server is started under a directory of an object storage pool of an object or other directories including the object storage directory, and the directory stored by the object file is determined as a root directory, where the file stored by the object includes an object file to be downloaded and other object files, and the directory stored by the object file is the directory of the object storage pool or other directories including the object storage directory; and accessing the real path of the object file to be downloaded in the root directory by using a preset file transfer protocol, and finally downloading the object file to be downloaded. When downloading an object file to be downloaded, an internal program is first required to obtain real storage path information (real path) of the object file to be downloaded, and return the real path information to an upper layer caller (client device).
Based on any of the above embodiments, this embodiment provides a specific method for implementing object file downloading based on FTP, where the method first adds a dedicated channel (transmission channel) for downloading an object at an existing object storage end, and specifically implements adding a network card to an object storage pool, and performs data exchange using a network link corresponding to the network card and an FTP server to perform downloading of an object file to be downloaded; secondly, starting FTP service at an object storage terminal built on the basis of a file system, taking a root directory used by the object storage or other temporary directories as the externally exposed root directory of the FTP, when an object file to be downloaded is downloaded, firstly obtaining metadata information of the object file to be downloaded in the back-end object storage through an internal program, further inquiring information of a real path returned by the internal program after the real path stored by the object file to be downloaded is stored according to the metadata information, and accessing the real path of the object file to be downloaded by using an FTP protocol and downloading the real path so as to finish the downloading of the whole object file to be downloaded. It can be understood that after the object storage finishes uploading the object file to be downloaded, the swift performs hash calculation according to the attribute information of the object file to be downloaded, generates the real storage position and name of the file in the object storage, downloads the object file to be downloaded to the root directory to which the object storage belongs through the FTP protocol, wherein the specific information of the object file to be downloaded includes the size, MD5, meta data information, then calls the download interface of the object storage, records the real path of the object file to be downloaded in the object storage pool according to the information returned by the download interface, and finally downloads the file according to the real path when downloading the file.
It can be seen that, in this embodiment, an object storage is established based on a file system, a dedicated internet access is added to the object storage end to perform data exchange with an external FTP client, when the FTP client downloads an object file to be downloaded through an FTP protocol, a real path of the object file to be downloaded is queried through an internal program, and then the FTP protocol is used to access a real location of the file and perform downloading. The embodiment can solve the problems that the downloading object occupies the object storage bandwidth and strongly depends on the interaction between the object storage client and the server, and the size of the file is not limited by the FTP downloading, so the embodiment can also solve the problem of the limitation of the size of the downloaded file 5G.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an object file downloading device provided in an embodiment of the present application, and includes:
a receiving module 201, configured to receive a download request of a client device;
an obtaining module 202, configured to obtain metadata information of the object file to be downloaded according to the download request, and determine a real path of the object file to be downloaded according to the metadata information;
the transmission module 203 is configured to access the real path by using a preset file transfer protocol, and transmit the object file to be downloaded corresponding to the real path to the client device by using a transmission channel established in advance.
Preferably, the method further comprises the following steps:
the computing module is used for carrying out hash computation according to the attribute information of the object file to be downloaded after the object file to be downloaded is uploaded to obtain a hash value;
the generating module is used for generating metadata information according to the hash value;
an acquisition module 202, comprising:
the analysis unit is used for analyzing the metadata information to obtain a corresponding hash value;
and the determining unit is used for determining the real path of the object file to be downloaded according to the hash value.
Preferably, the method further comprises the following steps:
the creating module is used for creating an object storage based on a file system and starting a preset file transfer protocol service in a directory of an object storage pool or other directories containing the object storage directory;
the root directory determining module is used for determining the directory stored by the object file as an external root directory of a preset file transfer protocol;
correspondingly, the transmission module 203 includes:
and the first access unit is used for accessing the real path in the root directory by using a preset file transfer protocol.
Preferably, the transmission module 203 comprises:
and a second access unit for accessing the real path using the FTP.
Preferably, the transmission module 203 comprises:
and a third access unit for accessing the real path using the SFTP.
Preferably, the transmission module 203 comprises:
and the fourth access unit is used for accessing the real path by utilizing the SCP.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
In the following, a server provided by the embodiment of the present application is introduced, and the server described below and the object file downloading method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a server 101 according to an embodiment of the present disclosure, including:
a memory 301 for storing a computer program;
a processor 302 for implementing the steps of the object file downloading method when executing the computer program.
Specifically, the memory 301 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 302 provides the computing and control capabilities for the server and, when executing the computer program stored in the memory 301, may perform the following steps: receiving a downloading request of client equipment; acquiring metadata information of the object file to be downloaded according to the downloading request, and determining a real path of the object file to be downloaded according to the metadata information; and accessing a real path by using a preset file transfer protocol, and transmitting the object file to be downloaded corresponding to the real path to client equipment by using a pre-established transmission channel.
In another implementable embodiment, the server may comprise: memory 301, processor 302, input output interface 303, network port 304.
The memory 301 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 302 provides the computing and control capabilities for the server, executes the computer programs stored in the memory 301, and may implement the steps of the object file downloading method. The input/output interface 303 is used for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 301 under the control of the processor 302. The input/output interface 303 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch screen, or may be a keyboard, a touch pad, a mouse, or the like. The user may initiate the object file download method through the input output interface 303. And a network port 304 for performing communication connection with each external terminal device. The communication technology used for the communication connection may be a wired communication technology or a wireless communication technology, such as a mobile high definition link technology (MHL), a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity technology (WiFi), a bluetooth communication technology, a low power bluetooth communication technology, a communication technology according to ieee802.11s, and the like.
Since the embodiment of the server portion and the embodiment of the object file downloading method portion correspond to each other, please refer to the description of the embodiment of the object file downloading method portion for the embodiment of the server portion, which is not repeated here.
The following describes a computer-readable storage medium provided by embodiments of the present application, and the computer-readable storage medium described below and the method described above may be referred to correspondingly.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the object file downloading method as described above.
Since the embodiment of the computer-readable storage medium portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the computer-readable storage medium portion, which is not repeated here.
In the following, an object file downloading system provided by the embodiment of the present application is introduced, and the object file downloading system described below and the method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an object file downloading system according to an embodiment of the present application, including:
the server 401 as above;
the client device 402 is configured to send a download request to the server 401, and receive a file to be downloaded sent by the server by using a pre-established transmission channel.
Since the embodiment of the object file downloading system part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the object file downloading system part, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The object file downloading method, device, system, server and computer readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. An object file downloading method, comprising:
receiving a downloading request of client equipment;
acquiring metadata information of an object file to be downloaded according to the downloading request, and determining a real path of the object file to be downloaded according to the metadata information;
accessing the real path by using a preset file transfer protocol, and transmitting the object file to be downloaded corresponding to the real path to the client device by using a pre-established transmission channel; the pre-established transmission channel is a special channel for downloading the object file, a network card is added in the object storage pool, and a network link corresponding to the network card is used for exchanging data with a server with the preset file transmission protocol so as to download the object file to be downloaded.
2. The method for downloading an object file according to claim 1, wherein before receiving the download request from the client device, the method further comprises:
after the uploading of the object file to be downloaded is finished, performing hash calculation according to the attribute information of the object file to be downloaded to obtain a hash value;
generating the metadata information according to the hash value;
the determining the real path of the object file to be downloaded according to the metadata information comprises:
analyzing the metadata information to obtain a corresponding hash value;
and determining the real path of the object file to be downloaded according to the hash value.
3. The object file downloading method according to claim 1, further comprising:
creating an object storage based on a file system, and starting a preset file transfer protocol service in a directory of an object storage pool or other directories containing the object storage directory;
determining a directory stored by an object file as an external root directory of the preset file transfer protocol;
correspondingly, the accessing the real path by using a preset file transfer protocol includes:
and accessing the real path in the root directory by using the preset file transfer protocol.
4. The object file downloading method according to claim 1, wherein the accessing the real path using a predetermined file transfer protocol comprises:
and accessing the real path by using FTP.
5. The object file downloading method according to claim 1, wherein the accessing the real path using a predetermined file transfer protocol comprises:
accessing the real path using SFTP.
6. The object file downloading method of claim 1, wherein the accessing the real path using the predetermined file transfer protocol comprises:
accessing the real path using an SCP.
7. An object file downloading apparatus, comprising:
the receiving module is used for receiving a downloading request of the client equipment;
the acquisition module is used for acquiring metadata information of the object file to be downloaded according to the downloading request and determining the real path of the object file to be downloaded according to the metadata information;
the transmission module is used for accessing the real path by using a preset file transmission protocol and transmitting the object file to be downloaded corresponding to the real path to the client equipment by using a transmission channel established in advance; the pre-established transmission channel is a special channel for downloading the object file, a network card is added in the object storage pool, and a network link corresponding to the network card is used for exchanging data with the server with the preset file transmission protocol, so that the object file to be downloaded is downloaded.
8. A server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the object file downloading method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the object file downloading method according to any one of claims 1 to 6.
10. An object file download system, comprising:
the server of claim 8;
and the client equipment is used for sending a downloading request to the server and receiving the file to be downloaded sent by the server by utilizing a pre-established transmission channel.
CN202011041783.XA 2020-09-28 2020-09-28 Object file downloading method, device, system, server and storage medium Active CN112187921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011041783.XA CN112187921B (en) 2020-09-28 2020-09-28 Object file downloading method, device, system, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011041783.XA CN112187921B (en) 2020-09-28 2020-09-28 Object file downloading method, device, system, server and storage medium

Publications (2)

Publication Number Publication Date
CN112187921A CN112187921A (en) 2021-01-05
CN112187921B true CN112187921B (en) 2023-04-07

Family

ID=73944551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011041783.XA Active CN112187921B (en) 2020-09-28 2020-09-28 Object file downloading method, device, system, server and storage medium

Country Status (1)

Country Link
CN (1) CN112187921B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612855A (en) * 2021-08-18 2021-11-05 深圳鼎盛电脑科技有限公司 File downloading method and device, computer equipment and storage medium
CN116319761A (en) * 2023-05-11 2023-06-23 成都数联云算科技有限公司 FTP protocol file transmission method, device, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110198334B (en) * 2018-04-19 2022-03-25 腾讯科技(深圳)有限公司 Access method and device based on object storage service and storage medium
CN110445822B (en) * 2018-05-03 2021-11-30 中移(苏州)软件技术有限公司 Object storage method and device
CN109582644B (en) * 2018-12-21 2023-04-07 深圳前海微众银行股份有限公司 File storage method, device, equipment and computer readable storage medium
CN112003944B (en) * 2020-08-26 2023-02-28 北京浪潮数据技术有限公司 Method, system, equipment and storage medium for uploading object file

Also Published As

Publication number Publication date
CN112187921A (en) 2021-01-05

Similar Documents

Publication Publication Date Title
CN108111555B (en) Method and system for controlling installation package downloading process
CN109496419B (en) File processing method, device and system
EP3333744A1 (en) Authorization code flow for in-browser applications
EP3044936B1 (en) Method and apparatus of downloading and installing a client
CN111953642B (en) Method for uploading and downloading shared file by two-dimensional code
CN112187921B (en) Object file downloading method, device, system, server and storage medium
CN111954051B (en) Method and system for transmitting video and audio data, cloud server and storage medium
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
CN109729386B (en) Video file playing starting method and system, electronic equipment and storage medium
CN104503780A (en) Method and device for providing application channel packet
WO2014008864A1 (en) Method, apparatus, and system for sharing software among terminals
TW201527993A (en) File sharing method, device and mobile equipment
CN112559463B (en) Compressed file processing method and device
CN112437078A (en) File storage method, device, equipment and computer readable storage medium
CN104811485A (en) Resource sharing method
CN112729868A (en) Vehicle diagnosis method, device, equipment and medium
JP5604016B1 (en) Script caching method and information processing apparatus using the same
CN108108203B (en) Method, device and system for downloading and installing process of installation package
CN112988311A (en) On-line experimental method based on WEB server
CN108616567B (en) Picture transmission method, system, server, client and user equipment
US9838494B1 (en) Reducing retrieval times for compressed objects
CN111786932A (en) Account login method and device, electronic equipment and computer storage medium
WO2017143931A1 (en) Method and apparatus for identifying smart card, method and apparatus for processing smart card identification data, and device
CN115664736A (en) Method, device, equipment and medium for sharing data
CN114489603A (en) Code generation method, apparatus, electronic device, medium, and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant