Import OLE Object from Access to MySQL

Posted by SecretDeveloper on Stack Overflow See other posts from Stack Overflow or by SecretDeveloper
Published on 2008-09-03T12:55:25Z Indexed on 2012/04/07 23:29 UTC
Read the original article Hit count: 377

Filed under:
|
|
|

I have a table in an access table which contains Product entries, one of the columns has a jpg image stored as an OLE Object. I am trying to import this table to MySQL but nothing seems to work. I have tried the MySQL migration tool but that has a known issue with Access and OLE Objects. (The issue being it doesnt work and leaves the fields blank) I also tried the suggestion on this site and while the data is imported it seems as though the image is getting corrupted in the transfer. When i try to preview the image i just get a binary view, if i save it on disk as a jpg image and try to open it i get an error stating the image is corrupt.

The images in Access are fine and can be previewed. Access is storing the data as an OLE Object and when i import it to MySql it is saved in a MediumBlob field.

Has anyone had this issue before and how did they resolve it ?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about ms-access