Read Image from client

I am trying to import the picture from the client, using WEBUTIL (v 1.0.2)
Procedure looks like:
DECLARE
FILE_NAME VARCHAR2(200);
File_Filter varchar2(30):='JPEG Files (*.jpg)|*.jpg|';
BEGIN
FILE_NAME:=CLIENT_GET_FILE_NAME(NULL,NULL,File_Filter,NULL,OPEN_FILE,TRUE);
CLIENT_IMAGE.READ_IMAGE_FILE(FILE_NAME, 'JFIF',
'<table>.<BLOB column>');
END;
"CLIENT_GET_FILE_NAME" works fine, but when it comes to "CLIENT_IMAGE.READ_IMAGE_FILE" I get message
Checking through the debugger I found that the error is generated in the
WEBUTIL.WEBUTIL_CORE.CHECKJAVA
at the line
classpath := JAVA_SYSTEM.getProperty('java.class.path');
I checked, and all CLASSPATH variables in registry contain the path to webutil.jar
I also tried with: "webutil_file_transfer.Client_To_DB_with_progress"
And it works fine to me, file is transferred to the BLOB field but then I can not display the image in the form. (Is there any advice on how to do this, any example code)
I have been using iDS9.
Is there anyone who could help. Thanks in advance
Sead

What is really odd to me is the fact that the value in "classpath" after the command
classpath := JAVA_SYSTEM.getProperty('java.class.path');
does not correspond to any variable in the registry.
I searched the registry and the value of the string does not exist in any variable in the registry. I do not know how did "JAVA_SYSTEM.getProperty('java.class.path')" produce the classpath string.

