Converting MS Access "OLE Objects" back to plain JPEG files - the best way?

Background: we have an old (but critically important for business) SQL Server database with the MS Access ADP interface; it was originally optimized for SQL Server from the Access database series.

This database tracks hazardous materials for our customers and stores a large number of images. These images are inserted from MS Access and inserted into the database as OLE objects.

Problems:

  • This is a pain that can be read in everything except Access / Office
  • There MASSIVE storage overhead - ~ 10 GB of images takes up more than 600 GB of storage space (!)

My question is: how could you recommend converting these bloated objects back into plain JPEG files? Once we do this, we can finally transfer our interface from Access to a simple web-based system, and our backup time will again be manageable!

+5
source share
4 answers

Take the * .bas file from here http: http://stackoverflow.com/Content/img/wmd/ul.png//www. accessi-im-unternehmen.de/index1.php?BeitragID=337&id=300 (unfortunately, this is German).

It uses GDI + lib from MS (included in the standard Win installation) to import / export photos to / from Access OLE.

Rough translation of the interface:

  • IsGDIPInstalled: checks for GDI +
  • InitGDIP: Initializing GDI +.
  • ShutDownGDIP: Deinit GDI + (importand !)
  • LoadPictureGDIP: pic StdPicture (bmp, gif, jp (e) g, tif, png, wmf, emf ico).
  • ResampleGDIP: pic .
  • MakeThumbGDIP: .
  • GetDimensionsGDIP: TSize-Struktur .
  • SavePicGDIPlus: objekt BMP, GIF, PNG JPG (jpg )
  • ArrayFromPicture: picutre pic OLE
  • ArrayToPicture: OLE ,
+5

MVP Access MVP Stephen Lebans ExtractInventoryOLE OLE .

http://www.lebans.com/oletodisk.htm

Lebans: " , OLE . MS Office, PDF, , MS Photo, MS Paint Paint Shop Pro. PACKAGE, ."

, Access 2007 OLE- , BMP , Access, SQL Server 600 + 2007 accdb. , Access -.

+1

, , , , JPG "OLE-", , , , JPEG.

, : .doc, , OpenOffice JPEG OpenOffice ( ZIP ).

OLE JPEG, ( -).

0

All Articles