putObject method
Implementation
Future<void> putObject(
String url,
Uint8List imageBytes, {
String? contentType,
}) async {
await _dio.put(
url,
data: Stream.fromIterable([imageBytes.toList()]),
options: Options(
headers: {
Headers.contentLengthHeader: imageBytes.length,
Headers.contentTypeHeader: contentType,
},
),
);
}