예제 #1
0
        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);
        }
예제 #2
0
 public FileModifyCommand(string path, BlobCommand blob)
 {
     base.Path = path;
     this.Blob = blob;
 }