insertBodyBytes static method
Implementation
static insertBodyBytes(String url,String messageId)async{
print('Successfully saving ...in progress $messageId');
var data = HS.chatFilesBox.get(messageId);
if(data==null){
final response = await http.get(Uri.parse(url));
final bytes = response.bodyBytes;
print('Successfully saving ...bytes fetched $messageId');
await HS.chatFilesBox.put(messageId, bytes);
print('Successfully saved $messageId');
}
// GPXFileModal gpxFileModal = GPXFileModal(bodyBytes: data, fileName: fileName, body: body);
// HiveServices.gpxFileDataBox.put(fileName, gpxFileModal.toJson());
// return gpxFileModal;
}