×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    17

    Playing SVG Files but gzipped ( JSR 226 )

    Hi,

    What I understand is that JSR 226 specifies that the svg api should be capable of playing gzip compressed SVG file as well but I am not being able to play my gzip compressed SVG content. Can someone guide how can I play compressed SVGZ file, compression is necessary for me because the svg file needs to be downloaded over a network. Please note that an uncompressed svg file works fine

    I have written the following code but it throws an exception , the code is

    SVGImage SvgImg=(SVGImage)ScalableImage.createImage("http://.../test.svgz",null);

    Exception Description:

    >>>>>>>>>>>>>>>>>>> +++++ Loading failed ...
    java.lang.ArrayIndexOutOfBoundsException: -3200
    at com.sun.perseus.platform.GZIPInputStream.readBlock(Unknown Source)
    at com.sun.perseus.platform.GZIPInputStream.<init>(Unknown Source)
    at com.sun.perseus.platform.GZIPSupport.handleGZIP(Unknown Source)
    at com.sun.perseus.builder.ModelBuilder.loadDocument(Unknown Source)
    at com.sun.perseus.builder.ModelBuilder.loadDocument(Unknown Source)
    at com.sun.perseus.model.SVGImageImpl.loadDocument(Unknown Source)
    at com.sun.perseus.model.SVGImageImpl.createImage(Unknown Source)
    at javax.microedition.m2g.SVGImage.createImage(Unknown Source)
    at javax.microedition.m2g.ScalableImage.createImage(Unknown Source)
    at b.C.run(Unknown Source)

    Can someone help me ?

    --jainish

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Playing SVG Files but gzipped ( JSR 226 )

    I don't see anything in the specification that says it should provide access to gzip'd files. Where are you reading this?

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    17

    Re: Playing SVG Files but gzipped ( JSR 226 )

    Well thats what I read in http://developers.sun.com/mobility/m...dvg/index.html

    "Because XML text compresses well, SVG documents take up relatively little of the space in an application's JAR file. JSR 226 requires implementations to support SVG documents compressed with gzip. The extension .svgz denotes a gzip-compressed document"

    But I am not sure whether this article would be authoratative for JSR 226

    - Jainish

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Playing SVG Files but gzipped ( JSR 226 )


Similar Threads

  1. playing wma files in s60 5th edition emulator
    By vadlamudi1986 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2008-12-04, 16:35
  2. Read music files playing in another application
    By jorgeaugusto01 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-10-14, 16:02
  3. Replies: 1
    Last Post: 2007-08-11, 20:35
  4. Trouble playing wav files
    By Rozik in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2007-07-27, 13:55
  5. TinyLine SVG Minute Toolkit for J2ME: version 1.4 released
    By girow in forum Mobile Java General
    Replies: 0
    Last Post: 2003-05-05, 16:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×