Displaying Image (*png) in MIDlet

I have encountered the following error when i try to display a *png file using ImageItem.
IOException
try
Image image = Image.createImage("/BizAuto.png");
mMainForm.append(new ImageItem(null, image, ImageItem.LAYOUT_CENTER, null));
catch (java.io.IOException ioe) {
System.out.println(ioe);
System.out.println("Unable to locate or read .png file");
It can't read my image file, and would give the IOException.
Was wondering is there a specify directory which i have to put my image file in?
Been looking at the code, but still can't find what's wrong.

Sorry ... as i really need help ... Could somebody help me?
Thanks alot ...

Similar Messages

  • Displaying image in pdf format - what is this image format?

    Hi All,
    I have a requirement where I need to embed an image in a pdf report that gets generated in BIP. The image is passed as a byte array from an external application , that BIP should recieve as a parameter and display it. The byte array looks very similar to the image that rtf generates when an image is pasted in it and the default xsl-fo template and style-sheet is created usign the BIP Word Plugin.
    The issue that I am facing is that, the byte-code is not getting displayed as an image in the pdf.
    When I pasted the image for the corresponding byte code in an rtf and generated the default xslfo file that BIP plugin generates, I am getting a different set of charecters than what is being send to BIP as parameter.
    I have read about CLOB and BLOB being queried from database using sql and displayed as image.
    I would like to know what exactly is the BIP Plugin converting the image to , when I paste it in an rtf and convert it to xsl-fo style sheet.
    If I have not made my query very clear and you are still confused about what I am talking about , please try this out in an rtf template.
    1) Open blank rtf template
    2) Paste any tiff or jpg image in your rtf template and save it.
    3) Goto Addin --> Tools --> Export --> Click on FO Formated XML or XSL FO Style sheet in the Menu
    4) An xml document will be opened in your default browser.
    5) Scroll down to the section with the tag " <fo:instream-foreign-object"
    6) Will see a big charecter set, which I believe is some form of representation of the image pasted in the rtf.
                   <fo:block>
                             <fo:instream-foreign-object
                             content-type="image/png"
                             width="163.5375pt"
                             height="53.07pt"
                             xdofo:alt="An Image"
                             xdofo:image-uid="fbasadsadaferehgffhghd1dvcxab9">               
                             <xsl:value-of select="$Logo3"/>
                             </fo:instream-foreign-object>
                   </fo:block>
    WHERE $Logo3 is declared as parameter and
    = /9j/4AAQSkZJRgABAgEAYABgAAD/7Q0YUGhvdG9zaG9wIDMuMAA4QklNA+0KUmVz b2x1dGlvbgAAAAAQAGAAAAABAAEAYAAAAAEAAThCSU0EDRhGWCBHbG9iYWwgTGln aHRpbmcgQW5nbGUAAAAABAAAAHg4QklNBBkSRlggR2xvYmFsIEFsdGl0dWRlAAAA ................................................goes on!!! [ 200000+ charecters]
    I would like to know what this image type is? Is this a byte array?
    If any one has had this and successfully taclkled this sort of requirement please help!!!
    Any pointers, explanations in this regard would be really helpful
    Thanks in advance
    Sujith

    What exact version of CF7 are you on?

  • JDeveloper 11g Using jsp to display images

    I am converting a 10.1.3.3 application to 11.1.1.3
    It has 2 web modules. One is an ADF administrator module and the other is a public web that displays information including images stored as blobs.
    This public module has a simple technology scope, only html, java, jsp and servlets. It is a hand me down from a few technologies ago and ran well on 10.1.3.3
    To display images it uses a jsp acting as a servlet which is referenced inside other jsps. Since moving to 11g the images no longer display. If I use a java class servlet it works
    however I have to use the full url, e.g. http://mydomain:myport/web/Sevlet?.... which means I have to update the details for each deployment.
    I can use <h:graphicImage but this means I have to include JSF and use expression language to fill in the servlet parameters.
    I don't know what has changed to cause it to fail. Weblogic?
    The Libraries and Classpath include
    JSP Runtime
    Servlet Runtime
    JSTL 1.2
    The servlet jsp is as follows remembering it works in 10.1.3.3
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="java.io.*" %>
    <%@ page import="userinterface.util.ByteArray" %>
    <%@ page import="userinterface.online.ImageUIHelper" %>
    <%@ page import="userinterface.online.ImageUIHelperValue" %>
    <%
         String dataObjectId = "";
         String regionId = "";
         boolean getObjectImage=false;
         boolean getRegionImage=false;
         // determine which type of image to retrieve
         if (request.getParameter("dataObjectId") != null)
              dataObjectId = request.getParameter("dataObjectId").toString();
              getObjectImage=true;
         } else if (request.getParameter("regionId") != null)
              regionId = request.getParameter("regionId").toString();
              getRegionImage=true;
         if (getObjectImage==true || getRegionImage == true)
              try
                   ImageUIHelper imageHelper = new ImageUIHelper();
                   ImageUIHelperValue vo = null;
                   if (getObjectImage)
                        vo = imageHelper.doReadObjectImage(new Integer(dataObjectId));
                   } else if (getRegionImage)
                        vo = imageHelper.doReadRegionImage(new Integer(regionId));
                   if (vo != null && vo.getImage() != null)
                        // determine the mimetype
                        String mimeType="image/png";
                        if (vo.getFilename().toLowerCase().endsWith(".gif"))
                             mimeType = "image/gif";
                        else if (vo.getFilename().toLowerCase().endsWith(".jpg"))
                             mimeType = "image/jpg; charset=windows-1252";
                        else if (vo.getFilename().toLowerCase().endsWith(".png"))
                             mimeType = "image/png";
                        else if (vo.getFilename().toLowerCase().endsWith(".bmp"))
                             mimeType = "image/bmp";
                        response.setContentType(mimeType);
                        response.setHeader("pragma", "no-cache");
                        ServletOutputStream os = response.getOutputStream();
    os.write(vo.getImage().getBytes());
                        os.flush();
                        os.close();
              } catch (Exception ex)
    A simple test harness follows. The actual pages substitute the java values using <%= uri %> as below
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%
    String uri = "http://localhost:7101/publicweb/img/ImageServlet?imageType=dataObject&dataObjectId=822";
    String uri2 = "ImageServlet.jsp?dataObjectId=822";
    String uri3 = "ImageServlet.jsp?dataObjectId=694";
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
    <title>testServlet</title>
    </head>
    <body>
    <table cellspacing="2" cellpadding="3" border="1" width="100%">
    <tr>
    <td width="20%">Checking Servlet</td>
    <td width="80%"><img src=<%= uri %>
    id="imge"
    width="400px" alt="Image" />
    </td>
    </tr>
    </table>
    </body>
    </html>

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

  • Having trouble displaying images on a page in APEX through IE.

    I'm trying to conditionally display images (used as toggle buttons) in a tabular report in APEX. This is for our Benefits application where an employee can include or exclude his/her dependents from the plan. For each row, in one column I want to show only 'Include' button if an individual is not already a member, and in another column show only 'Remove' button if already included. I'm using the button images as links and passing information to a page process.
    I was able to come up with the SQL query which works perfectly fine in Firefox. But the images won't display in Internet Explorer. Does anyone have any idea how to make this work in IE?
    Below is my query. This code will display 'Include in plan' image only if the member is not already added to the plan. If 'Y' is the result of the query, then the member is already included and no image is displayed. Otherwise display the image. Pass the member_id to an application item and process the record in a Before Header process.
    select elected_member_id, member_type, last_name, first_name, middle_name, gender,date_of_birth,student_flag,trunc(months_between(sysdate ,date_of_birth)/12) AGE,
    decode((select 'Y'
    from eben_elected_plan_info epi
         where plan_name not in ('Delta', 'Vision', 'HEALTH_FLEX', 'DEP_FLEX')
         and epi.elected_member_id = emi.elected_member_id
         and transaction_type <> 'END'), null,'<a href="f?p=&APP_ID.:70:&SESSION.::::F_APP_MEMBER_INCLUDE:'||elected_member_id||'<img src="&WORKSPACE_IMAGES.include.png"></a>') elected_member_id_include,
    elected_member_id elected_member_id_exclude
    from eben_elected_members_info emi
    where emp_person_id = :f_app_person_id
    and member_type <> 'Employee'

    I was able to resolve this issue by creating the SQL statement from scratch in IE. It then recognized the images.

  • Trying to display a PNG or JPEG on dashboard in Project server 2010 BI

    I am trying to display a PNG or JPEG in project server 2010 BI in a webpart page.  I have tried just using a pdf, etc.  I cannot get it to work; it says the it cannot find the URL.  I created a new page in another sharepoint site i have,
    put a media webpart on it, put a url in it and it finds it fine.  However, when I put this page in a dashboard it says it cannot find it?  How do I do this?  What is a simple easy way to just put a picture on a dashboard in BI. 
    Cletus51

    Have you tried using an Image Viewer Webpart (or) a Content Editor Web part?
    If you use a content editor webpart, Click on Edit HTML Source, and you can use the HTML below:
    <img src="<url>" alt="Smiley face" width="42" height="42">
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Css style sheet will not display images

    If i hardcode my style into the Login header.
    Change my body to reflect my html changes for div tags
    the login displays the way I want.
    If I remove my style and link to an uploaded style doing the following.
    <link rel="stylesheet" href="#WORKSPACE_IMAGES#SAMPLE2A.css" type="text/css">
    the images do not display. Everything else from the style sheet works
    just the images do not.
    I am doing the following to display the images
    #header {background: url("#WORKSPACE_IMAGES#testheader.png") no-repeat; width: 743px; height: 123px; position: relative;}
    is "#WORKSPACE_IMAGES#testheader.png" correct way to display images when doing css
    Howard

    #WORKSPACE_IMAGES# is not substituted in files, such as css at runtime, only in the page template (and other places in apex). The best way that I've found is to define the bulk of your classes in a .css, and only the image attributes in the page template header. Or, you can just store everything on the filesystem in Apache and use relative paths.
    Tyler

  • Displaying images in canvas one after another

    Hi all,
    I have a problem displaying images in canvas one after another. I am using for loop and when i run the application, all images run back in the and only finally only the last image gets displayed in the emulator. I also used thread.sleep(). But it din't work.
    Here is my code:
    // A canvas that illustrates image drawing
    class DrawImageCanvas extends Canvas
    Image image;
    public void paint(Graphics g)
    int width = getWidth();
    int height = getHeight();
    g.setColor(0);
    g.fillRect(0, 0, width, height);
    String images[]={"paint_2.PNG","radha.PNG","cute.png","design.png","flowers.png"};
    for(int i=0;i<images.length;i++)
    image = null;
    System.out.println("/"+images);
         try
         image = Image.createImage("/"+images[i]);
    catch (IOException ex)
    System.out.println(ex);
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    return;
    if (image != null)
    g.drawImage(image, width/2, height/2, Graphics.VCENTER | Graphics.HCENTER);
    try
    Thread.sleep(5000);
    catch(Exception ex)
         System.out.println("the exception is.."+ex);
    Help me and Thanks in advance.

    See the code below : prefer the use of a Timer and a TimerTask instead of Thread.sleep().
    showNotify (from Canvas) is used to launch the timer.
    import java.io.IOException;
    import java.util.Timer;
    import java.util.TimerTask;
    import javax.microedition.lcdui.Canvas;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    public class DrawImage extends Canvas {
        Image image;
        String images[] = {"img1.png", "img2.png", "img3.png", "img4.png", "img5.png",
                            "img6.png", "img7.png"};
        Image[] tabImage;
        int imageCounter = 0;
        public DrawImage(){
            try {
                tabImage = new Image[images.length];
                for (int i = 0; i < images.length; i++)
                    tabImage[i] = Image.createImage("/" + images);
    } catch (IOException ex) {
    ex.printStackTrace();
    public void paint(Graphics g) {
    int width = getWidth();
    int height = getHeight();
    g.setColor(0);
    g.fillRect(0, 0, width, height);
    image = tabImage[imageCounter];
    if (image != null)
    g.drawImage(image, width / 2, height / 2, Graphics.VCENTER | Graphics.HCENTER);
    else{
    System.out.println("null");
    g.setColor(0xffffff);
    g.drawString("Failed to load image!", 0, 0, Graphics.TOP | Graphics.LEFT);
    protected void showNotify(){
    Timer t = new Timer();
    t.schedule(new PhotoSwitcher(), 5000, 5000);
    private class PhotoSwitcher extends TimerTask{
    public void run() {
    if (imageCounter < images.length - 1)
    imageCounter++;
    else
    imageCounter = 0;
    repaint();
    I hope this will help you !
    fetchy.
    Edited by: fetchy on 14 ao�t 2008 09:48                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • DataGrid ItemRenderer - display image

    I have a DataGrid and I'd like to display different images
    (PNG files) in one of the columns based on the value for a given
    row.
    Say I have an object which looks like this:
    public class LogMsg {
    public var type:String;
    public var msg:String;
    My DataGrid uses an ArrayCollection of LogMsg objects as its
    "dataProvider". I'd like the "type" column of my DataGrid to
    display an image instead of the text (i.e. "error", "info",
    "debug").
    <mx:DataGrid>
    <mx:columns>
    <mx:DataGridColumn dataField="type" headerText="Type"
    itemRenderer="????" />
    <mx:DataGridColumn dataField="msg" headerText="Message"
    />
    </mx:columns>
    </mx:DataGrid>
    How would I go about doing this? My application structure on
    disk looks like this:
    C:\my_app
    C:\my_app\assets
    C:\my_app\assets\error.png
    C:\my_app\assets\info.png
    C:\my_app\assets\debug.png
    C:\my_app\src\Main.mxml
    C:\my_app\src\view\MyDataGrid.mxml <-- this is the one
    with the DataGrid shown above.
    Thanks in advance.

    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    [Embed(source="logo.gif")]
    [Bindable]
    public var imgCls:Class;
    ]]>
    </mx:Script>
    <mx:HBox>
    <mx:Image id="myImageRaw" source="{imgCls}"/>
    </mx:HBox>
    </mx:Application>

  • Can't load large image (png)

    I have a sandbox web page with large image (png file 26000x13000, 14MB packed/330MB unpacked). I can open it in IE but firefox display page without image. I have 1,2GB of free RAM, how can I adjust settings to make allow firefox display the image? Currently there is no difference if I use unpacked BMP, it doesn't work as well. I would prefer to stay with PNG since it's only 14MB on disk.

    Is there an error message?
    We've been able to load more than 100MB files.
    Try setting SQLNET.EXPIRE_TIMEOUT=0 in the sqlnet.ora file
    Fenella

  • Poor displayed image resolution?

    I've just started using FormsCentral I've inserted an image created in PhotoShop and saved both as a jpg (600dpi) and as a png. But the displayed image resolution (in FormsCentral preview) for either format is terrible. What have I done wrong?

    If the space the image is placed in is smaller then the image size then our servers scale it down to fit. The best thing to do is make sure the image is not wider than the page and not taller than the space. Also save it at a lower web dpi so we don't reprocess it on the server.
    Hope that works for you.
    Randy

  • h:graphicImage not displaying image in ie7

    Hello All,
    I have a jsp page in that if i click one link it will open another jsp file in a popup. In this jsp i have to display one image that image location i am dynamically creationg and displaying properly in ie6. now i have migrated ie from 6 to 7. so now that image not displaying
    Code:
    <h:graphicImage url="#{ViewUserView.currentUserBarcodeFilePath}"/>
    url is showing me correct location of the file when i displayed as output text
    <h:outputText value="#{ViewUserView.currentUserBarcodeFilePath}" />
    i.e. C:\Tomcat6\UserBarcode.png.
    previosly (i.e in ie6) this is displaying the image but now it is not working.
    Anybody please help me on this.
    Thanks
    Indira.

    Hi Indira
    Assuming you're using JSF 1.2 and Tomcat 6, you can reference/load images onto your web pages using two different ways:
    The first way*
    Add image directory (and sub-directories, if required) to your project and include this image directory in your build process via Ant, Maven or whatever tool you used. Disadvantages of this method: 1) Size of your WAR file will grow when you add more images to the image directory e.g. logos, emoticons, banner ads, etc; 2) Can't change images dynamically without having to stop/restart your web server.
    The second way*
    a) Create an image directory (and sub-directories, if required) on your file system external to your J2EE project. File system here refers to a folder (Windows), or directory (Linux & others). Advantages of this method: 1) Size of WAR file won't be big; 2) You can change images on-the-fly without having to stop/restart your web server.
    b) You also need to define the images' path in your web.xml as in the example below:
    <servlet>
             <servlet-name>ExternalImagesServlet</servlet-name>
             <servlet-class>mypackage.servlet.MyImageServlet</servlet-class>
             <init-param>
                    <param-name>RemoteURI</param-name>
                    <param-value>http://localhost/images-context</param-value>
             </init-param>       
             <init-param>
                    <param-name>AllowedContentTypes</param-name>
                    <param-value>image/gif,image/jpeg,image/png</param-value>
             </init-param>
             <init-param>
                    <param-name>DefaultFileOn404</param-name>
                    <param-value>../images/blank.jpg</param-value>
             </init-param>
    </servlet>
    <servlet-mapping>
             <servlet-name>ExternalImagesServlet</servlet-name>
             <url-pattern>/images/*</url-pattern>
    </servlet-mapping> 
    Note: In production environment, change localhost above to your fully-qualified domain name (if the images are hosted on the same server as the web site), or a name of a physical server that sits behind your firewall (if the images are hosted on a separate server to your web site).
    c) Create a servlet to load your images, for example:
    public class MyImageServlet extends HttpServlet
        private static final int DEFAULT_BUFFER_SIZE = 10240; // 10KB
        private String remoteURI = null;
        private String allowedContentTypes = null;
        public void init(ServletConfig config) throws ServletException
             super.init(config);
             remoteURI = config.getInitParameter("RemoteURI");
            allowedContentTypes= config.getInitParameter("AllowedContentTypes");
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
         if (remoteURI == null) {
            response.sendError(HttpServletResponse.SC_NOT_FOUND); // HTTP 404 error code
            return;
         getRemoteImage(request, response, remoteURI);
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            doGet(request, response);
       public void getRemoteFile(HttpServletRequest request, HttpServletResponse response, String remoteDir) throws ServletException, IOException
            HttpURLConnection httpConn = null;
            InputStream input = null;
            OutputStream output = null;
            int statusCode = 0;
            String contentType = null;
            try
                 URL remoteURL = new URL(remoteDir + request.getPathInfo());     
                 httpConn = (HttpURLConnection) remoteURL.openConnection();
                 // if content type is unknown set to default type
                 contentType = httpConn.getContentType();
                 if (contentType == null) {
                     contentType = "application/octet-stream";
                 statusCode = httpConn.getResponseCode();
                 if (statusCode == HttpURLConnection.HTTP_NOT_FOUND)
                     response.sendRedirect(defaultFileOn404); // Oops, image not found!
                        // or uncomment the next line
                    // response.sendError(HttpServletResponse.SC_NOT_FOUND); // HTTP 404 error code
                     return;                  
                 else if (statusCode == HttpURLConnection.HTTP_OK)
                     if (allowedContentTypes.indexOf(contentType) > -1)
                         input = httpConn.getInputStream();
                         output = response.getOutputStream();
                         int count = 0;
                         byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                         while ((count = input.read(buffer)) > 0) {                                               
                             output.write(buffer, 0, count);
                         output.flush();
            catch (MalformedURLException e)     {             
                throw new ServletException(e.getMessage());           
            finally {
                if (input  != null) { try { input.close();  } catch(Exception ex){;} }
                if (output != null) { try { output.close(); } catch(Exception ex){;} }
    }d) Next, under your Tomcat 6's installed directory, add the content below to a file called images-context.xml (See <param-name>RemoteURI</param-value> above for reference to file name):
    <?xml version="1.0" encoding="UTF-8"?>
    <Context docBase="c:/images" /> <!-- or whatever file structure your operating system offers -->Save the images-context.xml file in your Tomcat's directory, as in:
    Tomcat
        --> conf
            ---> catalina
                  ---> localhost // save it heree) Finally, create some JSF codes like below in your JSP file:
    <h:outputLink value="../index.jsf" title="Home">
       <h:graphicImage id="logo" alt="Company logo" url="../images/logo.png" />
    </h:outputLink>Where *../images/* is referring to the reference below in your web.xml file:
       <url-pattern>/images/*</url-pattern>Build your project and you're ready to go. Tried changing a couple of the images in your image directory and see the changes appear immediately. Note: You may need to refresh your web page to force the web browser to reload the images.
    If you're using Apache, there's another way - but I'll leave that to you to do some investigation.
    That's it! Sorry, for the long answer.
    Also, there's no copyright to the above source codes (even though I wrote it). Just a mention of this forum's thread in your codes' comment is sufficient.
    Refer your friends to this thread if they are stuck with a similar problem.
    Edited by: icepax on 8/01/2010 17:21
    Edited by: icepax on 8/01/2010 17:50 Add save directory for images-context.xml file.

  • Displaying Image on the Emulator

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

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

  • Display images from a SQL database

    I want to display images from a SQL database. The images are in a table under a specific column and are stored as a link to the image. How would I display the images from the column in LabVIEW?
    I'm using LabVIEW 2013 version 13 and SQL Server 2012
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere

    Hi PauldePaor,
    I hope you are well.
    Once you have pulled the data from the database into LabVIEW in a string form (or path), you can simply use the Read BMP File (Or jpg, png depending on the file type) VI.
    More information can be found here:
    http://digital.ni.com/public.nsf/allkb/02971A30F5D8FC6986256A0A004F11A0
    Kind Regards,
    Aidan H
    Applications Engineer
    National Instruments UK & Ireland

  • Safari not displaying images

    Since the last OSX software update my Safari won't display any images that are embedded in html. It still displays jpeg images alone. Any idea how to fix it?
    Here's how google looks like:
    http://borispc.com/forum/google.png
    Safari Version 2.0.3 (417.9.2)
    Thanks.
    G5 dual 2.7Ghz   Mac OS X (10.4.6)  

    borispc,
    Welcome to Apple Discussions.
    That Google display indicates that you need to go to Safari>Preferences...>Appearance>(Check) Display images when the page opens.
    ;~)

  • Saving and loading images (png) on the iPhone / iPad locally

    Hi,
    you might find this helpful..
    Just tested how to save and load images, png in this case, locally on the i-Devices.
    In addition with a SharedObject it could be used as an image cache.
    Make sure you have the adobe.images.PNG encoder
    https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/images/PNGEncoder.as
    Not really tested, no error handling, just as a start.
    Let me know, what you think...
    Aaaaah and if somebody has any clue about this:
    http://forums.adobe.com/thread/793584?tstart=0
    would be great
    Cheers Peter
        import flash.display.Bitmap
         import flash.display.BitmapData
        import flash.display.Loader   
        import flash.display.LoaderInfo
        import flash.events.*
        import flash.filesystem.File
        import flash.filesystem.FileMode
        import flash.filesystem.FileStream
        import flash.utils.ByteArray;
        import com.adobe.images.PNGEncoder;
    private function savePic(){
        var bmp =  // Your Bitmap to save
        savePicToFile(bmp, "test.png")
    private function loadPic(){
         readPicFromFile("test.png")
    private function savePicToFile(bmp:Bitmap, fname:String){
           var ba:ByteArray = PNGEncoder.encode(bmp.bitmapData);
            var imagefile:File = File.applicationStorageDirectory;
            imagefile = imagefile.resolvePath(fname);
            var fileStream = new FileStream();
            fileStream.open(imagefile, FileMode.WRITE);
            fileStream.writeBytes(ba);
             trace("saved imagefile:"+imagefile.url)
    private function readPicFromFile(fname:String){
            var imagefile:File = File.applicationStorageDirectory;
            imagefile = imagefile.resolvePath(fname);
            trace("read imagefile:"+imagefile.url)
            var ba:ByteArray = new ByteArray();
            var fileStream = new FileStream();
            fileStream.open(imagefile, FileMode.READ);
            fileStream.readBytes(ba);
            var loader:Loader = new Loader();
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPicRead)
            loader.loadBytes(ba);   
    private function onPicRead(e:Event){
        trace("onPicRead")
         var bmp:Bitmap = Bitmap(e.target.content)
         // Do something with it

    Are the movies transferred to your iPhone via the iTunes sync/transfer process but don't play on your iPhone?
    Copied from this link.
    http://www.apple.com/iphone/specs.html
    Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Baseline Profile up to Level 3.0 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.
    What are you using for the conversion? Does whatever you are using for the conversion include an iPod or iPhone compatible setting for the conversion?
    iTunes includes a create iPod or iPhone version for a video in your iTunes library. Select the video and at the menu bar, go to Advanced and select Create iPod or iPhone version. This will duplicate the video in your iTunes library. Select this version for transfer to your iPhone to see if this makes any difference.

Maybe you are looking for

  • Problem with "Database Gateway for SQL Server"

    Hello, i am testing the different technologies for connecting an oracle database with a sql-server database. The way using 10g-generic-connectivity with ODBC works fine, but the 11g-DG4MSQL makes problems. Environment: Server PEGASUS (32bit Windows S

  • Statutory Compliances (Indian Localization)

    Hi All, I've some doubts regarding the Statutory Compliances (Indian Localization) in SBO and I want to share with all you. Anyone who can plz help me. Service Tax ·         Is tracking invoice wise details and automatically calculating service tax p

  • Exception in PreFlight for a PDF doc

    Now I want to call it vb console app to get error, i have following code PDFApp = CreateObject("AcroExch.App")                         PDDoc = CreateObject("AcroExch.PDDoc")                         PDDoc.Open(fullPathPDF)                         pdfP

  • How to transfer songs from old i pod(not stored in itunes) to new i pod?

    i just got the new ipod touch! i love it... my old ipod is stuck on hold i can only access the data through my computer... much of the music on my old i pod is from my old computer and ive never backed it up... how can i get all my songs back...

  • Downpayment Processing as a Document Pricing Condition

    Hi There, Through help.sap.com I was researching new functionality, and found the following documentation on processing Downpayments through pricing conditions. http://help.sap.com/erp2005_ehp_02/helpdata/en/46/27dcd449fc14dce10000000a155369/content.