public static void UploadImageStream(Stream stream, string filename, TaskSettings taskSettings = null) { if (taskSettings == null) { taskSettings = TaskSettings.GetDefaultTaskSettings(); } if (stream != null && stream.Length > 0 && !string.IsNullOrEmpty(filename)) { WorkerTask task = WorkerTask.CreateDataUploaderTask(EDataType.Image, stream, filename, taskSettings); TaskManager.Start(task); } }