Skip to content
Snippets Groups Projects
Commit acb48ef4 authored by xuty's avatar xuty
Browse files

add miniox example

parent 76cfbbbe
Branches
Tags
No related merge requests found
import 'dart:io';
import 'package:minio/io.dart';
import 'package:minio/minio.dart';
void main() async {
final minio = Minio(
endPoint: 'play.min.io',
accessKey: 'Q3AM3UQ867SPQQA43P2F',
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG',
);
await minio.fPutObject('testbucket', 'test.png', 'example/custed.png');
final stat = await minio.statObject('testbucket', 'test.png');
assert(stat.size == File('example/custed.png').lengthSync());
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment