You Are Here:

Community: Developer Discussion Boards

#1 Old Question svg createImage from InputStream problem - 2009-03-20, 11:36

Join Date: Nov 2008
Posts: 1
xylia
Offline
Registered User
I have a problem with svg image. On different mobile phones, that have svg support, my application stops on step:
svgImage = (SVGImage) SVGImage.createImage(ist, null);
The last thing i'm getting on mobile display is f.append("step 2");
It doesn't catch any exception. On emulator it works fine and when trying to load an image sperately - not as a part of application that is - it also loads as it should. Problem only occurs when i try to run application including svg image.

Does anyone know what could be the problem? I am running out of ideas here :(

Thanks in advance,
Sara

Part of my code:

Form f = new Form("Forma");
display.setCurrent(f);

InputStream ist = getClass().getResourceAsStream("/svgImage.svg");
f.append("Step 1");

try
{
f.append("step 2");
svgImage = (SVGImage) SVGImage.createImage(ist, null);
f.append("Step 3");
}
catch(Exception e)
{
f.append("Exception: Step 4");

}

Code of svgImage.svg:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG Tiny 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">

<svg width="240" height="220" version="1.1" xmlns="http://www.w3.org/2000/svg" baseProfile="tiny">
<circle id="circle" cx="75" cy="75" r="25" fill="#C8C800" fill-opacity="0.5" stroke="#000000" stroke-width="5.0"/>
<rect id="rect" x="75" y="75" width="50" height="50" fill="#640000" fill-opacity="0.5" stroke="#000000" stroke-width="5.0" />

</svg>
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Svg problem vineet.jain General Symbian C++ 5 2009-01-27 06:51
Problem on SVG text drawing position sam@speedalert.com.au Mobile Java General 1 2008-05-30 16:27
SVG image resize problem mobile_don Symbian Media (Graphics & Sounds) 2 2008-03-28 06:03
Problem with CreateImage maghal Mobile Java Media (Graphics & Sounds) 11 2006-10-19 15:38
Problem with the NAC example: svg app icon doesn't always scale svdwal Symbian Tools & SDKs 1 2006-07-13 19:05

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