Attached image is null

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
     xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
     xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/"
     xmlns:tns="http://www.example.org/SOAPAttReceiverWithMessage/"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     targetNamespace="http://www.example.org/SOAPAttReceiverWithMessage/">
     <types>
          <xsd:schema
               targetNamespace="http://www.example.org/SOAPAttReceiverWithMessage/"
               xmlns:tns="http://www.example.org/SOAPAttReceiverWithMessage/"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
               <xsd:element name="InfoMessage" type="xsd:string" />
          </xsd:schema>
     </types>
     <message name="imageMsg">
          <part element="tns:InfoMessage" name="body" />
          <part name="image" type="xsd:hexBinary" />
     </message>
     <message name="empty" />
     <portType name="AttachmentWithMessage">
          <operation name="sendImageAndMessage">
               <input message="tns:imageMsg" />
               <output message="tns:empty" />
          </operation>
     </portType>
     <binding name="AttachmentWithMessageBinding"
          type="tns:AttachmentWithMessage">
          <soap:binding style="rpc"
               transport="http://schemas.xmlsoap.org/soap/http" />
          <operation name="sendImageAndMessage">
               <soap:operation soapAction="" />
               <input>
                    <soap:body parts="body" use="literal" />
                    <mime:multipartRelated>
                         <mime:part>
                              <mime:content part="image" type="image/gif" />
                         </mime:part>
                    </mime:multipartRelated>
               </input>
               <output>
                    <soap:body use="literal" />
               </output>
          </operation>
     </binding>
     <service name="AttachmentWithMessageService">
          <port binding="tns:AttachmentWithMessageBinding"
               name="AttachmentWithMessage">
               <soap:address
                    location="URL" />
          </port>
     </service>
</definitions>Endpoint generated form WSDL
public class AttachmentWithMessageBindingImpl implements org.example.www.AttachmentWithMessage{
    public void sendImageAndMessage(java.lang.String body, java.awt.Image image) throws java.rmi.RemoteException {}
         Client
  Name bodyName = soapFactory.createName(
                  "sendImageAndMessage", "tns",
                  "http://www.example.org/SOAPAttReceiverWithMessage/");
                SOAPBodyElement bodyElement =
                  body.addBodyElement(bodyName);
                Name name = soapFactory.createName("InfoMessage");
                SOAPElement info =
                  bodyElement.addChildElement(name);
                info.addTextNode("This is a info message!");
                AttachmentPart attachment = message.createAttachmentPart();
                URL url = new URL("file:///C:/temp/pic.gif");
                URLDataSource fds = new URLDataSource(url);
                DataHandler dataHandler = new DataHandler(fds);
                AttachmentPart attachmentPart =
                  message.createAttachmentPart(dataHandler);
                attachment.setContentId("image");
                attachment.setContentType("image/gif");
                message.addAttachmentPart(attachmentPart);
                URL endpoint = new URL
                  ("URL");
               // SOAPMessage response =
                  connection.call(message, endpoint);
                connection.close();I get the body part right but image is null. SOAP message seems to have this image attached but when I try to access it at the enpoint it's null.
SOAP message:
------=_Part_0_394663814.1176981061039
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <841848929844.1176981061039.***>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><tns:sendImageAndMessage xmlns:tns="http://www.example.org/SOAPAttReceiverWithMessage/"><InfoMessage>This is a info message!</InfoMessage></tns:sendImageAndMessage></soapenv:Body></soapenv:Envelope>
------=_Part_0_394663814.1176981061039
Content-Type: image/gif
Content-Transfer-Encoding: binary
Content-Id: <83287838504.1176981059055.***>
GIF89a�h�Any suggestions?

try {
               MessageContext context = MessageContext.getCurrentThreadsContext();
               SOAPMessageContext soapContext = (SOAPMessageContext)context;
               SOAPMessage msg = soapContext.getMessage();
               SOAPPart soapPart =     msg.getSOAPPart();
               SOAPEnvelope envelope = soapPart.getEnvelope();
               Iterator i = msg.getAttachments();
               while(i.hasNext())
                    System.out.println("Attachment");
                    AttachmentPart ap = (AttachmentPart)i.next();
                    System.out.println(ap.getContentId());
                    System.out.println(ap.getContentType());
                    System.out.println(ap.getContentLocation());
                    System.out.println(ap.getSize());
                    Object oo = ap.getContent();
                    if(oo==null){
                         System.out.println("oo is nul");
                    DataHandler dh = (DataHandler)ap.getDataHandler();
                    if(dh==null){
                         System.out.println("dh is null");
                    else{
                         Image o = (Image)dh.getContent();
               }When I try to cast DataHandler.getContent() to java awt.Image I get following exception:
com.ibm.ws.webservices.engine.attachments.ManagedMemoryDataSource$Instream incompatible with java.awt.Image
[23.4.2007 16:37:05:862 EEST] 0000002e SystemErr     R java.lang.ClassCastException: com.ibm.ws.webservices.engine.attachments.ManagedMemoryDataSource$Instream incompatible with java.awt.Image
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at org.example.www.AttachmentWithMessageBindingImpl.sendImageAndMessage(AttachmentWithMessageBindingImpl.java:65)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at java.lang.reflect.Method.invoke(Method.java:615)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:447)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:412)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:332)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:736)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:290)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
[23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
[23.4.2007 16:37:05:909 EEST] 0000002e SystemErr     R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)When sending I print size of the attachment
Attachment size = 45233
Size is same when receiving message at server but still it's null.

