When an OLE control on a form is bound to the OLE field in the table, images and other files can be cut and pasted and viewed/retrieved via the user interface.
However, in this scenario the OLE control adds a binary wrapper to the original binary data, and if the data is later read directly out of the table then the wrapper causes problems.
This function removes the OLE header from a bitmap image, if present, after which the binary data will be identical to what was originally pasted in. It does not work on other document types. It is unadvisable to use JPG in OLE fields anyway as it crashes Access if the JPG is over a certain size. This function is called by ExtractBlob on the first chunk of data read from OLE field to strip the header, if present, before saving the binary data. Note that the wrapper varies in size and content depending on the file type and can contain an embedded filesystem, so it is far from trivial to construct a wrapper to allow bound display of images.
The byte array containing the binary data image.
RemoveAccessOleHeader Data