createThumbnailUploadPdfFromUrl method

Future<T> createThumbnailUploadPdfFromUrl(
  1. String memberMediumDocumentID,
  2. String url,
  3. String baseName,
  4. String documentID, {
  5. PdfAvailable? feedbackFunction,
  6. FeedbackProgress? feedbackProgress,
})

Implementation

Future<T> createThumbnailUploadPdfFromUrl(String memberMediumDocumentID,
    String url, String baseName, String documentID,
    {PdfAvailable? feedbackFunction,
    FeedbackProgress? feedbackProgress}) async {
  var theUri = Uri.parse(url);
  final data = await http.get(theUri);
  var fileData = data.bodyBytes;
  return createThumbnailUploadPdfData(
      memberMediumDocumentID, fileData, baseName, documentID,
      feedbackFunction: feedbackFunction, feedbackProgress: feedbackProgress);
}