Similar Messages

  • Text format + attached image files or Html format + displayed images ?

    Hi, I have this kind of probleme and I need some help.
    (Code : see below)
    I want to send a mail with some attached image files.
    For the message part, I create a MimeBodyPart and add two kinds of message (text or html) and this part is multipart/alternative.
    For the attachment part, I create another MimeBodyPart and I set the Header like this : xxx.setHeader("Content-ID", "<image>").
    When I use outlook (html format) , I receive a mail with the picture displayed at the bottom, it's perfect.
    However the problem is for the mailbox which is in text mode, I receive a mail with message + attachment files, but I also have some image frames generated by xxx.setHeader("Content-ID", "<image>") I guess.
    Who can give me a hand to implement something that able to make difference according to text format or html format.
    I post my code here, thanks a lot :
    //set Message
         msg.setText(pMsgText, DEFAULT_CHARSET);
         // Partie Texte brut
         MimeBodyPart textPart = new MimeBodyPart();
         String header = "";
         textPart.setText(header + pMsgText, DEFAULT_CHARSET);
         textPart.setHeader(
                   "Content-Type",
         "text/plain;charset=\"iso-8859-1\"");
         textPart.setHeader("Content-Transfert-Encoding", "8bit");
         // Partie HTML
         MimeBodyPart htmlPart = new MimeBodyPart();
         String images = BTSBackUtil.generateImgSrc(pictureContainers.length);
         String endPart = "</div>\n</body>\n</html>";
         htmlPart.setText(pMsgTextHTML+images+endPart);
         htmlPart.setHeader("Content-Type", "text/html");
         // create the mail root multipart
         // Multipartie
         Multipart multipart = new MimeMultipart("mixed");
         // create the content miltipart (for text and HTML)
         MimeMultipart mpContent = new MimeMultipart("alternative");
         // create a body part to house the multipart/alternative Part
         MimeBodyPart contentPartRoot = new MimeBodyPart();
         contentPartRoot.setContent(mpContent);
         // add the root body part to the root multipart
         multipart.addBodyPart(contentPartRoot);
         // add text
         mpContent.addBodyPart(textPart);
         // add html
         mpContent.addBodyPart(htmlPart);
         // this part treates attachment
         if (pictureContainers != null){
              PictureContainer pictureContainer = new PictureContainer();
              String fileName = "";
              for(int i = 0; i < pictureContainers.length; i++) {
                   pictureContainer = pictureContainers;
                   byte[] bs = pictureContainer.getImgData();
                   fileName = "image" + i +".jpg";
                   DataSource dataSource = new ByteArrayDataSource(fileName, "image/jpeg", bs);
                   DataHandler dataHandler = new DataHandler(dataSource);
                   MimeBodyPart mbp = new MimeBodyPart();
                   mbp.setDataHandler(dataHandler);
                   mbp.setHeader("Content-ID", "<image"+i+">");
                   mbp.setFileName(fileName);
                   multipart.addBodyPart(mbp);
    // end attachment
    msg.setContent(multipart);

    Hi All!!! I have created this code , i hope this w'll solve u'r problem , this code display u'r html text and display the images below on it, no need to attach the image...... byee.
    package Temp;
    import javax.activation.DataHandler;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.activation.URLDataSource;
    import javax.mail.Authenticator;
    import javax.mail.BodyPart;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.AddressException;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    public class HtmlImageExample {
    public static void main (String args[]) throws Exception {
    String host = "smtp.techpepstechnology.com";;
    String from = "[email protected]";
    String to = "[email protected]";
    //String to = "[email protected]";
    String dir=null;
    //String file = "C://NRJ/EmailApp/src/java/MailDao//clouds.jpg"];
    //File file = new File("C:\\NRJ\\EmailApp\\src\\java\\Temp
    Sunset.jpg");
    // Get system properties
    //Properties props = System.getProperties();
    HtmlImageExample html1 = new HtmlImageExample();
    html1.postImage(to,from);
    // Setup mail server
    String SMTP_HOST_NAME = "smtp.techpepstechnology.com";//smtp.genuinepagesonline.com"; //techpepstechnology.com";
    String SMTP_AUTH_USER = "[email protected]"; //[email protected]"; //techpeps";
    String SMTP_AUTH_PWD = "demo"; //techpeps2007";
    //my code
    public void postImage(String to, String from) throws MessagingException, FileNotFoundException, IOException
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", SMTP_HOST_NAME);
    props.put("mail.smtp.auth", "true");
    // props.load(new FileInputStream(file));
    Authenticator auth = new SMTPAuthenticator();
    Session session = Session.getInstance(props, auth);
    // Create the message
    Message message = new MimeMessage(session);
    // Fill its headers
    message.setSubject("Embedded Image");
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.setContent
    h1. This is a test
    + "<img src=\"http://www.rgagnon.com/images/jht.gif\">",
    "image/jpeg");
    // Create your new message part
    //BodyPart messageBodyPart = new MimeBodyPart();
    //mycode
    MimeMultipart multipart = new MimeMultipart("related");
    MimeBodyPart mbp1 = new MimeBodyPart();
    // Set the HTML content, be sure it references the attachment
    String htmlText = "<html>"+
    "<head><title></title></head>"+
    "<body>"+
    " see the following jpg : it is a car!
    "+
    h1. hello
    "+
    //"<IMG SRC=\"CID:Sunset\" width=100% height=80%>
    "+
    "<img src=\"http://www.yahoo.com//70x50iltA.gif\">"+
    " end of jpg"+
    "</body>"+
    "</html>";
    mbp1.setContent("h1. Hi! From HtmlJavaMail
    <img src=\"cid:Sunset\">","text/html");
    MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setText("This is a Second Part ","html");
    // Fetch the image and associate to part
    //DataSource fds=new URLDataSource(new URL("C://NRJ//MyWeb//logo.gif"));
    FileDataSource fds = new FileDataSource("C://NRJ//MyWeb//Sunset.jpg");
    mbp2.setFileName(fds.getName());
    mbp2.setText("A Wonderful Sunset");
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setHeader("Content-ID","<Sunset>");
    // Add part to multi-part
    multipart.addBodyPart(mbp1);
    multipart.addBodyPart(mbp2);
    message.setContent(multipart);
    // Send message
    Transport.send(message);
    //mycode
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication() {
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    return new PasswordAuthentication(username, password);

  • Image.getWidth(null) and image..getHeight(null)  returns -1

    Hi ,
    Plz tell me whats wrong with code
    import java.awt.Image;
    import java.awt.Toolkit;
    public class ImgSize {
        public static void main(String args[]) {
            Image image = Toolkit.getDefaultToolkit().getImage("Picture.jpg");
            double width = image.getWidth(null);
            double height = image.getHeight(null);
            System.out.println("width :" + width + "-- height :" + height);
            getImageDimesion("Picture.jpg");
        public static void getImageDimesion(String abc) {
            Image image = Toolkit.getDefaultToolkit().getImage(abc);
            double width = image.getWidth(null);
            double height = image.getHeight(null);
            System.out.println("width :" + width + "-- height :" + height);
    }output:
    width :-1.0-- height :-1.0
    width :2592.0-- height :1944.0
    There is no difference in main function getWidth/ getHeight and function getImageDimension getWidth/ getHeight
    If u remove getWidth and getHeigth in the main function i.e comment the 1st four lines in main function then the output is
    Output
    width :-1.0-- height :-1.0
    Plz help in understanding this.
    Thanks
    Venkat

    Toolkit images are not loaded until they are first drawn or you request a property from it (such as getWidth). To force the image to load and wait for it to finish loading, you can use the MediaTracker class. The ImageIcon class has one built in.
    Image image = Toolkit.getDefaultToolkit().getImage("Picture.jpg");
    new ImageIcon(image); //loads the image

  • Wrong folder and files order when attaching image ...

    Hello everyone!
    Long ago I noticed a bug in PC Suite: when you attach images to MMS message in PC Suite you would get a mixture of files and folder (folder, files, then again folders, again files, and - more surprising - also files from parent directory etc.) and you cannot get them normally sorted. No need to say that it is very inconvenient..
    I am just wondering how much time would it take Nokia to eliminate this bug as it is still present in the latest version of PC Suite 7.1.30.9. (Phone - N82). Or maybe there is some solution?..
    Thanks.

    Are you using the classic or newer version of Yahoo Mail!? I just tried adding an attachment in an email to myself & none of the pictures I used were grayed out. I am using the newer version of Yahoo Mail!
    Have you tried restarting your computer?

  • Image is NULL exception, problems displaying a png file

    Hi people,
    I want to display a simple image using j2me on my siemens sl45i emu.
    I'm using the following code to load my png 8x8(created with photoshop, 2bpp) image:
    public void load()
    try
    testImage = Image.createImage("res/enemy1.png");
    catch (Exception e)
    System.err.print("Ladefehler: " + e);
    when I want to display the image using the follwing code:
    private void render(Graphics g)
    g.drawImage(testImage,0,0,0);
    g.drawString("**** you!", 0, 0, Graphics.TOP|Graphics.LEFT);
    I'm getting the following exception:
    java.lang.NullPointerException: Image is null.
    Why do I get this exception when I want to display the image and not when I'm loading the image(something like "couldn't load image..." )....
    I've placed enemy1.png in a folder called "res" in my jar file. Displaying text does work so I don't understand why I can't display an image...
    Any help would be great!
    Thanx in advance, alex

    This can't be possible!
    private void load()
         GameGraphics.getInstance().load();
         Player.getInstance().load();
    I'm printing debug messages in both load()-methods and I'm getting an exception in the player class because gamegraphics didn't finish loading (I can see it from the debugging messages)

  • Error : CGImageCreate: invalid image colorspace: NULL.

    Hi,
    I am unable to launch Intellij IDEA from command line using ./idea.sh on my Mac (OS 10.7.4). The intellij IDEA flash screen comes up after which I am seeing the following error and the application hangs -- the IDEA does not open. I have been trying to get over this for a long time but no help. Any help is appreciated.
    bash-3.2$ ./idea.sh
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:28 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextGetCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextSetBaseCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextGetCTM: invalid context 0x0
    Dec  7 17:37:31 rahusrivastava.ariba.com java[1789] <Error>: CGContextSetBaseCTM: invalid context 0x0
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    2012-12-07 17:37:34.623 java[1789:c07] CWindow's _nativeShow encountered error: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    Dec  7 17:37:34 rahusrivastava.ariba.com java[1789] <Error>: CGImageCreate: invalid image colorspace: NULL.
    bash-3.2$
    Thanks,
    Rahul.

    My input certainly wasn't intended to ba sarcastic, so please forgive me if it seemed so.
    Seroiusly, always do a search before updating, http://discussions.apple.com/search.jspa?objID=f1201&search=Go&q=update+problem, NI is flaky at best IMHO, did you heck with them yet to see if a patch is available?
    Always wait a few weeks before updating, a reinstall is a headache, goodluck!

  • Testing if an image is null

    Hi guys,
    Was wondering if you could help me out. I have a data block based on a table, and this table contains an image of type blob. Now, I have some items on my form that I only want to display if the image is not null and was wondering how I could accomplish this. I dont think the following will work:
    if myblock.picture is not null then
    end if
    Am I correct in thinking that would not work because it cant check if an image is null or not?
    I know I could create a view and add a column using a case statement as follows:
    case when myblock.picture is null then 'N' else 'Y' end picture_present
    However, I am reluctant to create such a view and change my form on it (as my datablock is simply based on a table). I was wondering could I create an item on my datablock which would effectively add the picture_present column I would have had on my view? ie using the formula property on an item? (I ask this because I have never used this column before). So basically, could I create an item and input to the formula property:
    case when iph.picture is null then 'N' else 'Y' end picture_present
    and then this item would evaluate to 'Y' if there was a picture and 'N' if there was not?
    if this wont work could anyone suggest away around my problem.
    Thanks for any time you may take in helping me.
    Edited by: 786733 on 30-Jul-2012 02:44

    You could check if the blob is empty in a post-query trigger like this
    declare
      dummy number;
    begin
      select 1
      into ndummy
      from your_table
      where your_pk = :block.your_pk
      and length(your_blob) > 0;
      do_something_when_not_empty;
    exception
      when no_data_found then
        do_something_when_empty;
    end;cheers

  • Error - Rendered Image is NULL

    Hello !
    I am trying to work on animated objects. I have imported XMII Dynamic Graphics from sdn website and imported the same in my project.
    Now when I am tyring to use HorizLEDMeter or any of its object I am getting the error as  "Rendered Image is null".
    Can anyone please tell me what can be the solution for this ??
    Thanks.

    Please use the latest service pack. I was facing the same problem and after application of service pack, the problem was resolved
    Regards,
    Musarrat

  • When I attach images to an email they show as the image and not an icon.  Is there a way to make the attachment an icon?

    When I attach images to an email they show as an image and not an icon.  Is there a way to have them attached as an icon?
    When I send attachments this way some people can't save them.   They can see them but not save them.
    Any ideas?

    They are received as attachments, i.e. icons. What you see is the real image on your disk, and only if small enough to be displayed. Otherwise, they are small icons inserted in the text.
    Additionally, when you place an image in the message, you will find an option in the lower right corner, otherwise absent. Use it, if need be.

  • How can I forward an email and include the attached images?

    I sent a client an email with attahced images (I attached the images, pictures I took).  The client responded with the images attached to the response.  When I try to forward that response to a third party the attached images become place holders only, no image. 
    Shouldn't my forwarded mail include the images?  Short of re-attaching the images how can I get them included in the forwarded email?

    I tested a few I forwarded to myself and I could still forward with attachments. You might try Redirecting it (Message menu).

  • In Windows 7, how come my in-line attachment images on email can not be viewed/open in the email?

    I have windows 7. Recently, after Moz upgrade, I noticed that emails with in-line attachments are either completely deleted, or only the name of the file in text is shown - not the image itself.
    How can I re-set or change my settings to enable in-line attached images from the web (example .cid) be viewed? My plug-ins are all up to date (quick time, java, etc).

    Let's try this first. Hold down the Shift key while you try to launch iTunes. You should eventually see the following dialog:
    Click "Choose library". Browse to inside the following location (depending on what operating system you're running):
    Operating System
    Default location of iTunes library
    Microsoft Windows XP
    \Documents and Settings\[your username]\My Documents\My Music\iTunes\
    Microsoft Windows Vista
    \Users\[your username]\Music\iTunes\
    Microsoft Windows 7
    \Users\[your username]\My Music\iTunes\
    ... and open the iTunes library you find in there.

  • I am using a MacBook Pro.  I simply cannot find a way to attach images adjusted in Lightroom as attachments and/or without massive degradation in quality.  I follow the LR attach email process as specified by LR, the photos appear in the email seemingly e

    I am using a MacBook Pro.  I simply cannot find a way to attach images adjusted in Lightroom as attachments and/or without massive degradation in quality.  I follow the LR attach email process as specified by LR, the photos appear in the email seemingly embedded and the recipients of the email cannot save the attachment.

    You are welcome.  Just finished a chat session with an Apple support rep and confirmed the matte option no longer available.  Seems lots has changed since I bought my 17” 19 months back:).  They did say that there were after market screen films available from places like amazon
    Have never used anything like that though.  My wife has a 2008 MBP 15” with gloss and I can say it is a nice screen finish, you just have to be careful of lighting from behind you.  All my iMacs were glossy and I did learn to compensate for the added brilliance the screen brought to the photos.  The new soft proofing feature of LR5 seems to better estimate the level of brightness of the printed work, compared to past versions of the s/ware.
    In any case, in my opinion you really can’t go wrong with the apple product.  I bought my first iMac in mid 1999 and have never looked back.  I donated that machine to a pre-school in 2008, it was running OSX version 2 or 3 I think.  I did run Photoshop 7.0 on an IBM laptop for a time (windows XP).  I think I had one of the very first versions of Adobe Camera Raw on that machine.  I digress, sorry.
    The chat representative did confirm that the 17” is out of production and I’m guessing Apple found the market for the big laptop just wasn’t there.  They did mention that 17” MBP’s show up as “certified refurbished” units from time to time.  Suggest you might explore that option with a local Apple store in the UK, assuming  Apple has store front operations off this continent of course.
    Please feel free to contact me with further questions if you wish.
    Take care, Gordy

  • Attach images in Adobe Reader for iPAd

    Dear All,
    In Actobat Reader for PC, we can attach images either using form with Button/Icon or Image Fields. Is there a way we can do the same thing in Adobe Reader for iPad?
    Thanks,
    Jackson

    The iOS Adobe Reader does not support attaching images using form fields. Thanks for contacting us!

  • Adding attached images to iPhoto

    The ability to add attached images to iPhoto from Mail by choosing Save and Add to iPhoto doesn't work.

    It seems the link is broken.
    You can just drag the photo to the iPhoto icon in the Dock until it gets fixed.
    You could also Save the attachment to the Auto Import folder inside the iPhoto Library, but that's a bit difficult to get to unless you go in and create an alias somewhere convenient.

  • How can I manually attach images from my photo booth (imported into iPhoto) to emails? Auto function, in photo booth has my photos lying sideways?

    How can I manually attach images from my photo booth to iCloud emails?
    They are imported as 'events' into my iphoto library.
    Auto function, in photo booth has my photos lying sideways when placed in 'mail' emails?

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

Maybe you are looking for

  • How to deal with Letter of Credit in Oracle Payables ??

    In case of letter of credit, an 100% advance payment is done to bank, Bank charges its commission, The letter of credit is for goods imported which is part of inventory. As standard practices of finance, exchange gain/loss and expenses incurred to br

  • Cannot install Adobe Reader on Windows 7 Home Premium

    The download is not a problem. I have tried the fixes on the Adobe page and through Google Search. Help! The installation gives this error at about 97% complete: Error 1935.An error occurred during the installation of assembly component {B708EB72-AA8

  • Read logical port for the proxy

    HI , There is method  or FM that can bring all the logical port that available for proxy class, logical port that defined on SOAMANAGER or LPCONFIG . Regards Joy

  • New to java can somebody please help me?

    I'm using jdk1.3.1_01 and apache tomcat 4.0. the jdk works fine now thanks to much help from members on here. Now i have a problem with my apache tomcat server. When ever i try to start it i get the error which i've copied and pasted below. Can anyon

  • Pricing - Group Discounts

    Hi Everybody, We have a situation where we need to give a discount of say 10 % if the total qty of all the items is 144 EA and if it is 180 EA we give a discount of say 20%. I can create a condition type which Z001 and flag it as Group Condition and