azblob 3.0.1 copy "azblob: ^3.0.1" to clipboard
azblob: ^3.0.1 copied to clipboard

A trivial Azure Blob Storage client. You can get and put Blob on server side dart.

example/example.dart

import 'dart:convert';
import 'package:azblob/azblob.dart';

main() async {
  var storage = AzureStorage.parse('your connection string');

  await storage.putBlob(
    '/example/yourfile.txt',
    body: 'Hello, world.',
    contentType: 'text/x-hello',
  );

  var response = await storage.getBlob('/example/yourfile.txt');
  print(response.headers.contentType);
  var body = (await response.transform(const Utf8Decoder()).toList()).join();
  print(body);

  await storage.deleteBlob('/example/yourfile.txt');

  storage.close();
}
26
likes
160
points
7.54k
downloads

Publisher

verified publisherkkazuo.com

Weekly Downloads

A trivial Azure Blob Storage client. You can get and put Blob on server side dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (license)

Dependencies

crypto, http_parser, universal_io

More

Packages that depend on azblob