Webutil - Read Image?

1.While reading image into image item of my canvas
if the image size larger then my image item size
i want it to be scroll both horizontally and vertically.
Is that possible.?
2.I want to give zoom in/out functionality to that image item.
How?
3.Also i want to restrict the user from select file type
other than gif,tif,jpg,jpeg,bmp etc...???

Dear Faheem;
For ur questions No. 1 & 2 if you open the property palette for the image item you search for the categeory[b] faunctional there is a property called[b] Show palette assign it to YES then if you run ur form you will get a control palette for zooming or moving the image.
For Quest. 3 I think you have to use it by coding like this code :
photo_filename := tiff_image_dir||LOWER(:emp.userid)||'.tif';
** For example 'photo_filename' might look like:
** /usr/staff/photos/jgetty.tif
** Now, read in the appropriate image.
READ_IMAGE_FILE(photo_filename, 'TIFF', 'emp.emp_photo');
Hope it help
Regards
Reda El Mitwally

Similar Messages

  • Webutil Read Image Problem

    Hi,
    I am reading image from client system using the below code
    CLIENT_IMAGE.READ_IMAGE_FILE(v_rd_file_name, 'JPG', 'CTRL_BLK.ADD_IMAGE');
    But this image is not displaying in the image item, this is happening for some particular images only. While writing this image into image server image size also increasing.
    We are trying one image that dimension is 2900 X 4700 this is not uploading to image item.
    but i am able to upload less than 2000 X 2000 dimension to the same image item
    below is Image item property
    Image Format : TIFF
    Image Depth : Original
    Display Quality : Medium or High
    Sizing Style : Adjust
    Any idea on thie problem...
    Regards,
    Suresh.V

    hi
    What about Java Bean????
    try the following link i hope it will help u.
    http://forms.pjc.bean.over-blog.com/article-7109292.html
    and also u may use Irfan viewer to resize the image.Did u try to use Crop?
    sasrah

  • 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

  • Write/read image to avi file, VI works incorrectl​y from the second run

    Hi everybody, in my labview I write image from IMAQ USB to avi file and read image from avi file, the VI runs correctly at the first run then after that it goes wrong, I can write/read only one frame and it terminates automatically. Does anybody know why and how to solve this?
    Thanks a lot,
    Hannah

    Without seeing your code I can't comment specifically, but if it runs correctly the first time and then stops be looking for something that is not getting reinitialized correctly. Also what exactly do you have to do to get it to work again? Close and reopen the VI? Restart LV? Restart the computer?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • 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

  • Read image direct from file server

    hello, need to help me somebody.
    A like to create form , what read image direct from file server, without store in database.
    Please help me.

    Hi you may go through the below post to find what could be a better way to do that.
    http://forum.java.sun.com/thread.jspa?threadID=5163829
    REGARDS,
    RaHuL

  • Read image from scanner

    i want to interact with hardware(scanner) in java
    i want to read image and store in database
    for this
    1.) i want to read image from scanner
    2.) how do i start scanner process
    from where i gonna start
    plz help me to interact with hardware

    Hi, I have faced a similar problem and solved it using the morena api http://www.gnome.eu/Twain/examples/studio.html
    Problem is the scanner works fine with TWAIN, but with SANE, it is totally failing. There is a permanent connection refusal form the scanner ip whenever
    i try to use a network scanner. I am not sure how to solve it. If anyone has solved this please revert back.
    Regards,
    Anthony

  • Read image from excelsheet using labview

    i need to know how to read image from excel sheet using Labview...m not able to get the appropriate property to display the image stored in excel sheet.
    thank you

    you need to ask Microsoft to find out the property name/location under Microsoft Excel. 

  • Read image metadata

    Hi All,
    Question: Can we read image meta data from CS extension code by any way ?
    I tried it with xmp core library and passed a jpeg file to xmpMeta object which expect a String, a XML or Byte Array as argument:
    private function getImageMetadata(jpeg:File):void
                                  var meta:XMPMeta = new XMPMeta(jpeg);
                                  var packet:XML = meta.serializeToXML();
                                  var photoshop:Namespace = XMPConst.photoshop;
                                  var value:String = meta.photoshop::AuthorsPosition;
    If I was able to convert jpeg file to Byte Array, I my guess to be work but I'm not able to find it workable.
    Can someone help me to complete the task?
    Thanks
    Mac

    Hi All,
    Question: Can we read image meta data from CS extension code by any way ?
    I tried it with xmp core library and passed a jpeg file to xmpMeta object which expect a String, a XML or Byte Array as argument:
    private function getImageMetadata(jpeg:File):void
                                  var meta:XMPMeta = new XMPMeta(jpeg);
                                  var packet:XML = meta.serializeToXML();
                                  var photoshop:Namespace = XMPConst.photoshop;
                                  var value:String = meta.photoshop::AuthorsPosition;
    If I was able to convert jpeg file to Byte Array, I my guess to be work but I'm not able to find it workable.
    Can someone help me to complete the task?
    Thanks
    Mac

  • Read image raw data without creating image

    Is there any way to read image raw data into an array from a file but not creating an image ? I looked through ImageIO. It seems that every time an image reader is called , a bufferediamge is created or reused ?
    Tanks fro any advice.

    Is there any way to read image raw data into an array from a file but not creating an image ? I looked through ImageIO. It seems that every time an image reader is called , a bufferediamge is created or reused ?
    Tanks fro any advice.

  • 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

  • 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.

  • Webutil, read registry with defaut entry?

    webutil, read registry not working well?
    Hi,
    I cannot read the default value for an entry in the registry.
    if I read another value, it works fine.
    On metalink, a note was giving an exemple that was doing that... but it doesn't work when I try it....
    Doc ID:      Note:121909.1
    Subject:      How to Open a File with its Associated Program from Forms ?
    Here is my code, the first block works, but the others don't work. Could somebody explain me how do I do to access the default value?
    PROCEDURE P_TEST IS
    lv_valeur_retour1 VARCHAR2(255);
    BEGIN
    BEGIN
    -- this works fine
    lv_valeur_retour1 :=
    CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY
    ('HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows',
    'Device',
    TRUE);
    message(lv_valeur_retour1);
    pause;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :F_RETOUR := '10';
    END;
    pause;
    BEGIN
    -- this doesn't work
    lv_valeur_retour1 :=
    CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY
    ('HKEY_CLASSES_ROOT\' || '.doc',
    NULL,
    TRUE);
    message(lv_valeur_retour1);
    pause;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :F_RETOUR := '11';
    END;
    pause;
    BEGIN
    -- this doesn't work
    lv_valeur_retour1 :=
    CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY
    ('HKEY_CLASSES_ROOT\' || '.doc',
    'Default',
    TRUE);
    message(lv_valeur_retour1);
    pause;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :F_RETOUR := '12';
    END;
    pause;
    BEGIN
    -- this doesn't work
    lv_valeur_retour1 :=
    CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY
    ('HKEY_CLASSES_ROOT\' || '.doc',
    '(Default)',
    TRUE);
    message(lv_valeur_retour1);
    pause;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :F_RETOUR := '15';
    END;
    pause;
    BEGIN
    -- this doesn't work
    lv_valeur_retour1 :=
    CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY
    ('HKEY_CLASSES_ROOT\' || '.doc',
    '0',
    TRUE);
    message(lv_valeur_retour1);
    pause;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :F_RETOUR := '14';
    END;
    pause;
    BEGIN
    -- this doesn't work
    lv_valeur_retour1 :=
    CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY
    ('HKEY_CLASSES_ROOT',
    '.doc',
    TRUE);
    message(lv_valeur_retour1);
    pause;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    :F_RETOUR := '13';
    END;
    END;

    I had to customize the webutil.pll to get this to work. I modified the WEBUTIL_C_API.ADD_PARAMETER_WU function so it did not always consume null string parameters. The change follows.
    FUNCTION ADD_PARAMETER_WU (paramList IN ParameterList, parameterType IN PLS_INTEGER,
    inOut IN PLS_INTEGER, str IN VARCHAR2, strmaxlen IN PLS_INTEGER) RETURN ParameterHandle IS
    paramHnd ParameterHandle;
    BEGIN
         IF (str = 'mjpNULLmjp') THEN
                        WebUtil_Core.SetProperty(WebUtil_Core.WUL_PACKAGE,'WUL_PARAM_PROPERTIES', 'B|' -- indicate Bind
              || TO_CHAR(paramList.hnd) || '|'
              || TO_CHAR(parameterType) || '|'
              || TO_CHAR(inOut) || '|'
              || TO_CHAR(strmaxlen) || '|'
              || '',false);
         ELSE
              IF str IS NULL THEN
              WebUtil_Core.SetProperty(WebUtil_Core.WUL_PACKAGE,'WUL_PARAM_PROPERTIES', 'B|' -- indicate Bind
              || TO_CHAR(paramList.hnd) || '|'
              || TO_CHAR(parameterType) || '|'
              || TO_CHAR(inOut) || '|'
              || TO_CHAR(strmaxlen) || '|'
              || '(null)',false);
         ELSE          
              WebUtil_Core.SetProperty(WebUtil_Core.WUL_PACKAGE,'WUL_PARAM_PROPERTIES', 'B|' -- indicate Bind
              || TO_CHAR(paramList.hnd) || '|'
              || TO_CHAR(parameterType) || '|'
              || TO_CHAR(inOut) || '|'
              || TO_CHAR(strmaxlen) || '|'
              || str,false);
         END IF;
         END IF;
         paramHnd.hnd := TO_NUMBER(WebUtil_Core.GetProperty(WebUtil_Core.WUL_PACKAGE,'WUL_ADD_PARAMETER'));
         RETURN paramHnd;
    EXCEPTION
    when WebUtil_Core.BEAN_NOT_REGISTERED then
    WebUtil_Core.Error(15,WebUtil_Core.getImplClass(WebUtil_Core.WUF_PACKAGE));               
    RAISE FORM_TRIGGER_FAILURE;
    when WebUtil_Core.PROPERTY_ERROR then
    RAISE FORM_TRIGGER_FAILURE;
    END ADD_PARAMETER_WU;
    Here is an example call to get the default registry entry:
    reg_val := CLIENT_WIN_API_ENVIRONMENT.READ_REGISTRY('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE','mjpNULLmjp',FALSE);

  • How to read images in jsp from an absolute path not from the web app?

    hello there
    i want to read images from an absolute path on the hard disk not from the images folder in the web application
    how to do that?
    thank you

    Ok. You don't give the servlet the full path of an image. You just give an image id in query string. E.g.
    http://my.server.com/imageServlet?id=12Id can be whatever: number as well as name.
    Then, in your servlet You get this id, then read an image file that is mapped for this id and sends it to browser via servlet output stream.
    On the jsp page you write sth similar to:
    <img src="http://my.server.com/imageServlet?id=12"/>and your image will be displayed using your servlet. The image file path is needed only in the servlet code to open the stream to file (image file can be stored wherever you want in file system), read it and write to output stream. Read the tutorial accessible via link I provided in the previous post.

  • Reading Images from JAR Files

    Hi,
    I am having a very difficult time being able to read images from a JAR file via my Applet. I have tried everything that I know about with no luck. The only way I can get this to work is to store the images individually in a sub directory of public_html on the websever. This works, but I would like the images to come down in a JAR file for performance reasons.
    I am using Internet Explorer 5.5 for my browser. I checked the options and everything seems to be in order, but......
    I would appreciate any feedback that anyone might have on this topic..........
    Thank You....

    once in a jar file i inserted a image
    the jar file on clicking starts an frame.
    so the image was for getting that image at the icon place at top and at minimized window
    i could not get that image from jar file by new imageicon().getimage();
    but i get the image if it is in the directory in which jar file is.....
    can one explain the reason

Maybe you are looking for

  • How will i set a song from my itunes as my ring tone in I phone 4s

    Hi does any one know how to set a song from my Itunes play list as ring tone on Iphone 4s

  • Delete Image File & Linked Image (CS3)

    Is there a way to do the following. I go into a document and delte a thumbnail image which is a linked image. I would like to delete the linked image the same time as I delets the thumbnail from the page. What is the best way to do this? I am ussing

  • Setting up the hp6500A

    Why can't I add a printer, can't seem to select no matter how many times I have tried. I have signed on to eprintcenter.com but unable to add a printer to put the printer code. Very frustrating!

  • Cleaning dust from inside G5

    Hi I've just had a problem My G5 2.5Ghz dual just shut down no warning just went off there seemed to be a bit of a burning smell when it did I checked it would start up again after i left it a couple of hours to cool down it seems to be ok I had a lo

  • PP 2014 and AME not linking

    When I send my export to queue, AME opens but the export doesn't show up. I've had to export from PP to get anything out, which has been a huge time waster for me the last couple days. How do I fix it?