Bug 41223 - Simple image extraction for HSSFWorkbook
Summary: Simple image extraction for HSSFWorkbook
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-dev
Hardware: Other other
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2006-12-20 14:49 UTC by Trejkaz (pen name)
Modified: 2007-04-16 03:51 UTC (History)
0 users

Patch for picture extraction (8.19 KB, patch)
2006-12-20 14:51 UTC, Trejkaz (pen name)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Trejkaz (pen name) 2006-12-20 14:49:36 UTC
Image data in HSSF is all present, just not easily accessible from the user
model.  I've been working on a way to get it out to make things somewhat easier.
Comment 1 Trejkaz (pen name) 2006-12-20 14:51:37 UTC
Created attachment 19294 [details]
Patch for picture extraction
Comment 2 Nick Burch 2007-01-11 08:14:22 UTC
This code looks good, thanks for it.

Any chance you could knock up a quick test for it? I guess it just needs to
extract a pre-defined image out of a workbook, and check it has the right data
in it. That way, we can be sure we don't break the functionality in the future.
Comment 3 Yegor Kozlov 2007-04-16 03:51:49 UTC
I added a testacse (see 
src\testcases\org\apache\poi\hssf\usermodel\TestHSSFPictureData.java) and 
appllied the patch.