Displaying image on the button

hi there,
well i wanna display image on my applet button from the relative path how do i do.
here is my code which i tried gave me nullpointer exception and i did put this code my applets constructor:
URL url1 = new URL(getDocumentBase().toString()+"b.gif");      
ImageIcon image1 = new ImageIcon(url1);
JButton button = new JButton(image1);

SanderSander
the code u have given failed to work well here is the code which i tried :
ImageIcon image1 = new ImageIcon(getImage(getCodeBase(),"b.gif"));      
JButton button = new JButton(image1);
and here is the html code for applet :
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<SCRIPT LANGUAGE="JavaScript"><!--
var info = navigator.userAgent; var ns = false;
var ie = (info.indexOf("MSIE") > 0 && info.indexOf("Win") > 0 && info.indexOf("Windows 3.1") < 0);
//--></SCRIPT>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
var ns = (navigator.appName.indexOf("Netscape") >= 0 && ((info.indexOf("Win") > 0 && info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0)));
//--></SCRIPT></COMMENT>
<SCRIPT LANGUAGE="JavaScript"><!--
if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "500" HEIGHT = "300" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"><NOEMBED><XMP>');
else if (_ns == true) document.writeln('<EMBED type="application/x-java-applet;version=1.3" CODEBASE="http://192.168.1.50/paddy/ns/ns" CODE = "GPTextEditor" MAYSCRIPT="true" WIDTH = "500" HEIGHT = "300" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED><XMP>');
//--></SCRIPT>
<APPLET CODE = "GPTextEditor" WIDTH = "500" HEIGHT = "300"></XMP>
<PARAM NAME = CODE VALUE = "GPTextEditor" >
<PARAM NAME = CODEBASE VALUE = "http://192.168.1.50/paddy/ns/ns" >
<PARAM NAME=MAYSCRIPT VALUE=TRUE>
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="true">
</APPLET>
</NOEMBED></EMBED></OBJECT>
i m using swing applet.....

