Some problems creating/saving images

What I want to do is create an image from multiple sources (a composite of 3-4 .jpg files) and save it to a file. I wanted to start off simple. I tried to create a bufferedimage, load a single .jpg file into it, and then save it. All I get is a black .jpg in the end. Any ideas?
public class buffTest {
     public static void main(String args[]){
          Image myImage;
          BufferedImage buffImage = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);
          Toolkit toolkit = Toolkit.getDefaultToolkit();
          myImage = toolkit.getImage("1.jpg");
          Graphics2D g = buffImage.createGraphics();
          g.drawImage(myImage, 0, 0, null);
          RenderedImage rendImage = buffImage;
          try {
                  File file = new File("newimage.jpg");
                  ImageIO.write(rendImage, "jpg", file);
          catch (IOException e) {}
}

Try reading the image using ImageIO.read(...) instead of toolkit.getImage(...)
db

Similar Messages

  • Problem creating several image maps (linking to different pdf files) RoboHelp 8

    Hi,
    I have a problem creating several image map hotspots (that link to different .pdf files), from the same image using RoboHelp 8 HTML (WebHelp project).
    After compiling, the first image map hotspot created, opens the .pdf file correctly.  Unfortunately, when clicking on the other image hotspots, I get an error " Cannot find file...<file path>... Make sure path or Internet address is correct".
    All the pdf documents are located in the same folder within the project.
    Can anyone help?

    Have you added the target files as baggage?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Problem in saving image to jpg

    Hello.
    I've got a problem in saving a LabView Picture in a jpg File.
    The picture id grabbed from a DirectX Livestream from a camera.
    Then I want to save it in a jpg file using the Standard LabView Functions.
    But all I get is an empty jpg File and an error:
    Check_Data_size.vi
    Error 1
    I'm using LabView 7.1.
    Has anybody got an idea how to solve the problem?

    No.  You can save a gray image to jpg, but I has to be 24 bit.
    Try save your data to bmp.  If you got the same problem, that means you fail to wire correct data format to the LabVIEW VI you're using.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Problem in Saving Image Code

