Show SVG-Image in WebView

Hello everybody,
I would like to reopen the following discussion: Show SVG-Image in WebView (JavaFX 8)
In our IDE (Eclipse Luna) running with jdk1.8.0_25 we load a html page into the webengine. The html page contains <img> tags with '.png' and '.svg' as src. Everything looks fine.
But if we execute the programm with java -jar, the WebEngine doesn't display the svg-files. Instead it shows the 'File not find'-Icon. The .png files still work
The files are definitly included into the jar and will be displayed if we link to them via <a href="someSvg.svg"></a>
So actually we have no idea why it doesn't work.
Any ideas ?
Greatings
Julian

Often the cause of things working in an IDE where things aren't packaged into a JAR but not working outside the IDE when things are packaged in JARs:
1. The relevant files aren't included in the JARs (based on the info in your question, this is not the case for you).
2. Your application is coded to use a file protocol or the File class rather than using getResource (again from the info in your question this is probably not the case for you).
3. You are using relative parent links (such as ..) in relative path references - these don't work inside Jar files - all references must be absolute, or relative to the current resource location or a child of that (e.g. ../myimage.svg won't work, but /myimage.svg or myimage.svg or /imgs/myimage.svg or imgs/myimage.svg will as long as the image is in the correct location).  This is probably too internally for things as well (for example if your html or svg file has an external reference).
So perhaps none of the above are your actual issues, just mentioning them in case.

