public override string AddExternalImage(string value, byte[] imageData, string mimeType) { Global.Tracer.Assert(imageData != null, "Missing imageData for external image"); string text = ImageHelper.StoreImageDataInChunk(AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.ReportChunkTypes.Image, imageData, mimeType, base.m_odpMetadata, base.m_chunkFactory); AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo imageInfo = new AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo(text, mimeType); imageInfo.SetCachedImageData(imageData); base.m_odpMetadata.AddExternalImage(value, imageInfo); return(text); }
public override byte[] GetCachedEmbeddedImageBytes(string imageName, OnDemandProcessingContext odpContext) { AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo imageInfo = default(AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo); bool condition = odpContext.EmbeddedImages.TryGetValue(imageName, out imageInfo); Global.Tracer.Assert(condition, "Missing ImageInfo for embedded image"); byte[] array = this.ReadImageDataFromChunk(imageInfo.StreamName, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.ReportChunkTypes.StaticImage); if (array != null) { imageInfo.SetCachedImageData(array); } return(array); }
public override byte[] GetCachedExternalImageBytes(string value) { AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo imageInfo = default(AspNetCore.ReportingServices.ReportIntermediateFormat.ImageInfo); bool condition = base.m_odpMetadata.TryGetExternalImage(value, out imageInfo); Global.Tracer.Assert(condition, "Missing ImageInfo for external image"); byte[] array = this.ReadImageDataFromChunk(imageInfo.StreamName, AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.ReportChunkTypes.Image); if (array != null) { imageInfo.SetCachedImageData(array); } return(array); }