poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43161] wrong construction of the DIB picture header
Date Fri, 12 Feb 2010 06:34:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=43161

--- Comment #1 from hacho <ih.ng@databrokers.net> 2010-02-12 06:34:30 UTC ---
I am experiencing the same issue with version 3.6
(poi-scratchpad-3.6-20091214.jar).

Attaching here a modified org.apache.poi.hslf.blip.DIB code
Basically the current function getData() adds a proper header. I made a small
modification to produce the correct header values and renamed the function to
addBMPHeader(). I then created a wrapper so the original getData() is intact.

I exposed addBMPHeader() as a separate public static method, because there are
other cases where you need to append a header to the raw DIB information stored
in the OLE2 stream. For example in Excel tables.

I will attach the test case for this situation.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message