Page 1 of 1

Reading inline image into ByteArray

PostPosted: Tue Apr 09, 2013 9:54 pm
by mmoselhy
Hi Jason,

For any inline image I can get the Pic object but I can't get any information about the image neither the java.awt.image object from Pic

Is there a way to read any inline image into ByteArray or to convert Pic into java.awt.image?


Thanks,
Mohamed

Re: Reading inline image into ByteArray

PostPosted: Tue Apr 09, 2013 11:52 pm
by jason
Please study my answer in your earlier thread docx-java-f6/getting-images-from-docx-t1502.html ; the principles are the same.

You need to get the relID etc.

Once you have looked into it, feel free to post again to that earlier thread, including the XML for the pic object, and the code you have written.

I'm going to delete this thread, so it doesn't clutter up other people's search results.

Re: Reading inline image into ByteArray

PostPosted: Wed Apr 10, 2013 12:58 am
by mmoselhy
aha, sorry, I didn't notice that I should expand the code in your earlier post.
okay, go ahead and delete it.
Thanks