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.

http://stackoverflow.com/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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值