Ejemplo n.º 1
0
        /// <summary>Write out the passed in file as a literal data packet.</summary>
        public static void WriteFileToLiteralData(
            Stream output,
            char fileType,
            FileInfo file)
        {
            PgpLiteralDataGenerator lData = new PgpLiteralDataGenerator();
            Stream pOut = lData.Open(output, fileType, file.Name, file.Length, file.LastWriteTime);

            PipeFileContents(file, pOut, 4096);
        }
Ejemplo n.º 2
0
        /// <summary>Write out the passed in data as a literal data packet.</summary>
        public static void WriteDataToLiteralData(
            Stream output,
            Stream input,
            char fileType,
            string name,
            long length,
            DateTime modificationTime)
        {
            PgpLiteralDataGenerator lData = new PgpLiteralDataGenerator();
            Stream pOut = lData.Open(output, fileType, name, length, modificationTime);

            PipeDataContents(input, pOut, 4096);
        }