Similar Messages

  • My 8530 does not display images in the browser

    My bb 8530 a few weeks ago suddenly stopped displaying images in the browser. Browser options are set to "display images". I've power cycled many times, even reset and wiped, but still no images in browser. How can I fix this? Thanks.

    hi i have noticed the same problem. also with Chrome and FP ver 11.5.31.2and Firefox and Safari with FP 11.5.502.110
    it seems that MovieClipLoader class not returning onLoadInit event. I use to add a fadein function on loadInit to fade in the loaded images. with the latest Flash PLayer versions this is not activated so you cannot see the loaded images.
    I have tested this on 3 different systems and the problem is the same. I have not updated my FP for IE. There, the older FP still works well.
    test systems
    Mac OS LionSafari and FP 11.5.502.110 --- DOES NOT WORK WELL
    Windows 7 64 bit
    chrome 23.0.1271.95 with FP 11.5.31.2  - DOES NOT WORK WELL
    Firefox 16.02 with FP 11.5.502.110  - DOES NOT WORK WELL
    IE 9 with FP version 11.4.402.287  - WORKS
    Windows XP SP3
    Firefox 16.02 with FP 11.5.502.110 - DOES NOT WORK WELL
    IE 8 wth FP 11.4.402.287  - WORKS
    chrome 23.0.1271.95 with FP 11.5.31.2  - DOES NOT WORK WELL

  • Displaying image in the Title bar

    hi ,
    can any one help me to display image in the JFrame Title Bar Left Corner, Right Corner, orMiddle ..

    double post http://forum.java.sun.com/thread.jsp?forum=57&thread=554453

  • How to add image in the button Objects.

    Dear All,
    I need image in the button object. I don't know whether it is possible or not.
    If anyone know the idea for solving this problem Please siggest me.
    Thank you
    saroj neupane

    You cannot put an image on a button put you can have an image then create a clear button that you can put over top of the image. Send the image to the background then set the background fill of the button to none. This will make the button transparent. You may need to play with the borders of both obejcts to get the effect you want.

  • Problm with 'notepad' code..image of the buttons not displayed..help.. ;-(

    I have a source code for developing a notepad but the problem is that when i run it the buttons which i've used as shortcuts don't have there photos displayed on them... they just come across as a rectangular button rather than a cut or a copy photo...i've even saved those images in the c drive only where other files like .class file are stored still its not working...plz help...
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    public class Notepro extends JFrame implements ActionListener
         JMenuBar mbar;
         JMenu file,edit,format,font,font1,font2;
         JMenuItem item1,item2,item3,item4;
         JMenuItem item5,item6,item7,item8,item9,item10;
         JMenuItem fname1,fname2,fname3,fname4;
         JMenuItem fstyle1,fstyle2,fstyle3,fstyle4;
         JMenuItem fsize1,fsize2,fsize3,fsize4;
         JButton button,button1,button2,button3,button4,button5;
         JPanel mainpanel;
         JTextArea text;
         JScrollPane jsp;
         String command=" ";
         String str=" ";
         String str1=" ",str2=" ",str3=" ";
         String str4=" ";
         String str6=" ";
         String str7=" ",str8=" ",str9=" ";
         int len1;
         int i=0;
         int pos1;
         int len;
         public Notepro(String str)
         super(str);
         mainpanel=new JPanel();
         mainpanel=(JPanel)getContentPane();
         mainpanel.setLayout(new FlowLayout());
        MyWindowAdapter adapter=new MyWindowAdapter(this);     
        addWindowListener(adapter);
         mbar=new JMenuBar();
         setJMenuBar(mbar);
         file=new JMenu("File");
         edit=new JMenu("Edit");
         format=new JMenu("Format");
         file.add(item1=new JMenuItem("New..."));
         file.add(item2=new JMenuItem("Open"));
         file.add(item3=new JMenuItem("Save As..."));
         file.add(item4=new JMenuItem("Exit"));
         mbar.add(file);
         edit.add(item5=new JMenuItem("Cut"));
         edit.add(item6=new JMenuItem("Copy"));
         edit.add(item7=new JMenuItem("Paste"));
         edit.add(item8=new JMenuItem("Delete"));
         edit.add(item9=new JMenuItem("Select All"));
         mbar.add(edit);
    format.add(item10=new JMenuItem("Font"));
         mbar.add(format);
            button = new JButton(new ImageIcon("new.gif"));
              mainpanel.add(button);
              button1 = new JButton(new ImageIcon("open.gif"));
              mainpanel.add(button1);
              button2 = new JButton(new ImageIcon("save.gif"));
              mainpanel.add(button2);
              button3 = new JButton(new ImageIcon("copy.gif"));
              mainpanel.add(button3);
              button4 = new JButton(new ImageIcon("cut.gif"));
              mainpanel.add(button4);
              button5 = new JButton(new ImageIcon("paste.gif"));
              mainpanel.add(button5);
         item1.addActionListener(this);
         item2.addActionListener(this);
         item3.addActionListener(this);
         item4.addActionListener(this);
         item5.addActionListener(this);
         item6.addActionListener(this);
         item7.addActionListener(this);
         item8.addActionListener(this);
         item9.addActionListener(this);
         item10.addActionListener(this);
         button.addActionListener(this);
         button1.addActionListener(this);
         button2.addActionListener(this);
         button3.addActionListener(this);
         button4.addActionListener(this);
         button5.addActionListener(this);
         text=new JTextArea(60,80);
         mainpanel.add(text);
    jsp=new JScrollPane(text);
            mainpanel.add(jsp);
           public void actionPerformed(ActionEvent ae)
              if(ae.getSource()==button4)
              str=text.getSelectedText();
              i=text.getText().indexOf(str);
              text.replaceRange(" ",i,i+str.length());
              if(ae.getSource()==button)
              dispose();
              Notepro note1 = new Notepro("Untitled-Notepad");
              note1.setSize(500,500);
              note1.setVisible(true);
              command=(String)ae.getActionCommand();
              if(command.equals("New..."))
              dispose();
              Notepro note1 = new Notepro("Untitled-Notepad");
              note1.setSize(500,500);
              note1.setVisible(true);
              try
              if((command.equals("Open"))||(ae.getSource()==button1))
              str4=" ";
              FileDialog dialog=new FileDialog(this,"Open");
              dialog.setVisible(true);
              str1=dialog.getDirectory();
              str2=dialog.getFile();
              setTitle(str2);
              str3=str1+str2;
              File f=new File(str3);
              FileInputStream fobj=new FileInputStream(f);
              len=(int)f.length();
              for(int j=0;j<len;j++)
                   char str5=(char)fobj.read();
                   str4=str4 + str5;
                text.setText(str4);
              this.text.setText(str4);
              catch(IOException e)
              try
              if((command.equals("Save As..."))||(ae.getSource()==button2))
              FileDialog dialog1=new FileDialog(this,"Save As",FileDialog.SAVE);
              dialog1.setVisible(true);
              str7=dialog1.getDirectory();
              str8=dialog1.getFile();
              str9=str7+str8;
              str6=text.getText();
              len1=str6.length();
              byte buf[]=str6.getBytes();
              File f1=new File(str9);
              FileOutputStream fobj1=new FileOutputStream(f1);
              for(int k=0;k<len1;k++)
              fobj1.write(buf[k]);
              fobj1.close();
              this.setTitle(str8);
              catch(IOException e){}
              if(command.equals("Exit"))
              System.exit(0);
              if((command.equals("Cut"))||(ae.getSource()==button4))
              str=text.getSelectedText();
              i=text.getText().indexOf(str);
              text.replaceRange(" ",i,i+str.length());
              if((command.equals("Copy"))||(ae.getSource()==button3))
              str=text.getSelectedText();
              if((command.equals("Paste"))||(ae.getSource()==button5))
              pos1=text.getCaretPosition();
              text.insert(str,pos1);
              if(command.equals("Delete"))
              String msg=text.getSelectedText();
              i=text.getText().indexOf(msg);
              text.replaceRange(" ",i,i+msg.length());
              if(command.equals("Font"))
              MyFont  m=new MyFont(this);
         public static void main(String args[])
         Notepro note = new Notepro("Untitled-Notepad");
         note.setSize(500,500);
         note.setVisible(true);
    class MyWindowAdapter extends WindowAdapter
    Notepro mynote;
    MyWindowAdapter(Notepro mynote)
      this.mynote=mynote;
    public void windowClosing(WindowEvent we)
      System.exit(0);
    class MyFont extends Dialog implements ActionListener,ItemListener
    GraphicsEnvironment ge;
    java.awt.List l1,l2,l3;
    Button b1,b2;
    Font f1[];
    String f[];
    int i,j;
    Notepro p;
    TextField tf1,tf2,tf3;
    Label ll1,ll2,ll3;
    String fn;
    int fs,fsize;
    public MyFont(Notepro myno)
         super(myno,"Font",true);
      setLayout(null);
    p=myno;
      ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
      l1=new java.awt.List();
      l2=new java.awt.List();
      l3=new java.awt.List();
      b1=new Button("OK");
      b2=new Button("CANCEL");
    tf1=new TextField(10);
    tf2=new TextField(10);
    tf3=new TextField(10);
    ll1=new Label("Font");
    ll2=new Label("Font Style");
    ll3=new Label("Size");
         ll1.setBounds(20,60,100,20);
         add(ll1);
         tf1.setBounds(20,80,100,20);
         add(tf1);
            l1.setBounds(20,100,100,150);
            add(l1);
         ll2.setBounds(140,60,100,20);
         add(ll2);
         tf2.setBounds(140,80,100,20);
         add(tf2);
       l2.setBounds(140,100,100,150);
      add(l2);
         ll3.setBounds(260,60,100,20);
         add(ll3);
         tf3.setBounds(260,80,100,20);
         add(tf3);
           l3.setBounds(260,100,100,150);     
      add(l3);
         b1.setBounds(380,70,80,20);
      add(b1);
         b2.setBounds(380,95,80,20);
      add(b2);
      f=ge.getAvailableFontFamilyNames();
      for(i=0;i<f.length;i++)
       l1.add(f);
    l2.add("Regular");
    l2.add("Bold");
    l2.add("Italic");
    l2.add("BoldItalic");
    for(i=8;i<=72;i+=2)
         l3.add(String.valueOf(i));
    b2.addActionListener(this);
    b1.addActionListener(this);
    l1.addItemListener(this);
    l2.addItemListener(this);
    l3.addItemListener(this);
    setSize(480,280);
    setResizable(false);     
    setVisible(true);
    public void actionPerformed(ActionEvent fe)
    if(fe.getSource()==b2)
    dispose();
    if(fe.getSource()==b1)
         p.text.setFont(new Font(fn,fs,fsize));
         dispose();
    public void itemStateChanged(ItemEvent ie)
         if(ie.getSource()==l1)
    tf1.setText(l1.getSelectedItem());
         fn=tf1.getText();
         if(ie.getSource()==l2)
    tf2.setText(l2.getSelectedItem());
         if(tf2.getText().equals("Bold"))
              fs=Font.BOLD;
         else
    if(tf2.getText().equals("Italic"))
              fs=Font.ITALIC;
         else
              if(tf2.getText().equals("BoldItalic"))
              fs=Font.BOLD+Font.ITALIC;
         else
              fs=Font.PLAIN;     
         if(tf2.getText()=="")
         tf2.setText("Regular");
         fs=Font.PLAIN;
         if(ie.getSource()==l3)
         tf3.setText(l3.getSelectedItem());
         fsize=Integer.parseInt(tf3.getText());
    if(tf3.getText()=="")
                   fsize=8;

    swatschiks wrote:
    i checked it again but the files were in c drive only...nwaz is my link "open.gif" ok? maybe the problem lies in the links? Can u suggest me smthng? M a newbee..so plz if u can b more specific...i wud b gr8ful...need d help urgentlyOne word of unasked for advice: Please avoid unnecessary abbreviations in your posts here. I recommend this for several reasons:
    1) Programming is an exercise in precision. When you communicate here (or anywhere) about programming issues and questions, you want this communication to be as clear as possible to avoid any chance for ambiguity. I'd say at least half the answers here are requests for clarification. Let's avoid that.
    2) For many here, English is not their first (or second or third) language. It's hard enough for them to understand what people are posting here much less if it's couched in obscure and non-standard abbreviations.
    3) Extra letters don't cost anything here, so you might as well use them.
    4) It makes the poster seem a bit immature and thus for some not worthy of help.
    That being said, what are the full paths of: your image files, your class files, and what package is your program in?
    In that same package, what happens if you compile and run this program?
    import java.io.File;
    public class WhereAreMyFiles
      public static void main(String[] args)
        File myFile = new File("Fubar.txt");
        System.out.println(myFile.getAbsolutePath());
    }Notice the output very closely because that's where Java is looking to find your image files.

  • Display image from the save link in the field

    Hi all,
    I have a image link that saved in a column and will like this picture to be displayed once user is click on the image link in the tabular format.
    However, now I am facing the problem to perform query of the record because one of the field type is image or ole. However, if I changed the image link to normal text item. I am able to perform query search on the record. My question is, can I click on the record whenever I want to see the image from the tabular form ? I prefer tabular form as I can see a lot of records in one sort. But for the image display, I will like user to clock on the specific link in order to open up the image.
    Will this possible ?
    Thanks
    Lim

    If you are saving the image path in table not the image then why don't you use the READ_IMAGE_FILE built-in (see forms help).
    What i mean is hide the actual item which is having the image location. Just create one image item from toolbar (non-database) and create one extra button in the same block to display the image then use the READ_IMAGE_FILE built-in as below in WHEN-BUTTON-PRESS-TRIGGER...
    READ_IMAGE_FILE(:path_item_name,NULL,'image_item_name');
    Preferred way would be to save the image in database then query in your form using database image.
    -Ammad

  • Possible to capture an image if the button on the cam is clicked?

    Hi!
    Im testing JMF and wonder if anybody knows if it is possible to capture click events from the web camera? The web camera itself has a button made to capture images and I'd like this feature in my application. All I wonder is if it's possible to capture or in any other way access information when ever this button is clicked.
    Thx in advance!
    /Anders

    You could use linux easily.
    Check dmesg, after you push the button.
    Allyou have to do is capture the event.
    In windows, you would probably have to do some jni.

  • The new version of Adobe Flash Player 11.5.502.110 does not display images in the flash movie.

    In the new version  of Adobe Flash Player 11.5.502.110 the images are not displayed. In previous versions they are displayed. Tested on several computers. This is not a local problem. This is a problem of Adobe. The bad news is that the early versions are very hard to find and reinstall it.
    Many different systems tested. And all browsers.
    Now there is no big image.
    Example:
    http://www.deluxedecor.ru/blog/dvorec_san_susi_letnjaja_rezidencija_fridrikha_velikogo_rok oko/2012-11-01-12
    http://www.deluxedecor.ru/index/kollekcija_lepniny_barokko_ehrmitazh/0-45
    http://www.deluxedecor.ru/index/karnizy/0-12
    and many others.....

    hi i have noticed the same problem. also with Chrome and FP ver 11.5.31.2and Firefox and Safari with FP 11.5.502.110
    it seems that MovieClipLoader class not returning onLoadInit event. I use to add a fadein function on loadInit to fade in the loaded images. with the latest Flash PLayer versions this is not activated so you cannot see the loaded images.
    I have tested this on 3 different systems and the problem is the same. I have not updated my FP for IE. There, the older FP still works well.
    test systems
    Mac OS LionSafari and FP 11.5.502.110 --- DOES NOT WORK WELL
    Windows 7 64 bit
    chrome 23.0.1271.95 with FP 11.5.31.2  - DOES NOT WORK WELL
    Firefox 16.02 with FP 11.5.502.110  - DOES NOT WORK WELL
    IE 9 with FP version 11.4.402.287  - WORKS
    Windows XP SP3
    Firefox 16.02 with FP 11.5.502.110 - DOES NOT WORK WELL
    IE 8 wth FP 11.4.402.287  - WORKS
    chrome 23.0.1271.95 with FP 11.5.31.2  - DOES NOT WORK WELL

  • Displaying images in the JavaHelp Viewer

    I have developed a small help system which works, but images are not displayed in the JavaHelp viewer. They are displayed when I load the .html file into a browser.
    All images are collected into an .images file, and are referenced there. The Map entries for each image resembles the Map entries in the sample, but I believe that none of the images within that directory are being displayed by the javahelp system.
    Directory layout in eclipse is:
    <pre>
    <project>
    &brvbar;
    +----help
    &brvbar; &brvbar;
    &brvbar; +-images
    &brvbar; &brvbar;
    &brvbar; +-prj.hs
    &brvbar; &brvbar;
    &brvbar; +-prj.html
    &brvbar; &brvbar;
    &brvbar; +-prjMap.jhm
    &brvbar; &brvbar;
    &brvbar; +-prjTOC.xml
    &brvbar; &brvbar;
    </pre>
    Sample image declaration from Map file: <mapID target="SuccessWin1"
    url="images/Successwin1.png"/>
    When executing in the eclipse IDE, I copy all friles from the help directory to the bin directory so it is in the classpath. When building the .jar, all files from help, and images are placed directly at the first level of the jar so that the '...="images/..."' reference in the Map will succeed. Yet it does not.
    Many thanks for any suggestions.

    I have developed a small help system which works, but images are not displayed in the JavaHelp viewer. They are displayed when I load the .html file into a browser.
    All images are collected into an .images file, and are referenced there. The Map entries for each image resembles the Map entries in the sample, but I believe that none of the images within that directory are being displayed by the javahelp system.
    Directory layout in eclipse is:
    <pre>
    <project>
    &brvbar;
    +----help
    &brvbar; &brvbar;
    &brvbar; +-images
    &brvbar; &brvbar;
    &brvbar; +-prj.hs
    &brvbar; &brvbar;
    &brvbar; +-prj.html
    &brvbar; &brvbar;
    &brvbar; +-prjMap.jhm
    &brvbar; &brvbar;
    &brvbar; +-prjTOC.xml
    &brvbar; &brvbar;
    </pre>
    Sample image declaration from Map file: <mapID target="SuccessWin1"
    url="images/Successwin1.png"/>
    When executing in the eclipse IDE, I copy all friles from the help directory to the bin directory so it is in the classpath. When building the .jar, all files from help, and images are placed directly at the first level of the jar so that the '...="images/..."' reference in the Map will succeed. Yet it does not.
    Many thanks for any suggestions.

  • How to display images in the Personal Java?

    Guys,
    please help me to display the images in gif format in the standalone application using PersonalJava.
    with regards,
    Amin

    JDK:1.1.8; Personaljava:1.1Beta
    Following is my program,it can not only display image but also scroll image that biger than Panel or Canvas.
    import java.awt.*;
    import java.awt.event.*;
    //ImageCanvas object is container keeping Image
    class ImageCanvas extends Canvas
    private Image image,errorimage;
    Container pappy;
    public ImageCanvas(Image i,Container parent)
    errorimage = Toolkit.getDefaultToolkit().getImage("error.gif");
    image=i;
    pappy = parent;
    //following 5 lines can make image display smoothly
    MediaTracker tracker = new MediaTracker(this);
    tracker.addImage(image, 0);
    try { tracker.waitForID(0); }
    catch (InterruptedException e) {}
    public void paint(Graphics g)
    if(image.getWidth(this)==-1)
    image=errorimage;
    Dimension d = getSize();
    this.setSize(image.getWidth(this),image.getHeight(this));
    //Critical syntex for refresh container
    pappy.layout();
    pappy.repaint();
    g.drawImage(image, 0, 0,this);
    public class ScrollingImage implements ActionListener
    {   Frame frame;
    ScrollPane sp;
    Image im;
    public static void main(String[] args)
    ScrollingImage tests= new ScrollingImage();
    tests.go();
    public void go()
    frame = new Frame();
    frame.setLayout(new BorderLayout());
    sp = new ScrollPane();
    im =Toolkit.getDefaultToolkit().getImage("001.gif");
    //please notice following line,critical syntex to display image,I took 2 days to find it.
    sp.add(new ImageCanvas(im,sp));
    sp.setSize(240,290);
    frame.add(sp, BorderLayout.CENTER);
    //following 5 lines make frame be able to close
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

  • Displaying Images in the E-Commerce B2B Application

    Hi All,
        I have added some thumbnails to Products and i replicated the product catalog with all require settings like publishing id, but still the image is not displaying. I have added bitmap image.
       Please let me know How exactly we have to upload the images in to product and what will be the require settings to display the images in the CRM ISA Application.
    Thanks in Advance...

    If you have an image/thumb attached to the Product it will display on the catalog, but not the other way around.  I would love to have a way to mass upload images to the product, but have not seen a way yet...so, for our purposes, it's easier to upload to the catalog.
    In 4.0sr1, there are two check boxes for delta replication of the catalog.  We only check the Transfer Document Content, not Publish Docs via HTTP
    I usually just hit F1 on the field to see what Help is built into the system.  Both of these have good documentation.
    Go to SE38 and review the program COM_PCAT_MASS_DOC_IMPORT
    Here's the Help for that program in CRM4.0sr1:
    Short text
    Mass import of documents for product catalog items
    Title
    Mass Import of Multimedia Documents for Product Catalogs
    Purpose
    This report enables you to automatically import multimedia documents that are already available in a file system and assign these documents to product catalog items. The items are identified using a product number. An item is created if a corresponding one is not available.
    A simple text file, which can be created using the normal spreadsheet programs or simple text editors, is used as a basis for the import. This text file should be made up as follows:
    The first line is ignored, its content is insignificant and can, for example, contain the headings of the columns. The remaining lines correspond to the document that is to be imported and contain 3 to 4 columns with:
    1. The product number of the catalog item that the document is to be added to
    2. The number of the catalog area in which the item is located or in which it is to be created if it has not yet been created
    3. The complete file name, including the path of the document that is to imported and assigned. Make sure that the import takes place on the frontend, that is the frontend must be able to read the file from a specified path
    4. The document type of the document. This specification is optional, make sure that the document type for the catalog is valid for your application (that is to say that a corresponding folder for templates, for items of the catalog type is available)
    Two formats are supported for dividing columns: "Tab-delimited", that is the columns are separated using tabulator characters or "comma separated", that is the columns are separated using semi colons (or another character that is not used in the column contents).
    Selection
    Required parameters are the product catalog and the name of the text file that contains information about the documents that are to be imported.
    You can determine that all documents are to be considered as language-independent, with the "language-independent documents" parameter. You can specify a language in the field "document type" if the indicator is not set.
    The "file format" parameter enables you to inform the system which format the text file has. You can use another separators in addition to the semi colon that is suggested as a default for: "comma separated values"
    If you set the "Delete catalog contents" parameter, all of the catalog items are deleted before the import.
    If you set the "Subsequently activate items" parameter, all of the items are activated after the import.
    Example
    Example for constructing a "comma separated values" file:
    Product number;Catalog area;File;Document type
    100001;AREA1;C:\My Documents\Images\100001_small.gif;CRM_THUMB
    100001;AREA1;C.\My Documents\Images\100001_large.jpg;CRM_IMAGE
    100002;AREA1;C:\My Documents\Images\100002_small.gif;CRM_THUMB

  • Display Image from the database but prevent it from refreshing on every pages

    Hi there,
    I can see there are many discussions around this but my query is slightly different. I'm writing this on behalf of one of my developers. (sorry for my ignorance on techie stuff.. :-))
    A logo is being displayed on a few pages, which is called from the database. However, the problem is that  - this logo refreshes every time when you traverse to each page causing a performance issue or sometimes slow loading of the image.
    My question is - how do we stop it from loading on each page from the database?.  I would rather load once when the main page loads initially and then maintain this on other pages too.
    We can keep this logo on a file system (FS)  and display it via CSS/HTML/frame but since we want to keep it flexible/dynamic where a user can upload a new one whenever it changes and hence DB seems to be the suitable option (in my opinion).
    Can someone please help?
    If you need any further info around the coding how it is being done at present, pls let me know.
    Thank you

    read this http://docs.oracle.com/cd/B28359_01/appdev.111/b28393/adlob_tables.htm#g1017777
    you can cache lobs in the database too
    you can also upload the pic in your file system using utl_file package and then put the image in the working directory mentioned in i.war
    you can then reference the image and it will not be stored in the database and will be cached
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • How to display image in the smartforms

    Hi All,
    I have image conent in the Binary formate.I want to dispaly that image in the smartforms.
    Please tell me how to display that image in the smartforms dynamically.
    Normally wa uploaded in SE78.And that is used in smartforms.But this is static way.
    I want to display tha images dynamically.
    Please Please
    Thanks,
    Saritha

    Hi,
          The image is in the DB ,right..Its in Binary format..
    See first we want the picture to be get uploaded inside the SAP.It is done by se78..
    If possible we can retrieve the picture outside in a place means we can get tht into sap by using
    Call Transaction 'SE78'.
    Reward if useful ...........

  • Displaying Image on the Emulator

    Hi all,
    I was trying to display image on to the emulator on canvas,problem is the image is getting failed to load.my code is as follows,and where should i have the image in my filesystem to be displayed on the emulator and what path should i give,my OS is LINUX
    try {
    image = Image.createImage("/212.png");
    } catch (IOException ex) {
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    return;
    when i try this it shows the exception:Failed to load image.
    Please Help me :-(..

    in = this.getClass().getResourceAsStream("/212.png");You are attempting to access the file in the root "/" folder. Something like:
    in = this.getClass().getResourceAsStream("212.png");or
    in = this.getClass().getResourceAsStream("res/212.png");or
    Image im = Image.createImage("212.png"); or
    Image im = Image.createImage("res/212.png"); should work.

  • Displaying images in the centre of the screen

    Hi
    I'm using PHP to pull down an image filename from a MySQL database and then providing a URL to display the image in a browser, for example:
            <img src="<?php echo $row_Recordset1['Picture']; ?>">
            <a href="<?php echo $row_Recordset1['Picture']; ?>">
    I wondered if there was any way of modifying the 'a href' statement to instruct the browser (IE or Firefox) to display the image in the absolute middle of the screen, either in the existing browser, or a newly opened one?
    Opera seems to oblige instantly as it opens the selected picture (picture.jpg) in the middle of the screen by default, But IE and Firefox seem to open the picture by default in the top LH corner.
    Any advice would be gratefully received...Tony

    Hi All
    I'm now aware that this is a browser issue and that I need to use some Javascript - Lightbox, Shadowbox or one of the many variants - to achieve this
    Sorry to have troubled everyone with this basic question
    Tony James

Maybe you are looking for