private void ImportThumbnail(Dictionary <Guid, byte[]> thumbnailData, StructureInfo structureInfo, string blobAuthority)
 {
     foreach (var thumbnail in thumbnailData)
     {
         using (var inputStream = new MemoryStream(thumbnail.Value))
         {
             var container = _blobService.Create(blobAuthority, structureInfo.Id(thumbnail.Key));
             if (container.GetDefault().Exists)
             {
                 // since we are using the same Blob Uri over and over, we need to delete the container
                 // add write new file in order to delete generated thumbnails.
                 _blobService.Delete(container);
             }
             using (var stream = container.GetDefault().OpenWrite())
             {
                 inputStream.CopyTo(stream);
             }
         }
     }
 }