I have an in-memory Image, I need to get a Stream from it to write into an OpenXML document. Can someone please point me to the correct method.
I have an in-memory Image , I need to get a Stream from it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use an overload of the
Savemethod that takes aStreamas a parameter. To create a stream that exists in-memory, you can useMemoryStreamtype. Something like this should work:Now you can pass the newly created stream
msto other objects (e.g. to save it inOpenXML). See also: