Many IDC vendors provide object storage services, such as Alibaba Cloud's OSS, Tencent Cloud's COS, Amazon's S3, etc., all with similar interfaces.
Object storage is a computer data storage architecture that manages data as objects, as opposed to other storage architectures such as file systems that manage data as file-level and block storage that manages data as blocks within blocks and sectors. Each object typically includes the data itself, a variable amount of metadata, and a globally unique identifier. Object storage can be implemented at multiple levels, including device level (object storage device), system level, and interface level. In each case, object storage attempts to implement features that other storage architectures cannot, such as interfaces that can be programmed directly by applications, namespaces that can span multiple physical hardware instances, and data management features such as data replication and data distribution at object-level granularity. Compared with databases, which are structured data storage technologies, object storage is mainly aimed at storing a large amount of unstructured data. This data generated on a daily basis is suitable for storage in object storage. First, let's create a new .NET framework project and install the Minio .net version of the client through nuget, with the following command:
The code is as follows:
About the .NET client API interface documentation:The hyperlink login is visible.
Code description: Create a my.itsvse bucket, upload the npp.7.9.Installer.exe of the local disk to the bucket, and name it folder1/npp.7.9.Installer.exe, in addition, we get the download address of the object, which is valid for 1 hour, and the file can be downloaded through the link. The renderings are as follows:
Note:The download link you get cannot directly modify the host name, that is, you cannot directly modify the linked domain name, otherwise a signature error will be reported, as follows:
<Error> <Code>SignatureDoesNotMatch</Code> <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message> <Key>golden-oldies.zip</Key> <BucketName>my.itsvse</BucketName> <Resource>golden-oldies.zip</Resource> <RequestId>166A8CCA82FAA5DC</RequestId> <HostId>152862c6-7953-45d1-a0ed-26c70fa7bd70</HostId> </Error> Finally, attach the source code:
Tourists, if you want to see the hidden content of this post, please Reply
(End)
|