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

Similar Messages

  • 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

  • I am facing a Problem with reading images from database

    Hi everybody..
    any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code... 
                    string connect = "datasource = localhost; port = 3306; username = root; password = ;"; 
                    MySqlConnection conn = new MySqlConnection(connect); // creating connecting string
                    MySqlCommand sda = new MySqlCommand(@"select * from management.add_products ", conn); //creating query
                    MySqlDataReader reader; 
                    try
                        conn.Open(); // Opening Connection
                        reader = sda.ExecuteReader(); // Executing my Query..
                        while (reader.Read())
                            byte[] imgg = (byte[])(reader["Picture"]);
                            if (imgg == null)
                                pc1.Image = null;
                            else
                                MemoryStream mstream = new MemoryStream(imgg);
                                pc1.Image = System.Drawing.Image.FromStream(mstream);
    It says Parameter not Valid... i am reading all the images from database

    I agree with Viorel. You are getting the error because the format of the data is incorrect probably because the data was modify. It may not be the reading of the database the is incorrect, but the application that wrote the data into the database. You need
    to compare the imgg array data with the data before it was written to the database to see if the data matches.  I usually start by comparing the number of bytes which is easier to check then compare the actual to isolate which function is changing the
    byte count.
    An image is binary data.  The standard VS methods for reading and writing data (usually stream classes) default to ASCII encoding which will corrupt binary data.  The solution usually is to use UTF8 encoding instead of the default ascii encoding. 
    Ascii encoding with stream often aligns the data and adds extra null bytes to the end of the data which can produce these type errors.
    jdweng

  • Problems with my Acrobat IX reading images

    I have just started having problems with my Acrobat IX reading images.  I have now noticed that when I open up a PDF, the images are now blacked out with a black box. These are all documents that I have been able to read just fine in the past.  I have done some research online and have found others who are having the same problem but I cannot find a solution.  Some solutions I have found are to make sure on the printer settings that it reads large images which I have done and that it prints in color which I have also done.  When I print out the document, it prints just fine, I just cannot read it on the screen.
    Please any help would be greatly appreciated.

    Thank you so much for taking the time to respond but nope. unfortunately I have tried that a few times, both clicking and unclicking the view large images with no luck. Since I have Acrobat IX Adobe wont help me.  Any other suggestions? Should I just uninstall and reinstall this program?? When I Google this problem it appears that a lot of people are having this problem.

  • 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

  • Image problem in java

    I am experiancing a problem in reading an Image datatype from SQLServer7.0 using java. The Image is created using MSAccess application and I am trying to read the same Image using Java. I am using InputStream to read Image and writing bytes to another file(a.gif). When I opened the image it says invalid format. Below is my code. Help me....
              String s = "select * from Image where IMSCANUSERID='A'";
              java.sql.ResultSet rs = conn.createStatement().executeQuery(s);
              rs.next();
              java.io.InputStream is = rs.getBinaryStream("IMIMAGE");
              java.io.FileOutputStream out = new java.io.FileOutputStream("c:/test1.tif");
              int i;
              while((i=is.read()) != -1)
                   out.write((byte)i);     

    I am experiancing a problem in reading an Image
    datatype from SQLServer7.0 using java. The Image is
    created using MSAccess application and I am trying to
    read the same Image using Java. I am using InputStream
    to read Image and writing bytes to another
    file(a.gif). When I opened the image it says invalid
    format. Below is my code. Help me....
    what format image is it exactly. you say you are saving it as a gif but you seems to be saving at as a tif. these are not the same.
    String s = "select * from Image where
    e IMSCANUSERID='A'";
    java.sql.ResultSet rs =
    = conn.createStatement().executeQuery(s);
              rs.next();
    java.io.InputStream is =
    = rs.getBinaryStream("IMIMAGE");
    java.io.FileOutputStream out = new
    w java.io.FileOutputStream("c:/test1.tif");
              int i;
              while((i=is.read()) != -1)
                   out.write((byte)i);     
              }first find out what format the image is exactly.
    then save it as that type.

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

  • Image problem in V4.0

    Hi,
    Previously I had lots of problems with showing a BLOB image from a table
    in a report using the apex_util.get_blob_file_src function.
    Varad put me right on several ocassions: see the thread at
    Confusion with get_blob_file_src
    Eventually everything went well, and I got my images of a specific size on the screen.
    In the last month or two, the host database that I rent went up from version ten to version
    eleven, and the apex version changed too from 3.2.1 to some version of 4.
    I've only now discovered that the images don't display any more. I've re-read the thread
    mentioned above but can see no deviation from Varad's sterling advice. It still doesn't work,
    so my current guess is that something has changed when Apex went to its new version.
    Can anyone point me in the right direction regarding Image problems in version 4 ?
    I guess I'm not the first to experience such issues, and a checklist of things to try would
    be most welcome.
    I've done a View->Source on the page that doesn't work, and the issue with a missing value
    for the "d=" parameter on the apex_util.get_blob_file seems to have recurred:
    src="apex_util.get_blob_file?a=130&s=1718106956127950&p=13&d=&i=25615931827270369&p_pk1=5&p_pk2=&p_ck=947078FC54BB5126E7E0D19F8A24C416"
    Suggestions welcomed please; thankyou in advance.
    Mungo

    Hi Folks,
    I've found a solution to my "image" problem that caused this thread, hence the decent thing is to
    post it here.
    I read various other threads and stumbled across:
    PDF viewing with  apex_util.get_blob_file_src not working with 4.0
    PDF viewing with  apex_util.get_blob_file_src not working with 4.0 &# 4404695
    That thread mentioned the requirement for an "Automated Row FETCH" process as well as having
    an "Automated Row PROCESSING" process too.
    I had the latter, but didn't have the former, so throwing caution to the wind I tried adding a dummy
    Automated Row Fetch process and the damn thing worked!
    Haven't got a clue why on earth either of these are requirements on a page that is selecting data
    from the database - I don't understand where such processes are called in the big scheme of things.
    That's just me baiting some kind soul to spell out the fundamentals for this idiot... please?
    Happy to be corrected on any points.
    Regards until the next crisis...
    Mungo :-)
    P.S. How come there is no reasonable way to get the URL of a single post in a thread - I'd like to give
    reference to the single post that helped me, but all I seem to be able to get is the whole blooming thread.
    Suggestions?
    Edited by: MungoHenning on Sep 15, 2010 1:39 PM

  • Photosmart D110 All-In-One Printer - Shadow image problem

    I have been having a problem with this printer, ever since we purchased it about 2 months ago, where it will print a shadow image of text or pictures on some documets but not others. It is specific and consistent in that it will print this shadow image on some documents every time and on other documents none of the time. I have a PC and a Mac and it doesn't matter which computer I use, only which document. Sometimes it is only a part of a document, like the computer generated part of an email where it says " this person at this time on this date wrote.." but the other text will be fine. It happens on some coloring pages but not others. I spent  2 hours on the support line yesterday; it's still doing it. She had me unplug it, take off the printer software and reinstall it, update software (on my Mac)  and it did not fix it.  Any ideas on what may be causing this & how to fix it? I like the printer but am about to return it because of this problem.  The printer we had been using was an HP C4280 and did not have this problem. I'd like to keep the printer if I can fix this problem.

    I'm having the same shadow imaging problem on my Deskjet F4580, so if anyone knows how to correct it please post.. I've reinstalled/updated the driver, disabled advanced features, and deslected "Enable HP Real Life Technoliges".

  • Persistent Image problem

    Okay, I just had the screen on this iMac replaced because of this problem with a dark line at the top of the screen. The screen has been replaced, and the dark line isn't there anymore. However, I am now having persistent image problems. This is noticeable when I use the Aurora desktop. If I have a window open (e.g. Safari) for a long enough time, and then I X out of it, I will see a shadow/ghost of it. It's most noticeable with a dark background. However, I DID change some of the settings in "Appearance," so I wonder if that might have done it. But I can't see a way to change everything back to default. Do you know if there's a way?

    Hi again - a couple of ideas:
    If you haven't printed the images or a while, it could be that you prepared them under a previous version of the Aperture raw and they've since been reprocessed, resulting in a slightly different look
    I had an occasion about 12 months ago when an update to the Epson printer drivers caused me to have to go back and change my print setups in Aperture, due to new colour interpretations.  Don't know why, but it happened... maybe your settings have changed since last printing?
    Could be that you did or didn't have the appropriate soft-proofing turned on - are you using this feature?

  • Strange short-term persistent image problem

    Hello,
    I'm well aware of the typical image persistence problem, where an image can stay "burned in" after the monitor displays the same thing for hours on end.
    I have a much shorter-term persistent image problem. Let's say I open a web-page, leave it open for 10 seconds and then open a new window in Safari (thus getting a pure white page). Well when that happens, the previous web-page is still shadowed on the new white.
    30 seconds later it has faded, but then the same thing will happen again with anything else that's displayed.
    Any ideas?
    thanks
    Loa

    Huh, now I'm really stumped. The cyan border is also present in FCE once I render, but it doesn't seem to happen for each instance when the paper image is used. Did you import the paper image as a .gif or something else? And did you add any filters to it? Did you also add any effects? The only I'm using with the paper image is the page peel and I have not tried any other effects to see if the cyan effect comes up.
    I've put a screen capture of my FCE project showing the cyan border present in the canvas as my movie is playing. Its on my idisk as FCE movie problem.tiff
    http://idisk.mac.com/gindacu-Public?view=web
    Thanks again for the help.

  • Read Image XMP Metadata

    Hi All,
    Hope I'm not spamming  this thread to your mailbox as I felt this question asked in unrelated  forum.
    Question: Can we read image meta data from Flex ?
    I tried it with xmp core library and passed a jpeg file to xmpMeta object :
    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;
                                    trace(value); // returns null, not sure why
    Can any one help me to get the image metadata.
    Thanks in advance
    Mac

    I've got some content related to my issue from net but still it won't solve my problem
    private function init():void {
                                            var ldr:Loader = new Loader();
                                            ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);
      var s:String = "my/jpgPath/myjpgName.jpg";
                                            ldr.load(new URLRequest(s));
                                  private function imgLoaded(e:Event):void{
                                            var info:LoaderInfo = e.target as LoaderInfo;
                                            var xmpXML:XML = getXMP(info.bytes);
      //trace(xmpXML);
                                            var meta:XMPMeta = new XMPMeta(xmpXML);
      //var packet:XML = meta.serializeToXML();
                                            var photoshop:Namespace = XMPConst.photoshop
                                            trace(meta.photoshop::AuthorsPosition);
                                  private function trim(s:String):String{
      return s.replace( /^([\s|\t|\n]+)?(.*)([\s|\t|\n]+)?$/gm, "$2" );
                                  private function getXMP(ba:ByteArray):XML{
                                            var LP:ByteArray = new ByteArray();
                                            var PACKET:ByteArray = new ByteArray();
                                            var l:int;
                                            ba.readBytes(LP, 2, 2);
                                            http://www.adobe.com/devnet/xmp.html
                                            read part 3: Storage in Files.
                                            that will explain the -2 -29 and other things you see here.
                                            l = LP.readInt() - 2 -29;
                                            ba.readBytes(PACKET, 33, l);
                                            var p:String = trim(encode(PACKET) as String);
      var i:int = p.search('<x:xmpmeta xmlns:x="adobe:ns:meta/"');
      /* Delete all in front of the XMP XML */
                                            p = p.substr(i);
                                            For some reason this left some rubbish in front, so I'll hardcode it out for now
                                            TODO clean up
                                            var ar:Array = p.split('<');
                                            var s:String = "";
                                            var q:int;
                                            var j:int = ar.length;
                                            for(q=1;q<j;q++){
                                                      s += '<'+ar[q];
                                            i = s.search('</x:xmpmeta>');
                                            i += ('</x:xmpmeta>').length;
                                            s = s.slice(0,i);
      /* Delete all behind the XMP XML */
                                            return XML(s);
                                  private static function encode(ba:ByteArray):String {
      var origPos:uint = ba.position;
      var result:Array = new Array();
       for (ba.position = 0; ba.position < ba.length - 1; )
       result.push(ba.readShort());
      if (ba.position != ba.length)
       result.push(ba.readByte() << 8);
      ba.position = origPos;
                                                      return String.fromCharCode.apply(null, result);
    It seems there is a bug in XMPMeta class where it always throws an exception "The XMPMeta object cannot have qualifiers", Even created with default (no param).
    Does anyone have any clue on this? please help
    Thanks
    Mac

  • How Read image from slingRequest

    Hi,
    We have a user input form which contains input file (image) selection. When user submits the form, we want to read the file selected by user and store it as base 64 encoded data. We have following code to do the same. This code gets executed when the form is submitted.
    //Read image data from slingRequest
    String userImage1 = slingRequest.getParameter("userImage1");
    //Apply base 64 encoding on the data received in slingRequest
    String encodedUserFile = "";
    byte[] userFileBytes = userImage1.getBytes();
    encodedUserFile = Base64.encodeBase64String(userFileBytes);
    These statements are not throwing any error. But, when I try to apply base 64 decoding on the contents available in 'encodedUserFile', its' not the image user uploaded. There seems to be some problem, which I am not able to figure out. Can someone please help me with this?

    Hi,
    You need to use the Sling RequestParameter interface to get an uploaded file.
    See:
    http://sling.apache.org/site/request-parameters.html
    http://sling.apache.org/apidocs/sling6/org/apache/sling/api/request/RequestParameter.html
    Regards,
    Justin

Maybe you are looking for

  • JMS receiver adapter file content conversion issue

    I'm able to successfully convert complex structure using XML2Plain using StructXML2Plain module keys. However, I'm having trouble with a simple structure. All I see is a LF in the queue. For the simple structure, I create the message via ABAP mapping

  • Copying G4 Harddrive to Macbook Pro

    How do you do it? I was told to start macbook holding down the "T" and then instructions should come up. I'm using a 400 to 800 firewire. Any ideas?? Many thanks in advance. Hannah

  • Using Labview VI as a Matlab function.

    Hi, I'm trying to use Labview VIs in a Matlab script. The VI should act as a function with input and output arguments. Tried to compile the VI to a .DLL file, however was unable to read the file using Matlab. Any advise?

  • Problem while creating generic function module

    Hello experts, The master data 0VENDOR_ATTR is extracted using function module MDEX_VENDOR_MD. I have to create a generic data source based on the function module MDEX_VENDOR_MD. My code does not identify the data source name while debugging. Below i

  • Siebel Database Upgrade Wizard fails for production upgrade

    Hi, We are doing a dry-run for production upgrade for our customer form Siebel 7.8.2 to 8.1. 1.4 Platform info: Siebel Gateway, Siebel Server, Database Server: AIX 6.1 64 bit OS Database: IBM DB2 V9.7 When running the Upgrade Database (upgrep + upgph