Similar Messages

  • Why does safari not show my websites SVG images and every other browser it is fine ?

    I am a web developer and the way apple has developed there safari is driving everyone mad
    SVG images will work on every other web browser but wont show up in safari
    it is a html website and need to sort this issue out asap have anyone else had the same issue with safari

    I wanted to make it clear that I am not talking about the publically accessible Amazon Store but the Amazon Web Store which is used for those who have an online shop or set up e-commerce.
    The fact that Amazon is a large company does not protect it from making a crappy site. If its e-commerce pages don't work in Safari, that's laziness on the part of their web developers, pure and simple. There's no reason for a modern web site to fail to work in any standards-compliant web browser. This is something you'll need to address with Amazon.

  • SVG image does not appear in mobile version but does in desktop version

    Hi,
    I am new to using Muse and have created only one site before in Muse. I have taken screenshots to show the problem I am having.
    I have used Illustrator to create the following logo image that I save out as an SVG file:
    As you've probably guessed, I have used clipping mask to insert the marbly purple image into the shapes and text (this may be relevant to the problem, I don't know).
    I then save it out as an SVG with the following details as advised by Adobe:
    Then moving into Muse, I File > Place the SVG file. 'Unable to generate thumbnail' comes up in both desktop and phone versions:
    Regardless, I uploaded to FTP post to my website. While the SVG appears perfectly on my desktop browser, it does not show at all on my phone browser:
    This is not only happening on my phone, I have visited the same website on multiple phone devices and still the SVG image does not appear. Any ideas why this is happening?
    Have I totally missed something about file formats for mobile browser versions in Muse?
    Also- in illustrator, I saved the SVG logo for the mobile version as a SMALLER SVG than the one I saved for the desktop version.
    Thanks

    Use a PNG file. I see nothing in your logo that would warrant using anything else. You're not scaling it, there is no interaction and all you are doing is masking out some data that is pixels already. Pardon me, but using an SVG makes no sense at all. Beyond that one would need to see the file, but my guess would be that the "responsive" setting once again embeds some garbage data. Wouldn't be the first time...
    Mylenium

  • SVG Image blurred

    Hi,
           I am using an SVG image to be displayed on a pdf file.But the quality of image on pdf is not very clear.I had took printout of SVG object and pdf file and checked for the difference.SVG object printout is crystal clear and pdf printout is dotted and blurred.Is there anyway i can improve the quality of the image so generated on PDF?
    regards,
    Ravi Kumar.

    Hi Rick,Sacha
          Actually my SVG image doesn't possess any embedded images.It just consists of a text and a barcode which is to be displayed on a pdf file.I am observing the quality of the pdf to be very low after rendering.It's showing in the form of close dots.But the size of dots are huge enough to be noticed.(Pdf printout is not getting printed properly).  
          I had tried converting into .png and .jpeg format and observed the images.It's showing up in the same way.It may be due to sharp changes in contrast as Sacha mentioned.Is there any way in which i can improve the quality of image.I don't mine if i get the output in other format but it should be in a good printable format?
    Regards,
    Ravi Kumar.

  • How does Firefox handle xml:base when generating GET requests for SVG image elements?

    I am loading an SVG image at the following URL:
    http://localhost/howl/svg/id/543
    The source for this SVG code is:
    <svg xml:base="/howl/">
    <svg width="535" height="325" xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">
    <image xlink:href="file/id/532" />
    </svg>
    </svg>
    As you can see, the SVG code is located at one path, but the <image> is relative to the root, hence the wrapping xml:base attribute.
    The actual requests in Firefox, according to Tomcat Logging are:
    GET /howl/svg/id/543
    GET /howl/file/id/532
    However, Firebug's Net tab shows these requests:
    GET /howl/svg/id/543
    GET /howl/svg/id/file/id/532 (Incorrect, doesn't happen)
    GET /howl/file/id/532
    When I test the same thing in Safari and Chrome, all three GET requests actually happen, the incorrect one resolving in a 404.
    I suspect that Firefox is generating all three requests, but discarding the incorrect one and Firebug is not aware of this. As a result, Firebug shows all three requests, but the incorrect one never resolves.
    So, I'm curious about the behavior or whether I am doing this incorrectly.
    Thanks!

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.<br />
    See http://forums.mozillazine.org/viewforum.php?f=25

  • Error during "Save as XML" - SVG Image

    Hi,
    I am trying to save the book as XML (File à Save as XML), but its showing the attached error (FMError.PNG). FrameMaker created a error log and am pasting its header contents below.
    === Header Begin ===
    Internal Error: 9004, 6920492, 9676798, 0
    FrameMaker 9.0.0 for Intel
    Build: 9.0p237
    Window System: MSWindows
    Operating System: Windows NT 6.1 (major.minor.build: 6.1.7600 )
    Generated on: Wednesday, September 08, 2010 2:14:40 PM
    To file: C:\Users\30088130\AppData\Roaming\Adobe\FrameMaker\9\FrameLog_10.09.08_14.14.40.txt
    === Header End ===
    This errors occurs only if SVG images are present on the fm files.
    Please help me on this.

    I just tested with a small sample SVG file (from here:
    http://www.w3schools.com/svg/tryit.asp?filename=ellipse1&type=svg )
    and FM didn't crash when I did Save as XML.  I put the SVG inside an anchored frame.
    Could you test using that specific image and see if you get the crash or whether it's OK?
    Unfortunately FM did clip the right side of the image when the image is displayed, and also when the image is saved to XML  (it was converted to GIF in the export).
    Googling for "svg framemaker" brought up some old Framers list references to other issues with FM's SVG handling.
    I also notice that in the maker.ini there is a commented out reference to an SVG import filter in the APIClients section:
    ;SVG Import=FileToFileGFXImport, SVG, FrameImage, SVG, ORBL, SVG, SVG, filters\svgfilter.dll,all,^.svg
    SVG Import=FileToFileGFXImport, SVG, PDF, SVG, ORBL, SVG, SVG, filters\svg2pdf.dll,all,^.svg
    What it seems to be changing is that the second line will automatically convert SVG to PDF on import, so
    you might try the other filter:
    save a backup copy of the maker.ini, open the makier.ini in a text editor, then switch the semi-colon to the next line, save, and test to see whether you get any better results.
    Have you been able to successfully export any files with SVG, or does the problem only occur with some files?
    Also, exactly how are you importing the problem SVG file into FM? Referenced or embedded,  is it on a body page, master page, in an anchored graphic frame or not, etc?  Do you know what application was used to create the SVG files?
    Sheila

  • HT2531 Spotlight lists items and shows preview images.  BUT what about showing the location address of an item in my computer. Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS 10.5 was more u

    Spotlight lists items and shows preview images.  BUT what about showing the path/location address of an item in my computer.
    Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS X 10.5 was more useful.
    Old OSX Spotlight function automatically displayed path/location within the machine:  e.g. desktop/folder/sub-folder/item.
    Can I make Spotlight show the path?

    Press option-command and the path is displayed at the bottom of the little preview window.  Press command-return and the enclosing folder opens. 

  • After connecting a late 2008 MacBook to an external monitor can I show different images on them?

    After connecting an external monitor to my MacBook(late 2008) is it possible to show different images on the two screens at the same time?
    TIA

    Yes. Open System Preference (under the Apple menu) and select Displays. See the instructions in this Apple article for how to continue.
    Best of luck.

  • How to show an image(jpg/gif) on a JTabbedPanel

    Hi
    I tried to show an image on a JPanel of a JTabbedPanel.
    I the only way to show it for some time was this:
    in the StateChangedListener I use drawImage when the selected panel is teh one I want to draw the image at.
    Tracing code makes the panel show, burt when I step
    all the way up, the panel will be repainted without my image.
    I use mediatracker to get the image loaded.
    Any Idea
    Hanns

    JTabbedPane has components as its tabs. Using a JPanel is not mandatory. Try using a JLabel instead with an Icon (use ImageIcon) in it.
    JTabbedPane tabbed = new JTabbedPane();
    tabbed.addTab(
        "my image panel",
        new JLabel( new ImageIcon( "images/MyIcon.gif" ) )
    );if your were referring to the image of the little tabs, use this:
    JTabbedPane tabbed = new JTabbedPane();
    tabbed.addTab(
        "my tab",
        new ImageIcon( "images/MyImage.gif" ),
        myPanel // instance of Component, can be a JPanel or any JComponent you want.
    );

  • Browser should show ALL images, in all formats.

    I recently opened an image for editing from Lightroom to Photoshop, corrected some perspective distortion, and saved the result as a PNG.  Lightroom then failed to show the new image, even after I synchronized the folder.  A respondent in the Lightroom forum said that Lightroom doesn't support PNG, to which I ask, WTF?
    Lightroom should support any format supported by Photoshop.  It displays JPEGs, which aren't a raw format.  Exactly how many products should we have to run concurrently to simply manage images?  Lightroom is supposed to be the product that does it, but if it fails to show all images in each directory, it fails at its purpose.

    MikeLeone wrote: So you think LR should support BMP? PCX? How many cameras store their
    photos in these formats? PS supports them, but why should LR?
    I'll agree with support for PNG, at least as far as exporting, as some
    web sites like using this format rather than JPEG (although the
    reasons for using PNG aren't technical, but legal, AFAIK - licensing
    for using the JPG format - rather than something technical, like
    smaller file size, etc).
    Very true, though I am more arguing that LR should be able to leverage formats available to other Adobe products installed on the same machine more than anything.
    BMP and PCX, no most cameras don't use those formats *anymore*. But I remember having an old camera that took photos in BMP format (it may have been a webcam, but still a camera) which I have in my library from a long time ago. In my day job we still actually use applications that suprisingly enough can only display PCX images; though I never would intentionally keep anything in PCX.
    I think anything it is able to import it should be able to export; but again if you have it natively supported in the Adobe product or universally supported by the OS without additional codec installation it should be supported, even if it is something obscure as PCX.
    MikeLeone wrote:
    That should be a feature request for the camera manufacturers, then,
    shouldn't it? Ask them to share their non-published, proprietary
    drivers with Adobe? Or at the very least, publish an API so LR (and
    presumably, other programs) can call the code (presuming that the code
    is modular enough to be called by other programs, of course).
    Yeah, I understand that neither Canon nor Nikon are supporting DNG files straight out of the camera yet and both still maintain a propreitary formated RAW file, but I would suspect that generally a Canon .CR2 file doesn't change all that much if at all other than the camera identifier from a 20D to a 5D Mk II to the 7D for example.
    Why do current Lightroom users need to wait until Adobe releases 2.6 or 3.0 to be able to use Lightroom with their 7D?
    Why if Adobe releases a Camera RAW update for PS that includes the 7D does it still not work in LR?
    Yes the mfg. need to be more open or pick a standard and run with it, but it just seems excessive for Adobe not to play nice too.
    It is in Canon/Nikon/Adobe's best interest to play nice and share this information with Adobe. So I am betting they are not withholding it. I was getting Canon SDK notifications for the longest time and sometimes months before a Camera was available, and sometimes it was even annouced this information was made available to developers on new camera models. I am sure Nikon does the same thing and Adobe is getting this information from all mfg.
    Christopher

  • I forgot my admin password for my macbook and my macbook doesnt allowme to go on single user or boot up in safe mode or boot up with the option key all it does is show a image of a globe blinking everytime i try to do something

    please people help me i brought this macbook from a friend and now its ****** up its a macbook late 2006 and it dosesnt allow me to do anything everytime i click on a key to go on single user terminal or boot up cd or run on safe mode it shows a image of a globe(earth)

    Somehow the HDD is screwed up. Data saving issue is not directly Toshiba related issue and before you spend time here discussing about such things I recommend you to ask someone with good PC knowledge what can be done about data saving.
    When the HDD is in the notebook again start notebook as first step set BIOS to default settings.
    After doing this install recovery image. After doing this you will have clean preinstalled OS and everything should work properly again.
    I hope you will be able to do this using HDD recovery option.
    How to do this you can find on http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm
    Have you maybe created recovery discs?

  • How to show an image in JSP given the bytes[] of the photo?

    Hi all,
    I stored a user's picture in the db as text. For this I simply converted the JPG to bytes[] and from bytes to string: Base64.encode(bytes)
    Now I wish to do the reverse - to 'output' the image on the screen. So given the bytes[] of the image with
              byte[] bytesDB = Base64.decode(userPhotoStr); //userPhotoStr is something like this: /9j/4AAQSkZJRgA...Question: How can I show the image in the JSP page embedded in the page not as download?
    I'm using struts with JSP pages.
    Thank you!!!!

    Images in HTML are to be displayed using <img> element. All what an <img> element can take as image is an URL pointing to the image in question.
    If the image is dynamic, then you can just let that URL point to some Servlet which takes some request parameter or reads the path info, reads/gets the image as byte array or (much more efficient) as inputstream and writes it to the outputstream of the response.
    You may get some ideas out of this: [http://balusc.blogspot.com/2007/04/imageservlet.html].
    By the way, massaging the byte array from/to a String is a terribly bad idea. Just store bytes as computer readable bytes, not as human readable characters, this makes completely no sense. Characters on its turn have to be converted to bytes again after all, but now you've let the DB do the work. All with all a performance pain. Bytes > Chars > Bytes > Chars > Bytes instead of just Byes > Bytes. In database you normally use BLOB, BINARY or equivalent for this in combination with JDBC's PreparedStatement#setBinaryStream() and ResultSet#getBinaryStream().

  • Oracle lite application not showing blob images in BI reports

    Hi,
    We have an application running in Oracle lite, we integrated the BI publisher reports (PDF reports are generated Using Data template and RTF file with Java API for BI publisher) with the application. Its been working fine for a long time.
    Now we are showing some images on the pdf report, the images are stored in the Oracle lite database as blobs. My application fails when translating the Data template to xml data. I am not getting any exception other than out of memory error after a while.
    anybody had the same problem? Let me know if you need more information on this problem.
    Any help will be great!!
    Regards,
    Parthiban Kumar
    Edited by: Parthiban Kumar on Nov 12, 2009 10:45 AM

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • Photos 1.0 not showing all images from Photos Library.photoslibrary folder/file after update install

    I installed the update that changed my iPhoto to Photos 1.0, and the new Photos program is not showing all images from Photos Library.photoslibrary file/folder (not sure to call it file or folder since it is actually a folder with all my pics but it acts more like a file) after update install.  The Photos Library.photoslibrary file/folder shows to be 55 gb in size, and it shows to be loaded into the photos program, but there are maybe a few weeks of pictures showing instead of a few years.  Lots of pictures in the 55 gb are not showing for some reason. 

    No - iPhotos has not replaced anything - it is new and an addition - iPhoto is still on your system in the applications folder and still works just fine
    Outlook is not supported by Photos - not sure if the support must come form Apple or MS as Photos uses a different interface to external packages than iphoto did
    LN

  • Mail not showing embedded images

    This problem has been bugging me for a while.
    I am getting some emails (from my company communications) that are incorrectly formatted by Mail. I see big boxes labeled "Missing Plug-in". The rest of the text is there, but those big boxes make the mail hard to read.
    So today I decided to look a bit deeper into the problem. I brought it down to the presence of image tags that call for embedded images (included as attachments) using the "cid:" protocol. For example:
    <img src="cid:[email protected]" alt="Find" border="0">
    Is this a restriction in mail (I am running mail 6.1 on Mountain Lion). Or is there some config parameter I need to tweek to enable support for embedded images ?
    Thunderbird has no problem. I also did a quick check with Google Mail and Yahoo Mail, and neither show the images. But they just show nothing, so the resulting email is still readable. Mac OSX Mail shows big boxes with the "Missing Plug-in" note. I would be happy if Mail just ignored the images.
    I should point out that mail on iPhone and iPad work fine (they display the images).
    Albert

    Try this - worked for me...
    https://discussions.apple.com/message/20652845#20652845
    If that doesn't link properly, here's the original solution, cut and pasted:
    "MailPluginFix"
    From the Code2K:Labs site: http://code2k.net/products/mailpluginfix/
    From MacUpdate: http://www.macupdate.com/app/mac/37804/mailpluginfix
    Just download the fix and double-click it - next time you open mail, you'll see your attachments.

Maybe you are looking for

  • Good documentation

    I have a subscription for Office 365 and am using Project Pro for Office365 as well as Project Online.  I know how to use project when storing project locally. I am struggling with understanding and managing projects through office365 and integrating

  • How to add sprite component to application

    Hi, In my application i am using a custom component which extends Sprite class. I am adding this component to application as <local:mySprite width="500" height="300" /> but it is showing following error on application run; Type Coercion failed: canno

  • Exit for delivery Date check in Sales order [Via EDI]

    Hi Friends , We have a requirement in which if the Sales Order is created Via EDI with INVALID delivery date then I have to set a flag in some Z Table . I have tried searching for exits and debugging the code but was unable to find a place where SAP

  • Trying to get rid of banding in an Illustrator CS6 image

    I'm working on a small project in Illustrator CS6, and a gradient within the project is quite visibly displaying banding. I would use Photoshop's dither to fix this, if not for the fact that I'm going to export this as an SVG, rather than a raster im

  • How can I change the language in the dictionary preferences of Indesign by AppleScripting

    Hi Everyone, I am new to applescripting and it's usage in Adobe Indesign. I am trying to working on a requirement, where I need to make the language of Indesign document to "English: USA" in the dictionary preferences. I tried to change the language