Insert picture from byte array

E

ERichardson

I see many examples of how to load a Picture into a word document from a
image file. Is there a way to insert a picture that is stored in an array of
bytes? I'm getting a byte array from a web service and just want the picture
in the doc; storing to disk just to load it again seems like a kludge.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?RVJpY2hhcmRzb24=?=,
I see many examples of how to load a Picture into a word document from a
image file. Is there a way to insert a picture that is stored in an array of
bytes? I'm getting a byte array from a web service and just want the picture
in the doc; storing to disk just to load it again seems like a kludge.
Word's object model doesn't have support for this, no. If we're talking Word
2003, then you could perhaps manage it if the document were saved in
WordProcessingML (XML) and closed.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top