失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > java ole Java和OLE对象

java ole Java和OLE对象

时间:2020-11-19 06:04:49

相关推荐

java ole Java和OLE对象

Hello,

At the moment I have a Microsoft Access database with an OLE Object holding a picture.

I have tried to find code to retrieve the image saved in the OLE Object but to no success.

If there is anyone that can help me with this?

Regards

Mitchell

解决方案

There is a quite a bit of difference between using OLE in java and getting an OLE object from a MS Access database via Java.

Normally MS Access is accessed via the appropriate ODBC driver (which has nothing to do with java.) And ODBC does not support OLE objects directly. At least not as far as I recall nor that I can find.

So what one must do is exact the OLE in binary and then exact information from that by manipulating it. In other words the binary extracted contains a image and OTHER information. That other information be removed before the binary data will be an actual image.

Following provides some information.

/questions/1029340/extract-ole-object-pdf-from-access-db[^]

BEFORE attempting to manipulate the image you MUST test the following.

1. Write your code to extract the image from the object.

2. Write the binary data to a file.

3. Use an appropriate external application to load the file and insure the format is correct.

4. Repeat the above steps for all known variations

如果觉得《java ole Java和OLE对象》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。