poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yegor Kozlov <ye...@dinom.ru>
Subject Re: Get text from a URL pointing to a ppt file
Date Fri, 11 Aug 2006 15:22:24 GMT
Hi,

I think it can be caching issue.

I guess your code was something like this:

  URL url = new URL("http://localhost:8080/analysis.ppt");
  URLConnection conn = url.openConnection();
  InputStream is = conn.getInputStream();

  SlideShow ppt = new SlideShow(is); //the order of slides is  incorrect

I would try to call conn.setUseCaches(false) before opening the input
stream:

  URL url = new URL("http://localhost:8080/analysis.ppt");
  URLConnection conn = url.openConnection();
  conn.setUseCaches(false);
  InputStream is = conn.getInputStream();

  SlideShow ppt = new SlideShow(is); //Does it fix the problem?

Regards, Yegor

LH> Hello,

LH> I am trying to use SlideShow.getSlides() to get slides from a URL pointing 
LH> to a powerpoint file. The problem is that I am not getting the 
LH> slides in the correct order. However, if I download the ppt file and run 
LH> the same program, The order of the slides is much closer to the real 
LH> order, i.e. at least I get the first few slides in order (and this is 
LH> what I need). Any idea how I can fix the problem?

LH> Thanks,
LH> Leila

LH> ---------------------------------------------------------------------
LH> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
LH> Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
LH> The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/


Mime
View raw message