private BlobCommand GetDataBlob(Item item) { var bytes = new byte[item.ContentLength]; var str = item.DownloadFile(); str.Read(bytes, 0, bytes.Length); str.Close(); var id = _MarkID++; var blob = BlobCommand.BuildBlob(bytes, id); return(blob); }
public FileModifyCommand(string path, BlobCommand blob) { base.Path = path; this.Blob = blob; }