Similar Messages

  • Without using webutil how to read an image from client or own system

    Hi,
    I am trying to read image from my own system.
    (if I click on button (browse) then it should open an dialog box then i can select image from it. then I press another button(save) it should be store in the database.)
    So, i want read image without using webutil package how to do it.
    If i want read image from client system please tell me how to do it.
    I am getting with webutil package but there is any other chance to get the image.

    Please keep in mind that Forms 10g is a release not a version.  Also, since you are running on Windows 7 64 bit - you should be using Forms 10g Release 2 (version 10.1.2.0.2) and a patchset to upgrade this to version 10.1.2.3.0.
    Now, to answer your question - I happen to agree with MarkReichman, WebUtil would be my preferred method, but since you don't want to use WebUtil then the only other way would be to use a 3rd party Java Bean.  I prefer WebUtil because it is supported by Oracle and I can contact them with any issues.
    Craig...

  • Reading files from clients machine through a browser

    if i have to access or use some files say C:\hello\myimage.jpg from client machine's local drive, how it can be done using some technology in Java eg applets or some other way. please read the following situation to have a better undertsanding of the problem,
    consider the following situation:
    a web application is running on client PC, and on click of a button, i have to generate a report in some format and insert some images in that report which are on clients local drive and their path is known to me say C:\ myimage.jpg.
    if the mages were on the server(where web application is hosted), then its not a prob.
    if there any other technology in java to read files from clients PC through a browser other than java

    Sign the applet.
    http://forum.java.sun.com/thread.jspa?forumID=63&threadID=524815
    second and last post

  • Stream-in images from client to server,without running the transmit code

    Hello all,
    Im using JMF for my current project.Right now,I am trying to only recieve images from the client without the client transmitting it.That is I dont want the transmit code to run on the client.
    I should just be able to stream in the images from client to server, without running the transmit code on client.
    Can this be done?
    Thanks in advance

    suppigs wrote:
    Can I know more about this?Sure.
    <Side A>
    You'd just need to write an application that doesn't have a GUI (so, a console-based application) that listens on some pre-determined port for a message to start broadcasting. Maybe you'd send it the IP/PORT number to start broadcasting on. Once it receives that message, it'd start broadcasting the web cam to the IP/PORT number until it received a message to stop. Once it stops, it'll just go back to waiting for the next "start" signal.
    <Side B>
    On the other side, you'd write an application that sends the start messages, receives/displays the videos, and then sends the stop signal. This will have a GUI, and be your "control program" so to speak.
    Then, once of have both of those programs working...if you're using Linux, you're done. If you're using Windows, you'd need to modify the <Side A> program so that it can run as a Windows service.
    There are a lot of ways to do this, you can google it or look at the following link:
    [http://twit88.com/blog/2007/09/19/open-source-software-to-start-up-java-as-windows-serviceunix-daemon/]

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

  • 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

  • Read image from R3

    Hi everyone,
    How can I read images from R3?
    Regards
    Eduardo Campos

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

  • 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

  • Reading Images from DB2 content Manager

    Has anybody have read images from IBM db2 content manager using oracel forms.
    any links will be helpfu;
    or any links to how to make windows API calls in forms 5.0.

    OK, I found Greg's reply and that fixed it, once I played with it a bit.
    "Cory McGinnis" <[email protected]> wrote:
    >
    I am displaying an html page from a <cm:select> but the images do not
    display.
    I have set up the dmsbase directory as per the samplePortal, and loaded
    the content.
    The HTML displays, but with errors for the images.
    Here's the select from the portlet:
    <cm:select contentHome="<%=ContentHelper.DEF_CONTENT_MANAGER_HOME%>"
    query="type='page'"
    id="textDocs"/>
    <es:forEachInArray array="<%=textDocs%>" id="aTextDoc" type="com.bea.p13n.content.Content">
    <p><cm:printDoc id="aTextDoc" failOnError="true" /></p>
    </es:forEachInArray>

  • HTTP-500 Error Reading Data from Client!!

    I'm trying to create a page where by clients are able to contact us through the portal. So, it's a pretty basic form where I have a text box for the subject, and a text area for the message body.
    My problem is when the message body is over a certain size, I'm getting a "portlet cannot be contacted" on my screen. The Apache log comes up with the error:
    [error] mod_plsql: /pls/portal/!PORTAL.wwpob_page.show HTTP-500 Error Reading Data from Client!!
    I'm not using a windows OS, so the bug that has been talked about previously talked about shouldn't be the problem.
    Also, I am using a POST rather than a GET, so I don't think it has to do with the browser (and I have tested this on Firefox and IE 5.5 and IE 6).
    Would appreciate any advise.
    Thanks, Nicky

    Are you using SSL? Maybe, it has to do with it. I encountered a similar problem. It turned up that this read error occurred inside Apache and was caused by a nonstandard-SSL-request by Internet Explorer. te remedy was to add this to the Apache configuration:
    SetEnvIf     User-Agent     ".*MSIE.*"     \
    nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
    It tells Apache to switch to HTTP/1.0 and to never keep open socket connections with MSIE on SSL connections.
    Lycka till!

  • Read images from external jar file (Sun's Java L&F Graphics repository)

    Hi!
    I don't know how to read images from an external jar file. Sun has a Java Look and Feel graphics repository that contains a lot of good images that can be used on buttons and so on. This repository is delivered as a jar file, containing only images, and I want to read the image files from that jar file directly without including them inside my application jar file. The application and image jar files will be in the same directory.
    I have absolutely no clue how to solve this. Is it necessary to include the images inside my application jar file or is it possible to have them separate as I want.
    Would really appreciate some help!
    Best regards
    Lars

    Hi,
    There is two ways :
    1) Add your jarfile to the classpath.
    Use the class loader :
    URL url = ClassLoader.getSystemResource("your/package/image.gif");
    Image im = (new ImageIcon(url)).getImage();
    or
    Image im = Toolkit.getDefaultToolkit().getImage(url);2)If you don't want to add the jar to the classpath you can use this (under jdk 1.4):
    import java.util.*;
    import java.util.jar.*;
    import java.awt.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.*;
    public class ImageUtilities {
         public static Image getImage(String jarFileName, String fileName) {
              BufferedImage image = null;
              try {
                   JarFile jar = new JarFile(new File(jarFileName), false, JarFile.OPEN_READ);
                   JarEntry entry = jar.getJarEntry(fileName);
                   BufferedInputStream stream = new BufferedInputStream(jar.getInputStream(entry));
                   image = ImageIO.read(stream) ;
              catch (Exception ex) {
                   System.out.println(ex);
              return(image);
    }I hope this helps,
    Denis

  • Read images from a jar file?

    Hello, I'm converting a 6i app to 10g. This app does a ton of read_image_file() calls to
    change GIF images on the screen based on user actions. In 6i the images are all stored on the local hard drive. The images are not icons for buttons, but images that appear in different locations on the screen.
    For 10g, is it possible to leave the images in a jar file and effectively read the images from that? Otherwise, I suppose I'm looking at using webutil functionality to download the jar file and unjar it into an images directory for reading from the client?
    Any best-practice scenario for this sort of thing?
    Thanks for any info,
    Gary

    We are migrating from 6i to 10g too. And I try to not use webutil. All my pictures (icons gif files) are in a jar file.
    Just make attention of the size of your pictures. The jar file is loaded when you launch the application (the first time, and after, only if the jar file has changed).

  • Need to read image from scanner

    Hi,
    I wnat to load image from scanner directly into forms. Then save it into table.
    Shahin

    Here we are..
    This is my "bean" for scanning over twain driver or SANE (linux)..
    I have used morena twain drivers (JNI), apache httpclient library for java (i need it for http communication between forms and database) and Itex pdf library for java.
    The bean has three options..
    1. you can select the twain device and start to scan
    2. you can view scanned images
    3. you can generate PDF from scanned images and store it to local disk or database..
    For example how the form look like:
    !http://freeweb.siol.net/peterv6i/scan1.jpg!
    On the first form you can start a new scann or just delete the temporary files in the local folder (user temporary folder).
    After you press the "scann" button the twain dialog apear
    !http://freeweb.siol.net/peterv6i/scan2.jpg!
    The dialog of twain device will startup. Here you can set everythig you can (scann area, colors, dpi ...)
    !http://freeweb.siol.net/peterv6i/scan3.jpg!
    The scanned images are transfered on local disk (temp folder). Every scanned images got timestamp value as name of the image (on the picture this are located in the select list)
    !http://freeweb.siol.net/peterv6i/scan4.jpg!
    If you click on the item the scanned image will aper on the screen
    !http://freeweb.siol.net/peterv6i/scan5.jpg!
    The last screen is for saving / generate a pdf from the array of images or image.
    !http://freeweb.siol.net/peterv6i/scan6.jpg!

  • 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

  • Is there a way I can use Catalyst to create my custom flex components but make compatible with 3.5

    I am new to Catalyst and looking for a way to create components in Catalyst to be compatible with an existing application created in SDK 3.5. I am working on a project for a client to reskin an existing flex application done in SDK 3.5, but they are

  • Creating subtotal in a table view

    Hi All, Can I create a subtotal in a Table view based on particular column? Any help would be appreciated. Thanks in advance, RK

  • PO Confirmations

    Hi, I have enabled confirmations required in PO and again in change mode i have entered the confirmation category AB and the related entries.While i am going for MIGO against the PO its telling as PO has no items. What needs to be done for this. Rega

  • I want to use the method getRemotePort() in a jsp page.....................

    I have tried using it like this: <%@ page import="java.net.*"%> <%@ page import="java.util.*"%> <%@ page import = "javax.servlet.*"%> <% out.println("<br>Remote Port : " + request.getRemotePort()); %> I get the following error: org.apache.jasper.Jasp

  • Ora-06502 while calling oracle function

    I am using 9.2.0.4.0 database. I have vb.net application that uses oracle provider for .net to connect to database. I am calling Oracle function which returns varchar2 value back. when i execute cmd2.ExecuteNonQuery, I get ora-06502 error. CREATE OR