示例#1
0
        public static int UploadObject(
            this LibraryChannel channel,
            Stop stop,
            string strClientFilePath,
            string strServerFilePath,
            string strStyle,
            byte[] timestamp,
            bool bRetryOverwiteExisting,
            bool bProgressChange,
            out byte[] output_timestamp,
            out string strError)
        {
            string strMime     = PathUtil.MimeTypeFrom(strClientFilePath);
            string strMetadata = LibraryChannel.BuildMetadata(strMime, Path.GetFileName(strClientFilePath));

            return(UploadFile(
                       channel,
                       stop,
                       strClientFilePath,
                       strServerFilePath,
                       strMetadata,
                       strStyle,
                       timestamp,
                       bRetryOverwiteExisting,
                       bProgressChange,
                       out output_timestamp,
                       out strError));
        }