Am Di, 2004-10-19 um 10.47 schrieb "Espen �. Pedersen":
> I'm trying to extract thumbnails from MS office documents and then
> convert them to jpeg or gif. So far I've managed to extract an byte[]
> array from a file...
> I've then tried writing the byte array to an FileOutPutStream and here I
> am with a 21 KB file, that I'm not really sure what is and how to
> display/read?
>
> I've tried thumbnail.getThumbnailAsWMF but it's gives an exception
> telling me that the format is not CFTAG_WINDOWS, wich probably is true ;-)
HPSF has no knowledge about the thumbnail formats. In the source code
resp. in the javadoc there are some links to Microsoft documentation
that might be helpful for you. But the bottom line is that you have to
find out yourself how to proceed. If you can create a general solution
I'd be interested to integrate it into HPSF.
Best regards
Rainer Klute
Rainer Klute IT-Consulting GmbH
Dipl.-Inform.
Rainer Klute E-Mail: [EMAIL PROTECTED]
K�rner Grund 24 Telefon: +49 172 2324824
D-44143 Dortmund Telefax: +49 231 5349423
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]