2

Basically I have a document with lots of small images and I need a fast way to build a list of unique images (and identify them in the document), I was thinking of using Base64 conversion to store each unique image in an xml file (or simply store the MD5 hash of each image).

If the images were saved as files somewhere (i.e outside of the document) I'd be able to do this but (unless there's good reason not to) I'd like to learn how to read the image directly from the document.

Specifically, if I have myDoc.InlineShapes(myImageIndex) how can I most efficiently PREPARE that to either convert to Base64 or create a hash?

All the examples I can find assume the image is loaded from file, I'm hoping to load the image directly from the document... (e.g. Convert image (jpg) to base64 in Excel VBA?)

Many thanks in advance,

Community
  • 1
  • 1
SlowLearner
  • 3,086
  • 24
  • 54
  • Just found this (which looks like half of the puzzle): http://stackoverflow.com/questions/12795440 so will have a look and post back... – SlowLearner Jul 27 '16 at 08:24

0 Answers0