PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Rendering Image from MemoryStream http://forum.pdfsharp.com/viewtopic.php?f=2&t=3228 |
Page 1 of 1 |
Author: | hemaanshu [ Mon Nov 23, 2015 8:50 am ] |
Post subject: | Rendering Image from MemoryStream |
Hi, How can I render Image from corresponding MemoryStream on PDF using MigraDoc. I do not want to save memory stream to file. At present, I section.AddImage takes only file path and does not support MemoryStream. However, I see XImage can take a image's memory stream. Can I convert XImage to Image or any other way this can be done? |
Author: | Thomas Hoevel [ Mon Nov 23, 2015 8:59 am ] |
Post subject: | Re: Rendering Image from MemoryStream |
Hi! With version 1.50 you can read the stream into a string and pass that to AddImage(). See also: http://www.pdfsharp.net/wiki/MigraDoc_F ... mages.ashx If you have a MemoryStream then you can simply call GetBuffer() to get the byte[]. |
Author: | hemaanshu [ Mon Nov 23, 2015 9:17 am ] |
Post subject: | Re: Rendering Image from MemoryStream |
Thanks for the response. Where can I get the sources for v1.5? |
Author: | Thomas Hoevel [ Mon Nov 23, 2015 9:20 am ] |
Post subject: | Re: Rendering Image from MemoryStream |
hemaanshu wrote: Where can I get the sources for v1.5? The question should be "When". The answer is "Later this year" and that's all I can say now.Binaries are on NuGet. |
Author: | hemaanshu [ Mon Nov 23, 2015 9:31 am ] |
Post subject: | Re: Rendering Image from MemoryStream |
Thomas Hoevel wrote: hemaanshu wrote: Where can I get the sources for v1.5? The question should be "When". The answer is "Later this year" and that's all I can say now.Binaries are on NuGet. Currently we are using version 1.32, before I could make a move to newer version can you please help with these questions? a.) Are there any usage license change from 1.32 to current version? b.) I understand the current version is a Beta, can you comment on how stable is it and when is the release planned for it? Thank you. |
Author: | Thomas Hoevel [ Mon Nov 23, 2015 9:42 am ] |
Post subject: | Re: Rendering Image from MemoryStream |
Re a: same license. Re b: it's a beta, but we fixed several bugs. IMHO 1.50 is the better choice. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |