前言 在移动开发中,我们常常会遇到需要在App中处理文件上传和下载的需求。Minio是一个开源的对象存储服务,它兼容Amazon S3云存储服务接口,可以用于存储大规模非结构化的数据。 开始之前 在pubspec.yaml文件中添加minio_new库的依赖: dependencies: minio_new: ^1.0.2 运行flutter pub get命令来获取依赖。可去pub上看 minio_new 最新版本。 初始化Minio客户端 需要先创建一个Minio客户端的实例。这个实例需要配置Minio服务器的连接信息,包括服务器的URL、端口号、访问密钥和密钥等。 var minio = Minio( endPoint: 'your-minio-server.com', port: 9000, useSSL: false, accessKey: 'your-access-key', secretKey: 'your-secret-key', ); 参数介绍: useSSL:指定是否使用 SSL 连接。如果设置为 true,则使用 HTTPS 协议进行连接;如果设置为...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile