Hi,
I would like to export my reports as HTML with the inline images instead of the links with StreamID currently created by exporting to HTML.
I have set the Value of my picture box to:
I currently use the following code to export to HTML:
this renders images like this:
However I would like it to render the images like this:
or maybe like this (using data urls):
Are there any way to configure the export to include the images?
I would like to export my reports as HTML with the inline images instead of the links with StreamID currently created by exporting to HTML.
I have set the Value of my picture box to:
this
.pictureBox1.Value =
"http://image.url/image.jpg"
;
I currently use the following code to export to HTML:
private
Stream GetHtml(IReportDocument report)
{
//Calls WebOperationContext.Current.OutgoingResponse.ContentType
Settings.ContentType(
"text/html"
);
var reportProcessor =
new
ReportProcessor();
var result = reportProcessor.RenderReport(
"HTML"
, report,
null
);
return
new
MemoryStream(result.DocumentBytes);
}
this renders images like this:
<
img
src
=
"&StreamID=i1f3amm2v1v"
/>
However I would like it to render the images like this:
<
img
src
=
"http://image.url/image.jpg"
/>
or maybe like this (using data urls):
<
img
src
=
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD..."
/>
Are there any way to configure the export to include the images?