Can't read image file

Dears,
I was having forms version 10.1.2.0.2 and I was using webutil to upload an image and to download it. My problem is sometimes the image files are uploaded and sometimes not => I got "Can't read image file D:\...\image.jpg"
I upgraded to forms 10.1.2.3 and the problem persists.
I'm seeing that the picture resides in the workspace environment and not uploaded to the database.
I'm not limiting the size of the pic in the frmweb.cfg file, instead this limitation occurs on form level.
Hint. If you save this picture in "photoshop" tool, than you can upload the same picture without any problem.
Any suggested help will be appreciated.
Best Regards,
Joe Farah
Edited by: Joe Farah on Feb 26, 2009 11:01 AM

Yes dear, this is the way that we can follow in order to get rid of this problem. Actually we have to mention to all users of my system to save the image file in this tool. But, it's somehow cumbersome for them as they might not have any of the mentioned imaging tool on their systems, isn't it ?
But isn't there any way to fix this problem ? Or shall I go by using PJC/Java Beans ? We have to find an effective way.. :)
Thanks,
Joe

Similar Messages

  • Signed applet can't read image file..

    Hello
    My English ability is very poor.. sorry
    I make a signed applet
    and I open Internet Exploere
    I connect to my web page
    when I connect to my web page
    my signed applet upload "c:\blahbalh...\image.gif" automatically
    but It's not work
    java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\krict\LOCALS~1\Temp\Hnc\BinData\EMB00000cac2143.jpg read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at EchoApplet.onSendData(EchoApplet.java:61)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
         at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
         at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
         at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
    signed applet can't not read file..
    how can I solve my problem?

    Trace please.
    http://forum.java.sun.com/thread.jspa?threadID=656028
    Maybe some relevant code
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and reply 18 for the java class file using doprivileged

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • Read Image File Error

    When I read image with Read_Image_File procedure i got an error in specified files 'FRM-47100 can not read image c:\abc.jpg'
    i think it is on high resolution please promply resolve it. its very urgent
    best regards
    R E H AN M I R Z A

    Hello,
    Found this on Metalink:
    Problem Description
    You are trying to use READ_IMAGE_FILE in forms to read a JPG image,
    but you receive the following error:
    FRM-47100: Cannot read image file <file name>
    You checked the following:
    o You are able to open the image file from Netscape or Internet Explorer and
    see your image correctly.
    o You are also sure that the file exists under the location mentioned in the
    first parameter to READ_IMAGE_FILE built-in.
    o You tried other JPG files that are located in the demo directory of the
    Developer home and you can see the image loaded in the image item.
    Solution Description
    There are many JPEG formats. The only JPEG format supported in Forms is the
    JPEG File Interchange Format (JFIF) which is the baseline sequential DCT JPEG.
    Progressive JPEG (as well as Lossless JPEG and Hierarchical JPEG),
    are not currently supported.
    Possibly your image file is stored using one of the non-supported formats.
    As a workaround, you can convert progressive JPEG format to and from baseline
    JPEG. There is a free set of programs provided by the Independent JPEG Group
    that allows this.
    The Independent JPEG Group home page is: http://www.ijg.org/
    Francois

  • How can I add image files to a executable jar file ?

    Could you tell me how can I add image files to executable jar file ?
    package structure:
    ../com/Main.class
    ../images/..

    Please don't cross post, and read this
    http://forum.java.sun.com/thread.jsp?forum=31&thread=271751
    I've answered the question in the New To Java thread.

  • IIOException: Can't read input file!

    Hi all,
    I have a incomprehensible problem. I have a java application wich manipulate images. This application works fine with a desktop environment but when I try to migrate it on production server (without X), a exception is catch...
    javax.imageio.IIOException: Can't read input file!
            at javax.imageio.ImageIO.read(ImageIO.java:1279)
            at FaceplateBuilder.fillImageByClients(FaceplateBuilder.java:95)
            at FaceplateBuilder.createPack(FaceplateBuilder.java:68)
            at FaceplateBuilder.run(FaceplateBuilder.java:39) This is the following code...
    File tmp = new File("/tmp/test.jpg");
    BufferedImage in = ImageIO.read(tmp);The file /tmp/test.jpg exist.
    Here are all tested solutions without success :
    *I've tried to upgrade the java version (1.5.0_14 to 1.6.0_06). 1.6.0_06 is the desktop environment configuration.
    * I read this page: [Using Headless Mode in the Java SE Platform|http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/] and I try to launch java with java.awt.headless=true variable.
    * I have install the [X11 dev library|http://javatechniques.com/public/java/docs/hosting/headless-java-x11-libraries.html]. (apt-get install libice-dev libsm-dev libx11-dev libxp-dev libxt-dev libxtst-dev)
    * I have changed the ImageIO code by following :
    Image tmp = loadImageFile("/tmp/test.jpg");
    BufferedImage in = toBufferedImage(tmp);
    public static BufferedImage toBufferedImage(Image image) {
              if (image instanceof BufferedImage) {
                   return ((BufferedImage) image);
              } else {
                   BufferedImage bufferedImage = new BufferedImage(image
                             .getWidth(null), image.getHeight(null),
                             BufferedImage.TYPE_INT_RGB);
                   Graphics g = bufferedImage.createGraphics();
                   g.drawImage(image, 0, 0, Color.WHITE, null);
                   g.dispose();
                   return (bufferedImage);
         public static Image loadImageFile(String imgFile) {
              Image img = Toolkit.getDefaultToolkit().getImage(imgFile);
              MediaTracker mediaTracker = new MediaTracker(new Container());
              mediaTracker.addImage(img, 0);
              try {
                   mediaTracker.waitForID(0);
              } catch (InterruptedException e) {
                   e.printStackTrace();
                   System.out.println(e.getMessage());
              return (img);
         }This code catches a new error...
    java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
            at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
            at java.awt.image.BufferedImage.<init>(BufferedImage.java:314)
            at FaceplateBuilder.toBufferedImage(FaceplateBuilder.java:122)
            at FaceplateBuilder.fillImageByClients(FaceplateBuilder.java:95)
            at FaceplateBuilder.createPack(FaceplateBuilder.java:73)
            at FaceplateBuilder.run(FaceplateBuilder.java:44)I think it's the same problem... The Image can't be loaded and I don't know why ! This problem make me crazy so I tried to post here.
    Thanks in advance

    # la /tmp/test.jpg
    -rw-r--r-- 1 root root 148K 2008-07-15 13:19 /tmp/test.jpg
    # ps aux | grep java
    root     19147  0.0  1.8 269716 23848 pts/1    Ssl+ 19:09   0:00 java FaceplateManager     Everything seems good :)

  • I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem-.thanks

    I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem….thanks

    If you are having the same problem, i.e. a disk permission problem, open your favorite search engine and search on, "change disk permissions", and I think you'll find plenty of information on how to fix the problem. This is a Lightroom forum. Your problem is with your operating system. There is no sense in rewriting instructions that are already available if you do a simple search.

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How can I read a file with ASCII Special Character into a SQL table using SSIS 2008?

    I've tried everything to read this file and am getting no where.   Help how can I read this file and load a SQL table?
    RS - AscII - 30  (Record Separator)
    GS - AscII - 29 (Group Separator)
    Thank you for your assistance - Covi
    Mark Covian

    We can use script component as source/transformation to read the text file and assign the contains to a string. Split the string by chr(30)  i.e RS and finally stored into an array or write to the output buffer of the script component.
    For example on how to use script component refer this link
    http://social.technet.microsoft.com/Forums/en-US/6ff2007d-d246-4107-b77c-624781baab38/how-to-use-substring-in-derived-column-in-ssis?forum=sqlintegrationservices
    Regards, RSingh

  • Cannot read image file in oracle 10g forms, getting error frm-47100

    I'm unable to read the image from the file location. But If I do re-save via MS-Paint the same image then I'm able to load successfully. I want to load image directly instead of re-save.  Error getting like "frm-47100 Cannot read image file".
    Need your co-operation to solve this issue.
    Thanks in advance!
    declare
      tiff_image_dir varchar2(80):=('D:\IMAGE\');
      photo_filename varchar2(80);
    begin
      photo_filename:=tiff_image_dir||:IMAGE_NO||'.JPG';
      if :image_no is null then
      :Image_no :=:UID_NO;
      end if;
      read_image_file(photo_filename,'JPG','image');
      WRITE_IMAGE_FILE('output.tif','TIFF','g_image_info.image',maximize_compression,original_depth)
    end;

    Hi Sindhu,
    By default any operating system file extension starts after the dot. So in this case when it says 2 dots it will think there is something wrong.
    RajeshALex

  • Hi there, I need to be able to read raw files from an Olympus Stylus 1 via CS5 and Lightroom 4.  I have downloaded Raw file plug-in v 6.7.1 but still can't read the files.

    Hi there, I need to be able to read raw files from an Olympus Stylus 1 via CS5 and Lightroom 4.  I have downloaded Raw file plug-in v 6.7.1 but still can't read the files?

    Read this table http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    The Olympus Stylus 1 was first supported in Camera Raw 8.3 which is only compatible with CS6 and CC.
    It is not compatible with CS5 or older and never will be.
    If you do not want to upgrade to CS6 or CC then you can dwonload the free Adobe DNG converter, convert all Stylus 1 Raw files to DNGs then edit the DNGs in CS5.
    Camera raw, DNG | Adobe Photoshop CC

  • Read-image-file show jpeg photo cause error

    I use read-image-file to show a jpeg photo (edited by ACDSEE) cause frm-47100. I know that Oracle may not support the Jpeg format of ACDSee. But, anyone know how to solve this problem. (I have to keep using ACDSee)

    If you remove the metadata from a JPEG it should usually do the trick. I don't know how to do that in ACDSee, though.

  • How can I read text files from LAN if I only know the hostname?

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    <p>1. How can I read text files from LAN if I only know the hostname, or IP address?
    <p>2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.
    (ex. how can I read the 120th line?)
    <p>Please help!
    <p>sorry for the bad english

    I'm new in Java Developing, and dont know the written classes yet. I need help, how to do the following steps?
    1. How can I read text files from LAN if I only know the hostname, or IP address?You need to know the URL of the file. You need to know the hostname, port, protocl and relative path.
    The hostname is server, not file.
    2. How to read lines from text files without read all lines from the beginning of file, just seek to a position.Use the seek() to get to a random byte.
    (ex. how can I read the 120th line?)The only way to find the 120th line is to read the first 120 lines. You can use other file formats to find the 120th line without reading the whole file but to need to be able to detremine where the 120th line is

  • I can't read a file with the ext PDF the sender informed me that the file was reset to PDF.

    I can't read a file with the .ext PDF the sender informed me that the file was reset to PDF. But when I tried to open it the caption box informed me"the file is not in PDF format. I suspect the sender simply changed the file .ext which is why I can't open it! What can I do about it! I am working on an iPad.
    Thanks
    Mr Jim Lapthorn

    If the document is not, in fact, a PDF, then you will need to get your sender to provide a PDF.
    Can you open this document in any other application?

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

Maybe you are looking for

  • Send concert from movie to video in itunes

    I have some concerts in my apple tv and i would like to see in my music videos not in movies, some can help me? in my itunes librery my concerts are in movies seccion and i would send to music seccion, but i can't.

  • Error in displaying two pivot tables side by side

    I am creating two pivot tables. They work fine when one after the other. BI Publisher gives an error if I place them side by side. One more issue. If i use this "for-eachCOLUMN0end" I get the following: Balances with Central Bank Cash and Cash-equiva

  • UC320W - Call restrictions for internal calls

    Related to my previous post (19 Oct one way audio). Do i need to add the internal dialling key code (eg 2xx) to the call restrictions? I don't see it in any of the full, expanded or basic privilege levels. If so, how do i add this? I am using firmwar

  • Tomahawk tree2 not rendered properly in mobile browser

    Hi, I was trying to use tomahawk tree2 component. It was able to render properly on the desktop browser. I tried to open the same application on the PDA IE browser. There is a gap between the nodes. It was not looking good. How can i apply my own sty

  • Is HP OfficeJet X585MFP able to be supported on HP DSS 4.25.42?

    Hello Guys; Can HP OfficeJet X585MFP is supported on HP DSS 4.25.42 version? As some of the features are not able to sit correctly once configured on the said version. Appreciate your help. Thanks.