示例#1
0
        /// <summary>
        /// Saves the output from the processor to the data-store. This is invoked
        /// when no corresponding input is found.
        /// </summary>
        /// <param name="output">The output from the processor.</param>
        protected override void Save(IProcessedImage output)
        {
            readImage reader = new readImage();

            byte[] blob = reader.ImageToByteArray(output.Output);

            ProcessedImageRepository processed = new ProcessedImageRepository();

            processed.saveImage(null, blob);
        }
示例#2
0
        /// <summary>
        /// Saves the output from the processor to the data-store.
        /// </summary>
        /// <param name="input">The input object provided to the processor.</param>
        /// <param name="output">The output from the processor.</param>
        protected override void Save(JobInput input, IProcessedImage output)
        {
            FileInfo  file   = (FileInfo)output.Identifier;
            readImage reader = new readImage();

            byte[] blob = reader.ImageToByteArray(output.Output);

            ProcessedImageRepository processed = new ProcessedImageRepository();

            processed.saveImage(file, blob);
        }