How to read OLE Object of Package Part for reading of embedded zip file in java? -


hi new comer java developer of ole object of package part. facing issue read embedded zip docx file in current project. have read docx file , package part read embedded object . returns packagepart class.

we need read zip file has excel files. confuse how read data excel files.

i using code this.: -

packagepart ppart = null;          iterator<packagepart> piter = null;          list<packagepart> embeddeddocs = document.getallembedds();          if (embeddeddocs != null && !embeddeddocs.isempty())           {              piter = embeddeddocs.iterator();              while (piter.hasnext())               {                  ppart = piter.next();                 //system.out.println(ppart.getpartname().getextension());                    system.out.println(ppart.getinputstream());                }          }      }     catch (exception e)     {         e.printstacktrace();     } 

this code provides output like

java.io.bytearrayinputstream@2862c542 java.io.bytearrayinputstream@6c8484c4 java.io.bytearrayinputstream@70289784 java.io.bytearrayinputstream@78f394a2 

it possible can read data attached zip in docx file ?
can save data zip hard disk ?

please me interest.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -