Problems in selecting an image and scaling it.Image is selected using JFile

Hello All,
I need to select a file using JFilechooser and scale it down and display it on the frame.
This never happens.I dont know why.Please help me with this.
Thanks.
Regards.
NP
package loadpic;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
public class Test
    extends JFrame {
  JFileChooser chooser = new JFileChooser();
  JButton button = new JButton("show file chooser ...");
  JLabel Label = new JLabel("Photo");
  ImageIcon icon = new ImageIcon();
  File f = null;
  public Test() {
    super("Simple File Chooser Application");
    Container contentPane = getContentPane();
    contentPane.setLayout(new FlowLayout());
    contentPane.add(button);
    m tt = new m(contentPane, Label, icon, f,chooser);
    button.addActionListener(tt);
     public static void main(String args[]) {
      Test t = new Test();
      t.setSize(400, 400);
      t.show();
  class m
        implements ActionListener {
      private Container contentp;
      private JLabel label;
      private ImageIcon i;
      private File f;
      private JFileChooser chooser;
      public m(Container contentp, JLabel l, ImageIcon i, File ff,JFileChooser chooser) {
        this.contentp = contentp;
        this.label = l;
        this.i = i;
        this.f = ff;
        this.chooser=chooser;
      public void actionPerformed(ActionEvent e) {
        int state = chooser.showOpenDialog(null);
        f = chooser.getSelectedFile();
        try {
              i=createImageIcon(f.toURL());
              Image img = i.getImage();
              img.getScaledInstance(50,50,Image.SCALE_DEFAULT);
              i.setImage(img);
              label.setIcon(i);
              label.setBounds(0,0,i.getIconWidth(),i.getIconHeight());
              contentp.add(label);
        catch (Exception ee) {
      public ImageIcon createImageIcon(URL path) {
        java.net.URL imgURL = path;
        if (imgURL != null) {
          return new ImageIcon(imgURL);
        else {
          System.err.println("Couldn't find file: " + path);
          return null;
        }

Hi
this is you problemImage img = i.getImage();
img.getScaledInstance(50,50,Image.SCALE_DEFAULT);
i.setImage(img);
label.setIcon(i);It should readImage img = i.getImage();
Image scaled = img.getScaledInstance(50,50,Image.SCALE_DEFAULT);
i.setImage(scaled);
label.setIcon(i);Hope this helps
ICE

Similar Messages

  • Problems with filesize after exporting and scaling photos

    I gave digital photo frames as Christmas gifts and wanted to load them up with many years worth of family photos, so I exported hundreds of photos from iPhoto and scaled them down to roughly 400 by 300 pixels to be used in the low resolution digital photo frames. The files vary in size from 40K to 100K.
    The entire folder of over nearly 1,000 photos is only 86.2 megabytes in size.
    However, when I went to copy the photos onto a new 512 megabyte SD card, only a couple dozen photos would transfer before I would get an error message saying there was no room left on the card. The finder would show over 400 megabytes available, but if I tried to drag even one more 40K photo on, I would get the same out-of-room error message.
    I tried reformatting the card several times and several ways (including disk utility), but same problem. So I tried different SD cards, but same result. I tried CF cards, but same result. I tried different card readers, tried dragging the photos over one at a time, tried copying them with PhotoMechanic, tried doing it all from a different Mac, but always the same result.
    It seems like there must be some hidden files being copied along with the photos that are taking up that extra space on the card. Never had anything like this happen before. It only affects these files that were exported through iPhoto 6.0.5 and scaled to a smaller file size. So I'm sure the problem must be there.
    Has anyone had anything like this happen before? The organization and editing of all these photos took many hours so I would love to find a solution without having to start the entire process over.
    Thanks.

    I found a solution--though I don't understand why it works.
    I was dragging photos (either in a group of hundreds of photos or individually) onto the card so they resided on the top level of the card's system heirarchy. That's when I would always get the "out-of-room" error message.
    But when I inadvertantly dragged the entire FOLDER full of hundreds of photos onto the card, it worked fine. I guess the card structure allows for a folder full of hundreds of photos, but not those same photos when they are not in a folder.

  • Cursor problem, changing tool over image, disappearing during use

    Photoshop CS5.1
    Mac Pro, OS 10.8.5
    Wacom tablet and Apple mouse.
    Issue is only happening (as far as I can tell) with Photoshop.
    Cursor sitting on image, my hand not even touching the mouse or wacom pen, and the cursor is "jumping" between the tool selected (hand tool, healing tool, lasso tec) and the black arrow select tool.
    If I zoom in and attempt to use the healing or clone tool, the clone from and clone to tools disappear, so I can't tell where I'm working.
    I've reset the tool preset, changed between the wacom tablet and mouse, closed PS, rebooted machine etc, still having the issue.
    Assuming the next step is to clear something. Preferences??
    Help appreciated!!
    Thanks!!!!

    Just restored Preferences and Tool Preferences. No change.
    I also took a quick look at Illustrator and InDesign. While their tool sets are not as dynamic as Photoshops, InDesign did seem to be showing the rapid "jump" between the tool selected and the direct selection tool (the black arrow). It was harder to tell with Illustrator, but it did seem like the issue could be showing up there too (I don't use Illustrator or InDesign very much, so it's tougher to say if the cursor behavior is abnormal there).
    As far as I can tell, the cursor is working normally in other apps, but the tool/cursor choices in other apps is nowhere near as extensive or complex as Photoshop. Wondering if there's an overall Adobe Preference that could be causing this?

  • Why won't PS CC 2014 fully open and run?  Has been a problem for about two months and previously all was OK.  Using same machine (iMac running 10.9.5) and have not changed any settings or provided add-ons.

    I am new to this.  My question is as per the header line.

    Ok, I was hoping it would be simple. Next to try are Plugins, Permissions, and Fonts.
    If you have no third party Font managers, or plugins, this might be easier. Then you would repair permissions and check your system fonts.
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    About uninstalling and reinstalling: I use the CS Cleaner tool after I uninstall to get rid of anything that the uninstall missed before I reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • How to display all the files that are selected using JFile chooser

    please hepl me i m posting my code here.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class browser extends JFrame
    String curDir;
    JLabel statusbar;
    public browser()
    super("File Chooser Test Frame");
    setSize(1050,600);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    curDir = System.getProperty("user.dir") + File.separator;
    statusbar = new JLabel("Output of your button choice goes here!");
    Container c = getContentPane();
    c.setLayout( null );
    JButton openButton = new JButton("Browse file");
    JButton dirButton = new JButton("Pick Dir");
    JButton resetButton = new JButton("Reset");
    JButton submitButton = new JButton("Submit");
    final JTextArea tf = new JTextArea(100,50);
    final JList l1 = new JList("list");
    tf.setEditable(true);
    // add the open FILE chooser
    openButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
         JFileChooser chooser = new JFileChooser(curDir);
         chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         chooser.setMultiSelectionEnabled(true);
    //Java 1.6 can use FileNameExtensionFilter class
    // FileFilter filter=new FileNameExtensionFilter("HTML file","htm","html")
    // chooser.addChoosableFileFilter(filter);
    //Prior versions must use external extension of FileFilter class (ie ExtFilter)
    //ExtFilter requires separate compile to enable choosable selection
         String[] html = new String[] {"htm","html","xhtml"};
         int option = chooser.showOpenDialog(browser.this);
         if (option == JFileChooser.APPROVE_OPTION)
         File[] sf = chooser.getSelectedFiles();
         String filelist = "nothing";
         try
         if (sf.length > 0) filelist = sf[0].getCanonicalPath();
         for (int i = 1; i < sf.length; i++)
         {filelist += ", " + sf[i].getCanonicalPath();
    tf.setText("our choices" + filelist);
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("Your choices: " + filelist );
    // String[] text = new String[100];
    //getChars(0,100,text[],0);
    l1.setText("your choices \n" + filelist);
         else {statusbar.setText("You cancelled!");}
    // add the open DIRECTORY chooser
    dirButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    JFileChooser chooser = new JFileChooser(curDir);
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
         chooser.setMultiSelectionEnabled(false);
    int option = chooser.showOpenDialog(browser.this);
    if (option == JFileChooser.APPROVE_OPTION)
    File[] sf = chooser.getSelectedFiles();
    String filelist = "nothing";
    try
    if (sf.length > 0) filelist = sf[0].getCanonicalPath();
    for (int i = 1; i < sf.length; i++)
              {filelist += ", " + sf[i].getCanonicalPath();}
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("You chose " + filelist);
         else {statusbar.setText("You cancelled!");}
    System.out.println("Example of ZIP file creation.");
    // Specify files to be zipped
    String[] filesToZip = new String[1];
    filesToZip[0] = "filelist";
    byte[] buffer = new byte[18024];
    // Specify zip file name
    String zipFileName = "example.zip";
    try {
    ZipOutputStream out =
    new ZipOutputStream(new FileOutputStream(zipFileName));
    // Set the compression ratio
    out.setLevel(Deflater.DEFAULT_COMPRESSION);
    // iterate through the array of files, adding each to the zip file
    for (int i = 0; i < filesToZip.length; i++) {
    System.out.println(i);
    // Associate a file input stream for the current file
    FileInputStream in = new FileInputStream(filesToZip);
    // Add ZIP entry to output stream.
    out.putNextEntry(new ZipEntry(filesToZip[i]));
    // Transfer bytes from the current file to the ZIP file
    //out.write(buffer, 0, in.read(buffer));
    int len;
    while ((len = in.read(buffer)) > 0)
    out.write(buffer, 0, len);
    // Close the current entry
    out.closeEntry();
    // Close the current file input stream
    in.close();
    // Close the ZipOutPutStream
    out.close();
    catch (IllegalArgumentException iae) {
    iae.printStackTrace();
    catch (FileNotFoundException fnfe) {
    fnfe.printStackTrace();
    catch (IOException ioe)
    ioe.printStackTrace();
    c.add(openButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(resetButton);
    c.add(submitButton);
    //c.add(tf);
    c.add(l1);
    Insets insets = c.getInsets();
    Dimension size = openButton.getPreferredSize();
    openButton.setBounds(745 + insets.left,115 + insets.top, size.width, size.height);
    size = dirButton.getPreferredSize();
    dirButton.setBounds(755 + insets.left,165 + insets.top, size.width, size.height);
    size = statusbar.getPreferredSize();
    statusbar.setBounds(755 + insets.left,215 + insets.top, size.width, size.height);
    size = resetButton.getPreferredSize();
    resetButton.setBounds(755 + insets.left,265 + insets.top, size.width, size.height);
    size = submitButton.getPreferredSize();
    submitButton.setBounds(755 + insets.left,465 + insets.top, size.width, size.height);
    size = tf.getPreferredSize();
    tf.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    size = l1.getPreferredSize();
    l1.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    setSize(1000,800);
    setVisible(true);
    public static void main(String[] args)
    new browser();

    Start by defining "display". Then continue by reading this:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Problem with One Touch Access and N73

    I have:
    * Windows Vista SP1
    * PC Suite 7.1.18.0
    * N73 phone
    I want to use my phone as a modem, but after Windows upgraded to SP1 clicking the connect button in One Touch Access results in immediate disconnect message. I tried reinstalling PC Suite 6.8 from the CD I got with the phone and finally upgraded to 7.1.18.0 but the problem still occurs. Any solution to this?

    I've been having this problem for 4 months now and it totally prevented me from using my phone as a modem. But today I accidentally stumbled upon the solution for my case. I discovered that what kept blocking the one touch access from connecting to the phone was the feature called User Account Control, in windows vista. You can turn this feature off by going to the User Accounts. The last option there reads Turn User Account Control on or off. Open it, uncheck the box (Use User Account Control UAC) and click ok. Et voila!
    My one touch access worked smoothly thereafter.
    Let me know if it works for you too. Good luck

  • Install Problems with 8.1.7 and 9.2.01

    I tried to install 8.1.7 and 9.2.0.1 on a notebook with Win2000 Pro SP4 German (512 MB RAM, 1500 MB swap-file) and I failed in both cases.
    I downloaded both install kits from OTN, unpacked to disk etc. (9.2.0.1 consists of 3 Zips, I unpacked to 3 folders called Disk1, Disk2, Disk3).
    I have J2RE 1.4.2-06 (the latest available from Sun) installed on this notebook.
    - 8.1.7:
    Installer starts but crashes when I clicked on "Install" !!!
    Very disappointing ...
    What to do now ???
    - 9.2.0.1:
    Clicking on setup.exe in Disk1 folder: nothing happens !!!
    Very disappointing ...
    Ok, opening folder autorun and clicking an autorun.exe: whow, oracle installer is starting!
    I did a standard installation with "Personal Edition" and "Universal Database".
    Everything seems to work well...
    After about 1h and heavy disk access it looks like the installation process is hanging! Nothing happens anymore!
    Last message is "Erstellen von Clone-DB (Creating Clone-DB)" with progress bar hanging at 93%.
    I did this 3 times in the meantime, deinstalling evrything, cleaning the registry (because Oracle Installer seems not to be able to realy clean the registry! Very disappointing ...), but the problem is still remaining: every time installation is hanging at exactly this point (93%).
    Overall very disappointing compared to a MS SQL-Server installation on the same notebook, which needs no more than 15 minutes and works on the first run!!!
    What the hell is going on with that stupid oracle installer on windows ??? Is oracle not able to produce a working install kit for windows ???
    Any help would be highly appriciated !!!
    Hans

    Hans,
    It is a known problem on Windows 98, Windows and Windows 2000 if you are using Intel Pentium 4 processor with Sun JRE and Symantec JIT. I had the same problem with Windows 98. Oracle has a patch. Please see Note:131299.1 on metalink for details.

  • Occasionally,  some of the image borders turn dark grey (medium grey is the default) and then random other  images cannot be opened with a double click.  They only open when selected using the arrows on the keyboard.  They also cannot be moved to collecti

    Occasionally,  some of the image borders turn dark grey (medium grey is the default) and then random other  images cannot be opened with a double click.  They only open when selected using the arrows on the keyboard.  They also cannot be moved to collections.  Anyone have a solution for this?

    When you say  "could not be opened"- what are you referring to?  A double click of the mouse should view the clicked image in Loupe view- the same as pressing [E] on the keyboard for an enlarged view. (And a second double-click will take you back to library grid view.)
    To "open" an image in the Development module requires you to select the image then press [D] or click on the [Develop] button.
    When you say "could not be ...moved" -what are you referring to?  Are you trying to move an image file from its place in a folder to another folder? Are you just wanting it in a collection? When you drag an image to a collection you are only placing a link to the image in the collection- not actually moving any file. The image will stay exactly where it is in its original folder and will remain as a thumbnail preview in the Library Grid view.
    Are you having any "mouse" problems that may be changing its actions in LR ?
    Do you see an exclamation mark on any image borders ?
    Let's keep working on this. I am curious to see you find an answer.
    Rob

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • The problem is with the new operating system  and sending photo via email when used in my iPad.   From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow.

    The problem is with the new operating system  and sending photo via email when used in my iPad.
    From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
    Can you amend he system to allow emails to be sent from photo as previously.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • HT3275 Hi, I have backed up 2 IMACs and one Mac Book Pro but for some reason, the 3rd IMAC come up with this problem: The backup disk image "/Volumes/Data/Anthony's iMac.sparsebundle" could not be accessed (error -1). Why? They computer system is up to da

    Hi, I have backed up 2 IMACs and one Mac Book Pro but for some reason, the 3rd IMAC come up with this problem: The backup disk image “/Volumes/Data/Anthony’s iMac.sparsebundle” could not be accessed (error -1). Why? The computer system is up to date and I have had no issue with the other computers, just this one.
    Many thanks
    Anthony

    Try this Discussion...
    https://discussions.apple.com/message/18783684#18783684

  • Performance problem with selecting records from BSEG and KONV

    Hi,
    I am having performance problem while  selecting records from BSEG and KONV table. As these two tables have large amount of data , they are taking lot of time . Can anyone help me in improving the performance . Thanks in advance .
    Regards,
    Prashant

    Hi,
    Some steps to improve performance
    SOME STEPS USED TO IMPROVE UR PERFORMANCE:
    1. Avoid using SELECT...ENDSELECT... construct and use SELECT ... INTO TABLE.
    2. Use WHERE clause in your SELECT statement to restrict the volume of data retrieved.
    3. Design your Query to Use as much index fields as possible from left to right in your WHERE statement
    4. Use FOR ALL ENTRIES in your SELECT statement to retrieve the matching records at one shot.
    5. Avoid using nested SELECT statement SELECT within LOOPs.
    6. Avoid using INTO CORRESPONDING FIELDS OF TABLE. Instead use INTO TABLE.
    7. Avoid using SELECT * and Select only the required fields from the table.
    8. Avoid nested loops when working with large internal tables.
    9. Use assign instead of into in LOOPs for table types with large work areas
    10. When in doubt call transaction SE30 and use the examples and check your code
    11. Whenever using READ TABLE use BINARY SEARCH addition to speed up the search. Be sure to sort the internal table before binary search. This is a general thumb rule but typically if you are sure that the data in internal table is less than 200 entries you need not do SORT and use BINARY SEARCH since this is an overhead in performance.
    12. Use "CHECK" instead of IF/ENDIF whenever possible.
    13. Use "CASE" instead of IF/ENDIF whenever possible.
    14. Use "MOVE" with individual variable/field moves instead of "MOVE-
    CORRESPONDING" creates more coding but is more effcient.

  • Images and XML forms and Images and scaling

    Hello,
    I have two questions about using images in XML forms.
    1) How do I insert images into the XML form editor.
    The thread HTML Editor in XML Form? (Posted: Aug 26, 2004 7:50 PM), discuss how the HTML Editor in XML forms can be extended to be able to insert images like in the KM editor.
    Has anyone any practical experience with this?, as the thread is fairly old.
    And is there other solutions which are more suited?
    The portal is running on WAS 6.40, EP 6.0 SP11
    2) Is is possible for the portal to scale images
    In the portal, different users will use XML forms to publish news stories. These users will want to publish images along with the text.
    In many content management systems, the system will automatically scale the images (e.g. create one thumbnail, a mid-size image and keep the full size) Can this be achieved in the portal.
    The reason for this is to make sure that no one can post a very large image and to make sure each image is the same size.
    I'm interested in hearing how other people, solve the issue with uploading and scaling of images used in the portal.
    Kind regard,
    Jørgen Ruud
    Will reward SDN points.

    Hi Sumit,
    Just to add to what Duncan had said ... please ensure the following things as well
    1. Access portal using FQDN
    2. Maintain proper browser settings http://wiki.sdn.sap.com/wiki/display/EP/MSIE6BrowserSettingsforaccessingSAP+Portals
    3. Please go through the forum link http://forums.sdn.sap.com/thread.jspa?threadID=1814082
    Regards,
    Mahesh

  • I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image"  Help!

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

Maybe you are looking for

  • Can I open Adobe Camera Raw from LR?

    I use LR 3.4.1 as my image browser but occasionaly would like to edit images using ACR as well as Photoshop.  At the moment I have to go to "Edit in Photoshop ..." then switch to ACR via Bridge but would like to go straight to ACR without opening PS

  • How to display the documents in DMS_DOC_FILES

    Hi: In table DMS_DOC_FILES, I see some activities have attached documents. But at SE16, the field with the attached documents does not show because it is a data type RAW. How to show the content of the attached documents? Thanks a lot!

  • Feature Request: Zoom from cursor position

    Default zoom behavior seems to be to zoom with the zoom center at the center of the screen. This works sort of OK. However, it would be more efficient for me if I could zoom with the zoom center at the cursor/mouse position. Then I can quickly zoom i

  • Need help with a Chart

    Hi, I apologize if this is the wrong area to enter this question but I really need to find a solution.  Please let me know where I should be posting this if it is in the wrong location.  I have a report that has a bar chart that will show me gps usag

  • Dropping someone else's table

    How would I go about dropping a table that belongs to another user? I can see the table in 'all_tables', but have no idea how to drop it. I've got DBA privileges on my account as well. Up until now I've only been dealing with tables under my own user