    Hi, I'm been dealing with this code that should be saving an image as a JPEG format.
    public static void saveAsJPEG(RenderedImage image, String file)
    throws java.io.IOException {
    String filename = file;
    if(!filename.endsWith(".jpg"))
    filename = new String(file+".jpg");
    OutputStream out = new FileOutputStream(filename);
    JPEGEncodeParam param = new JPEGEncodeParam();
    ImageEncoder encoder = ImageCodec.createImageEncoder("JPEG", out, param);
    encoder.encode(image); out.close(); }
    However, when I compile the code, there's an error come out : com.sun.image.codec.jpeg.JPEGEncodeParam is abstract; cannot be instantiated
    I really can't figure out the meaning of this exception. So, would somebody kindly tell me what is wrong with the code?
    And another question is : What package is the ImageCodec located? Thanks a lot :)

    try this out and let me know;
    public static void saveAsJPEG(BufferedImage image, String file)
    throws java.io.IOException {
    String filename = file;
    if(!filename.endsWith(".jpg")) filename = new String(file+".jpg");
    OutputStream out = new FileOutputStream(filename);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); // Create JPEG encoder
    JPEGEncodeParam jpegParams = encoder.getDefaultJPEGEncodeParam(image);
    jpegParams.setQuality(1.0f, false); // Set quality to 100% for JPEG
    encoder.setJPEGEncodeParam(jpegParams);
    encoder.encode(image); // Encode image to JPEG and send to browser
    //JPEGEncodeParam jpegPparams = new JPEGEncodeParam();
    //ImageEncoder encoder = ImageCodec.createImageEncoder("JPEG", out, jpegParams);
    //encoder.encode(image);
    out.close(); }

  • Problem Creating an Image Link within an html snippet?

    Hi,
    For some reason I have been unable to link to an image on my Mac by using <img src within an html snippet.
    I have uploaded the photo to my server and created a link with <img src "http://www.domain.com/image.jpg" />.
    However, when I try linking to the image like this - <img src "Users:Documents:Photos:image.jpg" />, when I click apply on the html snippet all I get is a blue dot with a question mark and I have checked that the image is in my Documents and then Photos folder and it is. When I link to it with the server the photo shows.
    Any ideas as to what I am doing wrong?
    I would appreciate some help, as I have tried various combinations to link and nothing seems to be working except linking directly from my server and I don't really want to do this at the moment.
    Thanks

    Thanks for that and I did use correct syntax in the html snippet - it was a typo here.
    I did as you suggested and dragged the photo into the Safari browser, after placing the photo on the desktop and it gave me the file name and that showed as file:///Users/My username/Desktop/Image.jpg, so I tried this in my html snippet and did it as so:
    It is still not working for some reason and when I click apply, the photo shows up as a blue square with a question mark in it, although I know the photo is there.
    Why is this? I followed the path, yet when I link to the photo on the server with it works perfectly everytime.
    Thanks

  • Problem creating an image from a remote url

    I am creating a servlet which does the following:
    1. retrieves an image from a remote url
    2. resizes the image
    3. sends the image to the client.
    The servlet works fine when I run it on my PC, but when I run it on the server, it doesn't. Here's the problematic code
        private Image getRemoteImage(String imageUrl) throws Exception {
            System.err.println("in getRemoteImage()");
            if (!imageUrl.startsWith("http://")) imageUrl = "http://" + imageUrl;
            URL u = new URL(imageUrl);
            System.err.println("imageUrl: " + imageUrl);
            HttpURLConnection huc = (HttpURLConnection) u.openConnection();
            huc.setRequestMethod("GET");
            System.err.println("connecting...");
            huc.connect();
            System.err.println("Getting DataInputStream...");
            DataInputStream in = new DataInputStream(u.openStream());
            //DataInputStream in = new DataInputStream(huc.getInputStream());
            System.err.println("...got");
            int numBytes = huc.getContentLength(); //1063
            System.err.println("numBytes: " + numBytes);
            byte[] imageBytes = new byte[numBytes];
            System.err.println("reading fully...");
            in.readFully(imageBytes);
            System.err.println("...read");
            in.close();
            System.err.println("creating imageIcon");
            ImageIcon imageIcon = new ImageIcon(imageBytes);  //   <-- problem here
            System.err.println("** THIS LINE IS NOT REACHED **");
            System.err.println("creating image");
            Image image = imageIcon.getImage();
            System.err.println("returning image");
            return image;
        }When I access the servlet with FF, the browser reports:
    The image �<my servlet url>� cannot be displayed, because it contains errors.
    When I access the servlet with IE, I get:
    Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at java.awt.Toolkit$2.run(Toolkit.java:748)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:739)
         at javax.swing.ImageIcon.(ImageIcon.java:205)
         at myservlets.GetImage.getRemoteImage(GetImage.java:283)
         at myservlets.GetImage.processRequest(GetImage.java:73)
         at myservlets.GetImage.doGet(GetImage.java:394)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
         at java.lang.Thread.run(Thread.java:534)
    Any ideas?
    Cheers,
    James

    Cheers rebol.
    I've tried that (along with all other kinds of techniques I never knew existed). I think it might be a problem with the Tomcat setup - it may need to run headless (sounds a bit severe!...).

  • Problem in Saving Images in Single Folder in Nokia...

    I want to know how to transfer images keeping it in folder. I connect my E63 with USB.I copied my "Photos" folder from my laptop,then opened "File Manager" in Nokia PC suit. There I get 2 options. 1)Memory Card 2) Phone Memory.I select memory card, In that I opened Images Folder which is default in Memory card. I paste My "Photo" folder here in "Images" folder in Memory Card.After disconnecting my phone from USB cable when in my E63 I open Media->Gallery->Images I can see all my images of that folder differently and not in a single folder "Photos" which i pasted.So what should I do?I want all images in folder as I copied and pasted. Am I suppose to create new folder manualy in Phone's Media Gallary?But in phone when I go to Office->File Manager and browse through Images folder of Memory card, I find all images in same folder "Photos" which i pasted(copied), but in Gallary->Images i find all images seperately and not in folder. What should I do? Please help me.
    Solved!
    Go to Solution.

    Hey bro thanks for reply..My main purpose for asking this question was related to xplore only. I tried xplore on my E63. When we hide folder by xplore, we browse through file manager.I mean xplore shows Folders that are in File Manager.After Hiding folder, when I go to Gallery->Images, all the images in folder which I have made hiden, are visible,but...but....all the images are converted in one images. Let me explain, Suppose my folder contains 15 images named IM1,IM2,IM3....IM15. ok. After hiding folder in gallery when i See, there are total 15 images but all are IM1.Again when I unhide folder, its normal. I also tried ticking system option along with hide option in Attributes of xplore as someone suggested me to do so.But didn't worked. My main purpose for asking to move all images into single folder was this only.I didn,t knew you too would be using xplore or else i would have directly asked you this question only.
    Thanks.
    Message Edited by ved123 on 06-Aug-2009 11:52 AM

  • Problems hightlighting/saving images from pdf

    Hi, when I try to save a highlighted part of an image in my pdf, an error occurs: "An interal error occured." Also, when I try to save an image, it just saves them blank...
    I don't know if anyone has had the same experience(s), or perhaps even a link to someone with the same problem.
    Thanks,
    killdemall

    killdemall wrote:
    Hi, when I try to save a highlighted part of an image in my pdf, an error occurs: "An interal error occured." Also, when I try to save an image, it just saves them blank...
    More details would help. Not sure what you mean by "save a highlighted part of an image".
    What is it that you are doing, what steps are you taking to get where you are at and what tools are you using to get there?

  • Problem in saving values to DB

    Hi,
    i'm a new bie to BSP. Currently i'm facing some problems in saving the values to DB
    I'm assigning value for a html hidden field in VBScript, how do i save the same in the SAP database.
    Thnx in Advance
    Vinodh

    Hello, welcome!
    Second please check out this weblog:
    <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a>
    Third, check out in transaction SE80 the BSP Application SBSPEXT_HTMLB and look at the one for inputField.
    Then I would highly recommend checking out this weblog series: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/exploring%20bsp%20development%20and%20the%20miniwas.htm
    It's a complete tutorial including saving to the DB.

  • Problem with displaying image

    Hello!
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.
    Thnks a lot.

    1009316 wrote:
    Hello! Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1009316".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.This is described in the documentation: About BLOB Support in Forms and Reports and Display Image. There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.

  • Problem in saving the image into SQL database..

    Hello,
    In my application I have to save image file (say jpg) into the database and retrieve back and display it on the applet. I am through with grabbing the pixels of the image & sending the pixel array to the servlet but I am struck in how to store the image into the database and retrieve the same.
    Can anybody please help me in this regard... its really urgent...
    Thanks in advance
    Swarna

    Hello.
    I've been researching this problem (saving images in a MySQL database) in order to accomplish a task I was assigned to. Finally I was able to do it. I'd be glad if it will be of any use.
    First of all: the original question was related to an applet. So, the post from rkippen should be read. It says almost everything, leaving the code job for us. Since I managed to write some code, I'll put it here, but I'm not dealing with the byte transferring issue.
    To obtain a byte array from a file I'd open the file with FileInputStream and use a loop to read bytes from it and save them into a ByteArrayOutputStream object. The ByteArrayOutputStream class has a method named �toByteArray()� which returns an array of bytes (byte [] b = baos.toByteArray()) that can be transferred in a socket connection, as said by rkippen.
    My problem was to save an image captured by a web camera. I had an Image object, which I converted into a byte array and saved into the database. Eventually I had to read the image and show it to the user.
    The table in the MySQL database could be:
    CREATE TABLE  test (
      id int(11) NOT NULL auto_increment,
      img blob NOT NULL,
      PRIMARY KEY  (id)
    )I had problems trying to use the �setBlob� and �getBlob� methods in the Statement object, so I used the �setBytes� and �getBytes� methods . In the end, I liked these methods most because they where more suitable to my application.
    The database operations are:
        public int insertImage(Image image) throws SQLException {
            int id = -1;
            String sql = "insert into test (img) values (?)\n";
            PreparedStatement ps = this.getStatement(sql);  // this method is trivial
            byte [] bytes = this.getBytes(imagem); // * see below
            ps.setBytes(1, bytes);
            ps.executeUpdate();
            id = ps.getGeneratedKeys().getInt(0); //Actually I couldn't make this line work yet.
            return id;
        public Image selectImage(int id) throws SQLException {
            Image img = null;
            String sql = "select img from test where id = ?\n";
            PreparedStatement ps = getStatement(sql);
            ps.setInt(1, id);
            ResultSet rs = ps.executeQuery();
            if (rs.next()) {
                byte [] bytes = rs.getBytes(1);
                img = this.getImage(bytes); // * see below
            return img;
        }* If the bytes are read directly from a file, I think it is not necessary to convert it into an Image. Just send the bytes to the database method would work. On the other hand, if the image read form the DB will be written directly into files, the bytes obtained from rs.getBytes(1) would be enough.
    The image operations are:
        public byte [] getBytes(Image image) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            try {
                ImageIO.write(this.getBufferedImage(image), "JPEG", baos);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            return baos.toByteArray();
        public Image getImage(byte [] bytes)  {
            Image image = null;
            ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
            try {
                image = ImageIO.read(bais);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            return image;
        public BufferedImage getBufferedImage(Image image) {
            int width = image.getWidth(null);
            int height = image.getHeight(null);
            BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2d = bi.createGraphics();
            g2d.drawImage(image, 0, 0, null);
            return bi;
        }That's it. I hope it is useful.

  • Problem Saving Image to TIFF

    I'm trying to convert a scanned image to TIFF format. When I try to encode the image to TIFF I get the following errors:
    ava.lang.Error: Int or float buffers require 32-bit data.
         at com.sun.media.jai.codecimpl.TIFFImageEncoder.encode(TIFFImageEncoder.java:206)
         at com.sun.media.jai.codecimpl.TIFFImageEncoder.encode(TIFFImageEncoder.java:153)
         at DocScan.save(DocScan.java:171)
         at DocScan$TwainSaveRunnable.run(DocScan.java:100)
         at java.lang.Thread.run(Thread.java:484)
    Some of the code I am using is as follows:
    public void scan()
    Twain twain=new Twain();
    twain.setVisible(false);
    twain.setPixelType(Twain.BW);
    twain.setCurrentUnits(Twain.INCHES);
    twain.setXResolution(100);
    twain.setYResolution(100);
    twain.setFrame(0,0,8.5,11);
    twain.setBrightness(900);
    twain.setXScaling(.5);
    twain.setYScaling(.5);
    image = Toolkit.getDefaultToolkit().createImage(new TwainImage(twain));
    setSize(width=image.getWidth(DocScan.this),image.getHeight(DocScan.this));
    repaint();
    public void save()
    { fd = new FileDialog(this, "Save a file", FileDialog.SAVE);
              fd.setVisible(true);
              fileName = fd.getFile();
    File f=new File(fileName);
    try
    PlanarImage PImage = JAI.create("awtImage",image);
    FileOutputStream out = new FileOutputStream(f);
    TIFFEncodeParam param = new TIFFEncodeParam();
    ImageEncoder encoder = ImageCodec.createImageEncoder("TIFF", out, param);
    encoder.encode(PImage);
    out.close();
    catch (Exception ex)
    { ex.printStackTrace();
    I would greatly appreciate any help.
    Thanks

    Hello All,
    The below code allows you to read TIFF images. You must have Java Advanced Imaging installed on your system for this to work
        RenderedImage ri = JAI.create("fileload", filename);However the problem I am facing is that, when I save the image back to another TIFF file, the image is getting saved in negative colours, i.e, black in the final image, where originally white is there.
    I hope I am clear about the problem and also hope that the code works for you.
    best wishes
    Issac

  • Facing some problems in creating a custom tabs in CRMD_ORDER Transaction

    Hi Friends,
    I am facing some problems in creating a custom tabs in CRMD_ORDER Transaction code in Solution Manager of SAP.
    Actually my requirement is adding of two tabs(one is header & another is item tab) in the above Transaction, i was able to put one tab i.e header tab but i was not able to keep item tab. i found a badi CRM_CUSTOMER_I_BADI in which documentation was given & i processed in the same way.
    For information i used the Badi CRM_CUSTOMER_H_BADI for header tab which i was able to add the tab & all functions like change, save working Good.
    But i want how to add custom tab in which item details were to be attached.
    i was done with the necessary SPRO settings(or Tcode CRMV_SSV) & able to see the 2 tabs thats it, but the functionality save is not working for the second tab & not saving in table CRMD_CUSTOMER_I (in this table there is one CI include where we added our item fields).
    And also i had a doubt whether to use ALV or Table Control. And if possible can any one can sent me the screen design & the code for the above requirement in detail.
    can any one who have knoweldge in Solution Manager & in the above Badi implementation can give me a right solution which will help me a lot.
    Thanks a lot in advance.
    Thanks
    Ravi.
    can any one give the solution regarding to the above one.
    Edited by: ravikanth on Jul 23, 2008 8:13 AM

    Hello Priyanka,
    I have the same problem by using Service Ticket in SAP CRM 5.0.
    Did you already solved this issue? If so, can you please provide the solution!?
    How can I activate and check the transfer log?
    Thanks and regards
    Alex

  • Problem in creating 1 image using differnt images

    Dear Fellows I want to create an image by using different images in byte array format. Images may be transparent or normal images. I want final result in byte array. I am using the following technique which is working fine but the problem with this technique is that it takes too much time to create an image. This is because I am using MediaTraker. If I delete the code of MediaTracker then program have undeterministic behavior i.e, sometimes it create the final image properly and sometimes nothing is displayed in final image.
    I need some help from you. If anyone of you know the technique to draw image using different images without using mediaTracker kindly let me know.
    Early replies will be appreciated
    // here is the sample code which i m using for creating image
    byte[] backgroundImage= // read 800 X 600 image from disk and convert it in to byte array
    byte[] image1 = // read 200 X 200 image from disk and convert it in to byte array
    byte[] transparentImage // read 300 X 300 transparent image from disk and convert it in to byte array
    Image img=null;
    Frame frame =new Frame();
    frame.addNotify();
    //creating BufferedImage object to store Final image
    BufferedImage requiredImage= new BufferedImage(800,600,BufferedImage.SCALE_SMOOTH);
    //get Graphics of BufferedImage created above
    Graphics2D g=(Graphics2D) requiredImage.getGraphics();
    ///// begin draw back ground image
    img=Toolkit.getDefaultToolkit().createImage(backgroundImage);
    try
    MediaTracker mt = new MediaTracker(frame);
    mt.addImage(img, 0); // adds image with ID 0
    mt.waitForID(0);
    }catch(Exception myex)
    myex.printStackTrace();
    //draw background starting from x=0, y=0 with 800 X 600 dimentions
    g.drawImage(img,0,0,800,600,null);
    ////////// end draw background image
    ////////// begin draw image1
    img=Toolkit.getDefaultToolkit().createImage(image1);
    try
    MediaTracker mt = new MediaTracker(frame);
    mt.addImage(img, 0); // adds image with ID 0
    mt.waitForID(0);
    }catch(Exception myex)
    myex.printStackTrace();
    //draw image1 starting from x=10, y=10 with 200 X 200 dimentions
    g.drawImage(img,10,10,200,200,null);
    //////////// end draw image1
    //////begin transparentImage
    img=Toolkit.getDefaultToolkit().createImage(backData);
    try
    MediaTracker mt = new MediaTracker(frame);
    mt.addImage(img, 0); // adds image with ID 0
    mt.waitForID(0);
    }catch(Exception myex)
    myex.printStackTrace();
    //draw transparentImage starting from x=400, y=0 with 300 X 300 dimentions
    g.drawImage(img,400,0,300,300,null);
    ///end draw transparent image
    byte []finalResult = //convert requiredImage into byte array;
    you can mail me the solution on my email address [email protected]
    thanks with best regards
    and waiting for someone to reply
    kamran zameer

    is there anyone on this forum to help me??????
    regards,
    kamran zameer

  • Problem creating an iDVD disk image

    I am trying to create a disk image of an iDVD project which I can burn to an external DVD drive. I am using iDVD 5. I go to file, and select Save as Disk Image. The movie renders for several hours, but when it gets to Burn, nothing. Burn is selcted in the iDVD window and says: Current Operation: Writing, but the progress bar for Burn remains empty for hours until I cancel. iDVD can't be selected in the menu bar after Burn is selected in iDVD. If I go to Force Quit, it says "iDVD (not reponding)".
    Can anyone tell me what the problem is?
    Thanks.
    Ken
    G4   Mac OS X (10.4.4)  

    Well, I have my first movie. This being my first time I'm not sure if I can give anyone advice, but I was finally successful creating an image and then burning it to a DVD.
    One piece of advice I am sure of. If this is your first time making a movie with iMovie and iDVD, do NOT start with a long movie as your first movie. Do a short movie and find out how things are supposed to work first. I did a long movie which caused a lot of confusion and frustration because I didn't have a successful experience first.
    My movie is of a school show. I was finally successful when I deleted some numbers. Apparently the problem I posted was because my movie was too long for Best Performance. I did upgrade to iLife 6 in the process of figuring out what was wrong. I'm not sure if this is the reason, but I was able to get 72 minutes of video on my DVD with Best Performance (everything I've seen said the maximum is 60 minutes). The Status menu in Project Info of iDVD 6 says I have 72 minutes of video which takes up 3.9 GB of a 4.2 GB DVD. Once again, this being my first time, I'm not sure if this is because I'm using iLive 06.
    One word of caution about iLive 06 (and I am speculating here). I think it is created to work optimally with the newly released Macs with the Intel processor. They run twice as fast as G4s. I found my iMovie and iDVD to be clunky when I edited after the upgrade. Many edits would have up to a five second pause before you got (what I call) the spinning beach ball and then the beach ball would spin for five to ten seconds before you could do the edit. I think I am going to move up my Mac upgrade schedule.
    Thank you to those who gave me advice. It was frustrating because of the time involved, but I am amazed with what we are able to do with video today.
    Ken

Maybe you are looking for

  • How do I send images in-line in text eMails?

    Using TB 24.6.0 and sending eMails in text format (not HTML) I am unable to add images (J-pegs) in-line. How do I overcome this problem or it is not actually possible in TB? Many thanks

  • Connecting Serial Device to iMac

    I have a serial device that I would like to connect to my iMac but of course, iMac don't have serial ports. So I purchased a serial to USB cable device but my iMac will not recognize it. The particular device is a Garmin GPS and I am using it w/Paral

  • Issue with Shared Services 11.1.1

    Hi all, I have an issue with the shared services in version 11.1.1. When i am trying to click on the Application Groups on the left pane in the console, an error message has been displayed as " A communication error has occured while loading the view

  • Locking column widths

    greetings, i have set up various pages and templates in dreamweaver with editable regions . however, when i add or remove content, my columns automatically adjust and throw my whole design off. this also happens when editing these remotely in contrib

  • Apple Airport Express: How To Change IP Address While in Bridge Mode

    Hello, I have a Apple Airport Express router and it has been good for a few years. Just wondering how to change my public IP address. I am also in Bridge mode to a cisco router. Also I am on a Windows 8 computer and this is mainly what I want to chan