Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4366534

URLConnection.guessContentTypeFromStream fails for .xla

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta
    • x86
    • windows_nt



      Name: skT45625 Date: 08/28/2000


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-001, native threads, symcjit)

      A call to URLConnection.guessContentTypeFromStream never returns if content is
      an .xla file. It also doesn't return on JDK 1.3, but it does on 1.1.8 (null).

      Example code:

      URL url = new URL("http://ftp.reproms.si/pub/reproms/Office/Excel/html.xla");
      URLConnection uc = url.openConnection();
      String streamContentType = URLConnection.guessContentTypeFromStream
      (uc.getInputStream());

      Best regards
         Samo Login
      (Review ID: 108984)
      ======================================================================

            jccollet Jean-Christophe Collet (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: