Overriding an image embeded in SWC?

Hi,
Is there a way to override an image that is embeded inside an SWC?
I have created a custom preloader displaying a simple logo in addition to the usual progress bar.
I'd like to share this as a SWC file but I don't know how to let people provide their own image (i.e. overriding mine).
I initially thought just to put my class in the SWC (without the image) and let users add the image in their assets directory but when doing so, my SWC doesn't compile ;-)
Can someone tell me what I missed?
Thanks!

We finally got this one ourselves. If we put update(g) in the paintComponent method after super.paintComponent(), the image comes up. Hopefully we can fix the full-size JApplet now that we know this.

Similar Messages

  • Send html email with image embedded

    Hi Guys,
    I want send an email using class CL_BCS.
    Can someone please help me to tell me how can we send the email with image embedded in the body?
    The image is stored in the mime repository and was uploaded through se78.
    I have searched online but am not able to send it.
    It will be great if someone has working code for this.
    Regards,
    Dhruv Kashyap

    Hi go to T-code : SMW0   -- To upload the images , after that you can find that entries in wwwparams table .
    Refer this .
    **************** - Display images (like company logo) on the selection-screen
    In order to send it as email you have to add  attachment type as BMP from you BCS class.
    Just try you can .

  • Retrieving Images Embedded In XML (from rss using xsl)

    I am trying to comsuem and rss feed into my site but i dont seem to see an "image" element in the Item node. can someoen tell me how to retrieve Images Embedded In XML dreamwaever. i am using an xsl fragment on a pap server.
    Doh

    Hi there, I am using a jsp page that takes a xml page from the internet (user defines what page it is) it then takes the xsl feed and transforms the xml with a TransformerFactory object to get the results as an html page, the error is received when the jsp page is called
    Ian

  • How do images embeded in InDesign link when using Creative Cloud on more than two desktops?

    How do images embeded in InDesign link when using Creative Cloud on more than two desktops?

    If I am understanding your question correctly, you shouldn't have to worry about embedded images in InDesign. Once embedded, the image is stored within the file.
    If you are wondering about linked images... InDesign will follow the path on your computer and, if it does not find the image, you will recieve a notification. Edit: To prevent this, I would suggest packaging your file using File > Package... This will create a folder with all of your fonts and linked graphics so that you need not worry about broken links.  I just remembered that you cannot upload folders directly to Creative Cloud so a packaged folder wouldn't be very helpful unless you wanted to upload each file manually.
    The best solution I see right now is to either embed the graphics in the document, or upload the images with your document to relink.
    I hope this helped,
    Michael

  • How to stop images embedding in message when I forward to other recipients

    I have looked long and hard in this forum but can't see others having the same problem or a solution to this problem so I think it must be unique to me.
    When I receive an email that contains any type of image format and then I try to forward the message to others the recipients on the other end claim it is embedding the image into the content of the email and can't be downloaded. Before I send the email I am careful it is showing as an attachment. I've even tried to delete the attachments and reattach them to avoid this and still it is ending up embedded on the other end. This only happens when I forward an email- this doesn't happen when I create a new email.
    I have read others having this problem and claiming it has something to do with Apple and how Mail creates HTML- but it impairs me completely in my work process when I need to forward an image. Any suggestions out there?

    I failed to mention the best way to forward messages without embedding the images in the new forwarded copy is to +create a new message+ and attach the email message to the new email message. It comes across great but my problem of doing this or what was just suggested takes away the simplicity of just clicking forward and have everything sent properly. Too many steps....
    Why is mail embedding the images into the body of the email on a forwarded email?

  • Why do the colors in images embedded in word (TIFF/JPEG) export off-color from Acrobat?

    I chose this forum as opposed to the printing and pre-press forum because I have a very limited existing knowledge of color space and profile matching and I didn't want to be (1) shunned and (2) overwhelmed by the level of technical detail.
    When I attempt to PDF a word document that contains a TIFF image, the TIFF image appears SIGNIFICANTLY off color.  I was able to substantially correct the problem by extracting the TIFF image within the Word document and resaving it as a JPEG, but it still isn't 100%.
    Here's what I know:
    I'm using Windows 7; Word 2010; and Acrobat X.  I also have Photoshop CS5.1 and InDesign CS4.
    My color SETTINGS are matched in each application to be tied to my monitor, and my monitor is set to the system default, which is a system default: :sRGBIEC61966-2.1"
    I'm using the document for professional purposes, so color matching is important to me, but I'm working with what is available to me at a nonprofit, so that means an Acer X183h monitor and a Canon iR C5185 networked office printer and no real color management policy or equipment.
    I'm looking for the best possible solution to maintain color performance between the monitor and the printer.

    Incredibly as I posted this the solution came to me - I leave it to the moderators to determine whether this should be preserved or deleted.  I wasn't able to find any help on this and it might be valuable to other users.
    The image itself that was embedded in the Word Document had a CMYK color profile. It was displaying appropriately in the software, but wouldn't convert to PDF or print. I opened the source file in Photoshop and converted it to my working profile, then re-added it to the word document and it is now reliably reproducing in the right color.
    Since dropping outside images into word is a common (if also poor) work process for people creating documents in the nonprofit sector, I think this kind of information could be valuable in the knowlegebase.

  • Acrobat Forms - receiving Images embedded in Distributed Forms

    Hi, I've been using the Acrobat forms through Live Cycle for a while now for small simple projects, but trying to implement it now in something a bit more complex (as well as learning more as I go).
    I've made a form in LiveCycle ES2 requesting Text, Radio Buttons ...
    ...BUT also that the respondee can send their company logo with the form. To make it simpler than just attaching the logo seperately in an Email.
    I've found the Image Field Object which allows the respondee to upload their Logo into the PDF which then gets mailed back to me.
    What I haven't seen is a way to extract this logo to a databank or similar.
    The text I can collect, sort through, and export as CSV or XML which is great, but other than the logos being embedded in the returned PDF, they don't seem to be accessible anywhere.
    I've probably overlooked it somewhere. (I hope). Can someone assist?
    (I'm also not certain what the difference between creating forms in LiveCycle and straight through Acrobat is, but I'll ask that in another question).
    Thanks Angus
    Acrobat X Pro
    LiveCycle ES2
    CS 5.5 Design Pro Suite

    Since your question is specific to Designer, ask in the LiveCycle forum. Be aware that adding pictures is a rather new process and may not work for folks with older versions of Acrobat or Reader (don't remember how far back this goes).

  • Saving canvas as an image: embedded in an applet

    hi everyone,
    I'm trying to save shapes I've drawn in a canvas as a jpg. This works, thanks to a solution I found somewhere in one of these forums. However, I need to embed the application in an applet, and in that case it doesn't work anyone. Here is some code that works when I don't use applets:
    public class MenuItemHandler implements ActionListener{
              public void actionPerformed(ActionEvent e) {
                   try{
                        FileDialog fd = new FileDialog(new Frame(), "Save as JPG", FileDialog.SAVE);
              fd.setFile("canvas.jpg");
              fd.setVisible(true);
              String name = fd.getDirectory() + fd.getFile();
              File file = new File(name);
                        ImageUtils utils = new ImageUtils();
                        BufferedImage image = utils.createComponentImage(tc);
                        utils.encodeImage(image,file);
                   catch(Exception ex) {
                        ex.printStackTrace(); }
         class ImageUtils {
              private JPEGImageEncoder encoder = null;
              private FileOutputStream fileStream = null;
              public BufferedImage createComponentImage(Component component){
                   BufferedImage image = (BufferedImage)component.createImage(component.getWidth(),component.getHeight());
                   Graphics graphics = image.getGraphics();
                   if(graphics != null) { component.paintAll(graphics); }
                   return image;
              public void encodeImage(BufferedImage image, File file) throws IOException{
                   fileStream = new FileOutputStream(file);
                   JPEGEncodeParam encodeParam = JPEGCodec.getDefaultJPEGEncodeParam(image);
                   encoder = JPEGCodec.createJPEGEncoder(fileStream);
                   encoder.encode(image,encodeParam);
                   fileStream.close();
    When the code is embedded in an applet, I see my appliaction and I get my save dialog box, but there won't be written any file anymore. I suppose it has something to do with the fact that I don't use getDocumentBase() or getCodeBase(), but I'm not sure about that, and if this is the reason, I don't know exactly how to implement it in the code.
    I hope that someone can help me!!
    Thanks in advance!

    hi everyone,
    I'm trying to save shapes I've drawn in a canvas as a jpg. This works, thanks to a solution I found somewhere in one of these forums. However, I need to embed the application in an applet, and in that case it doesn't work anyone. Here is some code that works when I don't use applets:
    public class MenuItemHandler implements ActionListener{
              public void actionPerformed(ActionEvent e) {
                   try{
                        FileDialog fd = new FileDialog(new Frame(), "Save as JPG", FileDialog.SAVE);
              fd.setFile("canvas.jpg");
              fd.setVisible(true);
              String name = fd.getDirectory() + fd.getFile();
              File file = new File(name);
                        ImageUtils utils = new ImageUtils();
                        BufferedImage image = utils.createComponentImage(tc);
                        utils.encodeImage(image,file);
                   catch(Exception ex) {
                        ex.printStackTrace(); }
         class ImageUtils {
              private JPEGImageEncoder encoder = null;
              private FileOutputStream fileStream = null;
              public BufferedImage createComponentImage(Component component){
                   BufferedImage image = (BufferedImage)component.createImage(component.getWidth(),component.getHeight());
                   Graphics graphics = image.getGraphics();
                   if(graphics != null) { component.paintAll(graphics); }
                   return image;
              public void encodeImage(BufferedImage image, File file) throws IOException{
                   fileStream = new FileOutputStream(file);
                   JPEGEncodeParam encodeParam = JPEGCodec.getDefaultJPEGEncodeParam(image);
                   encoder = JPEGCodec.createJPEGEncoder(fileStream);
                   encoder.encode(image,encodeParam);
                   fileStream.close();
    When the code is embedded in an applet, I see my appliaction and I get my save dialog box, but there won't be written any file anymore. I suppose it has something to do with the fact that I don't use getDocumentBase() or getCodeBase(), but I'm not sure about that, and if this is the reason, I don't know exactly how to implement it in the code.
    I hope that someone can help me!!
    Thanks in advance!

  • Unable to view in line images embedded in forum messages

    Using Firefox 4.01 on win 7 - 64
    Viewing a Yahoo forum message the in line images are not visible to me but other users do see them (do not know which browser they use)
    I can see the images as attachments - just not when embedded in the message body

    *Check the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
    *Check that images are enabled: Tools > Options > Content: [X] Load images automatically
    *Check the exceptions in "Tools > Options > Content: Load Images > Exceptions"
    *Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images with the cursor Down key).
    If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
    There are also extensions (Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load

  • Images embedded in styles no longer show in generated webhelp

    I am using RoboHelp HTML Version 8 and generating webhelp for interent explorer/firefox.
    Before christmas when i compiled my project everything looked fine when i reviewed the outcome. However, since coming back in january and compiling my help again, things seems to have gone awry with how the help looks once compiled. I have noticed a couple of issues:
    1. There are a number of images that are embedded in the certain styles (and references in my css file) in the project. However, these images now don't show and they have been replaced by bullet points.
    2. I use a horizontal line as a placeholder to split up the page - this line is now a lot thicker than it looked before.
    The strange thing is that the help topics look exaclty the same in RoboHelp and the preview so i'm not sure what has gone wrong here. I suspect it is an issue with my css file, but i compared the generated file with one i generated last month and they were exactly the same!
    Below are two pictures, the first one displaying how the topic looks in RoboHelp preview (this is how it looked when i compiled it last month) and the second one displaying the compiled output in internet explorer:
    Any advice would be much appreciated as given the prevalence of these images it would take me a significant amount of time to manually change every instance.

    Hi,
    I also noticed this problem. What I accidently discovered
    that worked for me, is that as long as the characters in the path
    were all together with "no spaces," everything worked fine. I used
    underscores to connect words. I sell on eBay as well as designing
    web sites, so I need DW to generate the code for me to paste into
    eBay's html "code box." So anyway, I would create the web page in
    my DW eBay template, and then upload it to my server. Then I would
    go back to DW, and enter the absolut path(s) for all the pictures
    to my server. As long as the path is connected with no spaces, it
    works.

  • Drawing a rectangle on an Image embedded in a JLabel

    hey everybody,
    I'm trying to implement a program that can select parts of an image using a rectangle that's formed while the mouse is dragging. The image is embedded within the JLabel and I have already overriden the paintcomponents method. So far, I'm able to draw lines and shapes on the image before the program runs. But I need to be able to draw in real time and I don't know how to do that. Can someone please help me? Thanks a lot.
    Here's my code if anyone wants to look at it:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    public class test{
         static int x1, y1, x2,y2;
         static boolean drawing;     
         static Graphics gr;
         public static void main(String[] args){
         JFrame jframe = new JFrame();
         jframe.setSize(1000,800);
         jframe.setVisible(true);
              WindowListener c = new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              jframe.addWindowListener(c);
         ImageIcon icon = new ImageIcon("c:/60.jpg");
         Image i = icon.getImage();
         JLabel lab = new JLabel(icon)
              public void paintComponent(Graphics gr) {
                        super.paintComponent(gr);               
                        paints(gr);          
         MouseMotionListener drag = new MouseMotionAdapter() {
                        public void mouseDragged(MouseEvent e) {
                             x2 = e.getX();
                             y2 = e.getY();
                             drawing = true;
                             //System.out.println(e.getX()+" "+e.getY());
         MouseListener click = new MouseAdapter() {
                   public void mousePressed(MouseEvent e) {
                        x1 = e.getX();
                        y1 = e.getY();
                        drawing = true;
                   public void mouseReleased(MouseEvent e) {
                        x2 = e.getX();
                        y2 = e.getY();
                        drawing = false;
         lab.addMouseMotionListener(drag);
         lab.addMouseListener(click);
         JPanel pan = new JPanel();
         pan.add(lab);
         jframe.getContentPane().add(pan);
         jframe.setVisible(true);
    public static void paints (Graphics gr)
         Graphics2D write = (Graphics2D)gr;
                   write.setColor(Color.BLUE);
                   int x3 = Math.abs(x1-x2);
                   int y3 = Math.abs(y1-y2);
                   write.drawRect(x1,y1,x3,y3);
    }

    hey everybody,
    I'm trying to implement a program that can select parts of an image using a rectangle that's formed while the mouse is dragging. The image is embedded within the JLabel and I have already overriden the paintcomponents method. So far, I'm able to draw lines and shapes on the image before the program runs. But I need to be able to draw in real time and I don't know how to do that. Can someone please help me? Thanks a lot.
    Here's my code if anyone wants to look at it:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    public class test{
         static int x1, y1, x2,y2;
         static boolean drawing;     
         static Graphics gr;
         public static void main(String[] args){
         JFrame jframe = new JFrame();
         jframe.setSize(1000,800);
         jframe.setVisible(true);
              WindowListener c = new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              jframe.addWindowListener(c);
         ImageIcon icon = new ImageIcon("c:/60.jpg");
         Image i = icon.getImage();
         JLabel lab = new JLabel(icon)
              public void paintComponent(Graphics gr) {
                        super.paintComponent(gr);               
                        paints(gr);          
         MouseMotionListener drag = new MouseMotionAdapter() {
                        public void mouseDragged(MouseEvent e) {
                             x2 = e.getX();
                             y2 = e.getY();
                             drawing = true;
                             //System.out.println(e.getX()+" "+e.getY());
         MouseListener click = new MouseAdapter() {
                   public void mousePressed(MouseEvent e) {
                        x1 = e.getX();
                        y1 = e.getY();
                        drawing = true;
                   public void mouseReleased(MouseEvent e) {
                        x2 = e.getX();
                        y2 = e.getY();
                        drawing = false;
         lab.addMouseMotionListener(drag);
         lab.addMouseListener(click);
         JPanel pan = new JPanel();
         pan.add(lab);
         jframe.getContentPane().add(pan);
         jframe.setVisible(true);
    public static void paints (Graphics gr)
         Graphics2D write = (Graphics2D)gr;
                   write.setColor(Color.BLUE);
                   int x3 = Math.abs(x1-x2);
                   int y3 = Math.abs(y1-y2);
                   write.drawRect(x1,y1,x3,y3);
    }

  • Extracting Base64 images embeded inside XML and Convert it into PDF using Biztalk

    Hi,
    I'm presently working in a scenario, where we will be getting huge XML Files containing Base64 encoded images. The scenario goes like this :-
    1) Client will dump the XML files with embedded Base64 images in a sFTP location.
    1) Firstly, we have to extract Base64 encoded images and the metadata from the XML file.
    3) Secondly, we need to convert the extracted Base64 encoded image into multiple pdf.
    4) Then merge the PDF's into a single file.
    5) Then the merge pdf will store to a particular location.
    5) It is presume that, the file will be of very big in size ~ 1 GB XML file, so we need to take care of the performance as well.
    The sample xml looks like:-
    <ns0:tran xmlns:ns0="http://Sample.Schemas.Record_XML">
      <tranheader>
      </tranheader>
      <item>
        <image>
          <frontimage>
            <frontimage> image 1 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 1 part 2</rearimage>
          </rearimage>
          <frontimage>
            <frontimage> image 2 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 2 part 2</rearimage>
          </rearimage>
          <frontimage>
            <frontimage> image 3 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 3 part 2</rearimage>
          </rearimage>
        </image>
      </item>
      <trantrailer>
      </trantrailer>
    </ns0:tran>
    Thanks & Regards

    Do you really need to use BizTalk for this requirement? This can be done better with standard .NET code through a Windows service/schedule task/ if you want to poll,
    you can implement file watcher class and poll the file as when it arrive to SFTP folder and convert the image in base64 to PDFs.
    Another point, I don’t know why you want to “convert the extracted Base64 encoded
    image into multiple pdf” (Point-3) and “Then merge the PDF's into a single file”-
    point4. You can create a single PDF file (unless I don’t know the reason for creating separate PDF file and merge it again as single PDF file)
    Anyway, if you still need to use BizTalk, you have somes options in general:
    Option1:
    Receive the message using BizTalk receive location using passthrouhg pipeline at receive end
    Create a send port with filter for receive portname. In the send port use a custom send pipeline. In the send pipeline use a custom pipeline component which will extract the base64 content from
    the XML file, convert the base64 encoded image as PDF and send the PDF file in the send port level.
    Option 2 – this options works better if you have some process based on your
    <tranheader> record:
    Receive the message using BizTalk receive location using a custom pipeline strip off, decode and store the base64
    encoded document in a temporary store (file system). So when the message is published in message box db, the message doesn’t contain the heafty encoded64 data part, message will be light weight when its published into message box.
    Process the XML message (without bae64 encoded document) with or without orchestration where you will do processing based on your
    <tranheader> record.
    In send last moment –at send port level, retrieve the stored file from the
    temporary store (file system), convert the image to PDF (i,e, hefty processing like creation of PDFs/merging) can be done at the send pipeline level and send the PDF file
    to destination.
    Following are the guidelines you should keep in mind if you need to achieve this process in BizTalk:
    Try to avoid publishing the hefty message to message box.
    Conversion of base64 to PDF can be done only using a .NET code. So your options to do this conversion in BizTalk are either in Receive pipeline/send pipeline/ .NET helper in orchestration.
    Try not to use Orchestration as much as possible, because of heavy processing and message transmission is already involved.
    Following articles shall help you in this context:
    Dealing with base64 encoded XML documents in BizTalk
    To convert Base64 to PDF/JPEG using C# code:
    TechNet-Wiki Code: Converting Base64 strings
    to Bitmap images
    Convert Image to Base64 String and Base64
    String to Image
    Base64 encoding and decoding in .NET
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • EMF images embedded in Excel 2010 documents don't display when the same document is loaded into Excel 2013

    I have a fairly large spreadsheet which creates layout floorplan maps based on a table of 3,000+ room locations and various cross-referenced attribute lookup tables which add flags & colour coding to the individual rooms. The maps also
    include a few graphic elements beyond simple cells and borders, such as EMF images to indicate stairways, etc.
    The sheet works perfectly on my Win7 desktop in Excel 2010:
    However when loaded into Excel 2013 on my Win7 laptop, all of the images show as a red cross with the wording "This image cannot currently be displayed", thus:
    Any ideas, as this looks like a bug in Excel 2013? Thanks.
    Andre

    Hi Andre,
    What happens if you reimport the images from original source?
    Try Running Excel Program firstly, and then open this file within Excel (File->Open).Also if you have Excel 2010 installed , try to open the file using Excel 2010, copy an paste the content to a blank Excel file.
    You can also try to check the option 'Disable hardware graphics acceleration'. File->Options->Advanced ...
    Wind Zhang
    TechNet Community Support

  • How do I get thumbnails of images embedded into our RSS/Atom feed

    We have an RSS feed enabled on our CQ5 blog at http://www.wsidesignermarketplace.com/content/designer/Design_Blog/_jcr_content.feed?type= rss2 which we want to pull into a content widget.  This feed does not have images/thumbnails enabled.
    Can someone walk me through how we can enable thumbnails from the blog into the RSS feed?

    Do you have a back up of the iPhoto library from before the crash?
    LN

  • Converting a pdf image embedded in an XML file to a PDF file

    Hi experts,
    I have an XML file which contains a PDF image of a billing document and i want to extract this PDF image and convert it into a PDF file.
    Any ideas how to do this?
    Thanks
    Ally

    Answered!!

Maybe you are looking for

  • How to select a specific column in a bean method?

    Hey everyone, I'm trying to select a specific column in my adf table so i can hightlight the ones i can after, with a method bean that does a match from another table. I'm using JDeveloper 12.1.2.0.0. Here's my table at the moment (its a static list

  • HT201320 How can I add my college Email..

    How do I know if I have the correct incoming and outgoing mail server??

  • Contacts and Calendar Services Broken

    I have a new build of Mountain Lion Server 10.8.2 and am having problems with the Contacts and Calendar services. The server is an Open Directory Master. I did this build by installing Mountain Lion 10.8 on a new hard drive. I had no interest in migr

  • New installation of MariaDB does not start with systemctl

    Just installed MariaDB, and I get this: # systemctl start mariadb.service Failed to issue method call: Unit mariadb.service failed to load: No such file or directory. Is there something I'm missing?

  • Customizing Oracle ADF Default Skins

    Hello, My JDeveloper Version is 11.1.2.1.0. R2 Is there any tutorial about Customizing oracle adf default skins. For Example I want to change some CSS Properties of "Simple" Skin. I know I can change some properties by using Inline styles but it is n