Is it possible to pass in images to oracle BPEL?

Hi all,
i want to bind a service which passes in an image. Does Oracle BPEL support the transport of images? If yes, does it also support the XML schema format hexBinary? Because the image is raw hex-encoded (not base64).
regards
Albrecht

We have an XSD that defines a PictureType which enables us to send through JPG files from a consuming application.
     <xsd:simpleType name="PictureType">
          <xsd:annotation>
               <xsd:documentation>JPEG image Base 64 encoded.</xsd:documentation>
          </xsd:annotation>
          <xsd:restriction base="xsd:base64Binary"/>
     </xsd:simpleType>

Similar Messages

  • Is it possible to Pass Binary Image Data to Logical DSP via ALDSP Control?

    I have run into an issue trying to pass binary image data (hexBinary in the WSDL) from WLI's ALDSP Control to a logical service in ALDSP 3.0. I was wondering if anyone has done this successfully, and if so, can you offer any advice?
    The following error is generated:
    Caused by: com.bea.dsp.das.exception.DASException: weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element {commonj.sdo}datagraph { {commonj.sdo}DataGraphType }": bad value for type element {http://idexx.com/lims/domain/image}Image { {http://idexx.com/lims/domain/image}Image }*
    at com.bea.dsp.das.ejb.EJBClient.invokeOperation(EJBClient.java:160)
    The snippet of code that I am using in the WLI to communicate with the ALDSP control is:
    try {
    byte[] bytes2;
    bytes2 = reportText.getBytes("UTF-8");
    Image image =createNewImage();
    image.setImage(bytes2);
    image.setImageFormat("XML");
    image.setImageType("RESULTS REPORT");
    image.setOwningLabId( owningLabId);
    image.setExpirationType("EXPA");
    image.setAddedBy (BigInteger.ONE);
    image.setScanDate(XMLHelper.toXSDDateTimeFormat(new Date()));
    Image[] sdos = new Image[1];
    sdos[0]= image;
    logDebug(sdoHelper. dataObjectToXml(image));
    System.out.println(sdoHelper. dataObjectToXml(image));
    imageDSPControlFile.createImage(sdos);
    sdoHelper. dataObjectToXml(image);
    } catch (UnsupportedEncodingException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    throw new RuntimeException(e.getCause());
    Lastly, the WSDL schema is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://idexx.com/lims/domain/image"
    xmlns:tns="http://idexx.com/lims/domain/image"
    elementFormDefault="qualified">
    <xs:element name="Image" type="tns:Image" />
    <xs:complexType name="Image">
    <xs:sequence>
    <xs:element name="imageId" type="xs:integer" minOccurs="0"/>
    <xs:element name="image" type="xs:hexBinary"/>
    <xs:element name="scanDate" type="xs:dateTime"/>
    <xs:element name="imageFormat" type="xs:string"/>
    <xs:element name="imageType" type="xs:string"/>
    <xs:element name="expirationType" type="xs:string"/>
    <xs:element name="owningLabId" type="xs:integer"/>
    <xs:element name="addedDate" type="xs:dateTime" minOccurs="0"/>
    <xs:element name="addedBy" type="xs:integer" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </schema>

    WLI's ALDSP Control This is actually ALDSP's ALDSP Control - but you can call it from WLI. Check the Advanced Samples announcement in this forum for examples of using the ALDSP Control
    - mike

  • Is it possible to pass a null Input Oracle parameter to a stored procedure

    I have a stored procedure that take 3 inputs and gives 1 output.I'm using Oracle parameter to add all 3 input parameters as follows :
    OracleParameter inobj = cmd.Parameters.Add("wid", OracleDbType.Int32,50);
    inobj.Direction = ParameterDirection.Input;
    inobj.Value = _employeeID;
    and added the output parameter as follows:
    OracleParameter outobj = _cmd.Parameters.Add("w_first", OracleDbType.Varchar2, 50);
    outobj.Direction = ParameterDirection.Output;
    On the UI end , the user has a choice to provide 1 input or all inputs or any 2 inputs based on his interest. Stored Proc looks as follows:
    SP( inp1 in parameter, inp2 in parameter, inp3 in parameter, output1 out parameter)
    If i just get 1 input or 2 inputs from the user, is it fine to query the data for output using same stored procedure or should i have individual stored procedures for each scenario(combination of different inputs)?
    Will i get any pl/sql error that says invalid number of arguements?

    This means if i have 1 input , i need to have a different method to pass 1 parameter value and other input parameters as null and if there are 2 inputs will need different method to handle. So 5 different methods all together?
    What if the stored procedure is as follows ,will its make things easier so that only one method is used for all scenarios?(optional parameters is set default value as null in the stored proc)
    Create or Replace
    Procedure GetFoo
    (cur_z OUT sys_refcursor,
    pub_date IN varchar2,
    fname IN varchar2 default null,
    lname IN varchar2 default null,
    phone IN varchar2 default null
    IS
    BEGIN
    ---get some data
    END;
    *actually i can test this but, all the database servers are down today. So, i need to have idea if this thing works before i confirm with someone. Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • MrSID images in Oracle Spatial

    Is it possible to load MrSID images to Oracle Spatial Release 2 and display them as MapViewer image or GeoRaster theme ? Thanks

    Yes, it is. You need to get the MrSID plugin for MapViewer (called Spatial Express for Oracle). For details, go to:
    http://www.lizardtech.com/products/geo/oracle.php
    Dan
    Daniel Abugov
    VP Software Support and Services
    Acquis, Inc.
    [email protected]

  • Is it possible to pass parameters through eventlisteners?

    Hello everyone!
    Inside a .fla file I have some buttons and each button will tween a different image to the stage. All the images are outside the stage in the same x and y position and I just need to tween the x coordinate.
    Now I'm working with an external document class where I'm trying to hold all my functions and I'm stucked with the Tweens. I'm willing to stay away from the flash tween engine and I'm trying to work with tweenLite.
    My question is: Is it possible to pass parameters through eventListeners so I can use something like this inside my docClass?
         public function animeThis (e:MouseEvent, mc:MovieClip, ep:int):void { //ep stands for endPoint.
         TweenLite.to(mc, 2, {x:ep});
    If this is possible, how am I supposed to write the listeners so it will pass the event to be listened for AND those parameters? And how to build the function so it will receive those parameters and the event?
    If this is not possible, what's the best approach to do this?
    Thanks again!

    So, I understand you need to match buttons with corresponding visuals.
    Here is a suggested approach.
    Since SimpleButton is not a dynamic class, I suggest you have an enhanced base class for these buttons that extends SimpleButton. What is enhanced is that button has reference to the target.
    I wrote code off the top of my head and it may be buggy. But concept is clear:
    This is base class for all the buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.SimpleButton;
         public class NavButton extends SimpleButton
              public var targetObject:DisplayObject
              public function NavButton()
    Now, this is your doc class that utilizes this new buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.MovieClip;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.MouseEvent;
         public class DocClass extends Sprite
              private var btnArray:Array;
              private var visuals:Array;
              // references to objects being swapped
              private var visualIn:MovieClip;
              private var visualOut:MovieClip;
              public function DocClass()
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              private function init(e:Event = null):void
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // buttons and MCs shouldn't be in the same array - otherwise it is counterintuitive
                   // assuming all the objects are on stage
                   btnArray = [price_btn, pack_btn, brand_btn, position_btn];
                   visuals = [g19_mc, g16_mc, g09_mc, g04_mc];
                   configObjects();
              private function configObjects():void
                   var currentVisual:MovieClip;
                   var currentButton:NavButton;
                   for (var i:int = 0; i < btnArray.length; i++)
                        currentVisual = visuals[i];
                        // hold original positioin
                        currentVisual.hiddenPosition = currentVisual.x;
                        currentButton = btnArray[i];
                        // set target MC
                        currentButton.targetObject = currentVisual;
                        currentVisual.addEventListener(MouseEvent.CLICK, placeObject);
                        currentButton.addEventListener(MouseEvent.CLICK, placeObject);
              private function placeObject(e:MouseEvent):void
                   // if NavButton is clicked - make new visual targeted for moving in and currently visible object subject for moving out
                   if (e.currentTarget is NavButton) {
                        visualOut = visualIn;
                        visualIn = NavButton(e.currentTarget).targetObject;
                   else {
                        // otherwise - move visual out
                        visualOut = visualIn;
                   swapVisuals();
               * Accompishes visuals swapping
              private function swapVisuals():void {
                   if (visualIn) TweenLite.to(visualIn, .3, { x:0 } );
                   if (visualOut) TweenLite.to(visualOut, .3, { x:visualOut.hiddenPosition } );

  • Is it possible to pass blob from java to PL/SQL ?

    Hi, I try to bind a PL/SQL function who return a blob to a java class :
    Signature of java method :
        public static Blob getBLOB(int aId, String aJDBC) {Create PL/SQL function :
    create or replace function aa_java(myPiId in number,myPiJDBC in varchar2) return blob
    as language java
    name 'zip.ReadBLOB.getBLOB(int,java.lang.String) return java.sql.Blob';
    /In java code, my blob has the right size (150 Ko) but in PL/SQL, size = 0 !!!
    Any ideas ?

A: Is it possible to pass blob from java to PL/SQL ?

Thank you, but I think I have a Java problem...
Here is my code :
package zip;
import java.sql.*;
import oracle.jdbc.OracleDriver;
import oracle.sql.BLOB;
public class ReadBLOB {
    public static BLOB getBLOB(int aId, String aJDBC) {
        BLOB vBlob = null;
        try {
            DriverManager.registerDriver(new OracleDriver());
            Connection connection = DriverManager.getConnection(
                aJDBC,
            PreparedStatement stat = connection
                .prepareStatement("select image from aa_blob where id="+aId);
            ResultSet rs = stat.executeQuery();
            if (rs.next()) {
                vBlob = (BLOB) rs.getBlob(1);
                System.out.println("Taille 1 : "+vBlob.length());
            connection.close();
        } catch (Exception e) {
            e.printStackTrace();
        return vBlob;
    public static void main(String[] args) throws Exception {
        BLOB vBlob = getBLOB(1, "jdbc:oracle:thin:@vdn-ceg5:1521:DEV5");
        System.out.println("Taille 2 : "+vBlob.getLength());
}When I run the main method, I have :
Taille 1 : 150260
Taille 2 : 86
!!!!????!!!!????

Thank you, but I think I have a Java problem...
Here is my code :
package zip;
import java.sql.*;
import oracle.jdbc.OracleDriver;
import oracle.sql.BLOB;
public class ReadBLOB {
    public static BLOB getBLOB(int aId, String aJDBC) {
        BLOB vBlob = null;
        try {
            DriverManager.registerDriver(new OracleDriver());
            Connection connection = DriverManager.getConnection(
                aJDBC,
            PreparedStatement stat = connection
                .prepareStatement("select image from aa_blob where id="+aId);
            ResultSet rs = stat.executeQuery();
            if (rs.next()) {
                vBlob = (BLOB) rs.getBlob(1);
                System.out.println("Taille 1 : "+vBlob.length());
            connection.close();
        } catch (Exception e) {
            e.printStackTrace();
        return vBlob;
    public static void main(String[] args) throws Exception {
        BLOB vBlob = getBLOB(1, "jdbc:oracle:thin:@vdn-ceg5:1521:DEV5");
        System.out.println("Taille 2 : "+vBlob.getLength());
}When I run the main method, I have :
Taille 1 : 150260
Taille 2 : 86
!!!!????!!!!????

  • Is it possible to pass personnel number in BAPI_ACC_INVOICE_RECEIPT_POST

    Hi All,
    We are using an external document image system where we scan and code vendor invoices. To send the invoices to our SAP system we will use BAPI_ACC_INVOICE_RECEIPT_POST. Unfortunately we are missing the possibility to pass <b>personnel number</b>. This is an important attribute for us, e.g. with learning and education cost. Is there a simple way to pass this information?
    Regards,
    Gerrit

    Hi Romeo,
    In BAPI_ACC_DOCUMENT_POST table EXTENSION1 is available. Fields you want to pass, but which are not available in one of the other tables, you can pass via the EXTENSION1 table. In the User Exit of the BAPI you will have to map these fields to the required fields.
    For example, in BAPI_ACC_INVOICE_RECEIPT_POST we have now activated User Exit ZXACCU15.
    Source in the user exit:
    <i>* Post the personal number and partner bank type
    from the EXTENSION to the ACCIT data
    structure for the NL users only.
      DATA: wa_extenion LIKE bapiextc.
      DATA: wa_accit    LIKE accit.
      DATA: h_index     LIKE sy-tabix.
      LOOP AT extension INTO wa_extenion
                        WHERE field2 = 'PERNR'
                        OR    field2 = 'BVTYP'.
        READ TABLE t_accit INTO wa_accit
                           WITH KEY posnr = wa_extenion-field1(10).
        IF sy-subrc = 0 AND wa_accit-bukrs(2) EQ 'NL'.
          h_index = sy-tabix.
          IF wa_extenion-field2 = 'PERNR'.
            wa_accit-pernr = wa_extenion-field3(8).
            MODIFY t_accit FROM wa_accit
                           INDEX h_index
                           TRANSPORTING pernr.
          ELSEIF wa_extenion-field2 = 'BVTYP'.
            wa_accit-bvtyp = wa_extenion-field3(4).
            MODIFY t_accit FROM wa_accit
                           INDEX h_index
                           TRANSPORTING bvtyp.
          ENDIF.
        ENDIF.
      ENDLOOP.</i>
    Table EXTENSION1 has 4 fields which you can use to your own needs. In my example we use field1 for the itemno_acc, the item number in the other table where the extension is needed. Field2 is the fieldname where the value (from field3) has to be placed. We do not use field4.
    Example
    FIELD1        FIELD2     FIELD3     FIELD4
    0000000010 BVTYP     USD     
    0000000020 PERNR     99999999     
    Unfortunately I do not know how to activate a user exit, because in our case it was already there.
    Hope this is of any help,
    Regards
    Gerrit

  • Is it possible to pass a string from an applet to the web site?

    Hi, everybody!
    Is it possible to pass a String from an applet to a web site (as a field value in a form, an ASP variable, or anything else). Basically, I have a pretty large String that is being edited by an applet. When a user clicks on the submit button, a different page will show up which has to display the modified string. The String is pretty large so it doesn't fit into the URL variable.
    Please, help!
    Thank you so much!

    Why do you want to do this in Java?
    Javascript is the correct language for these type of situations.
    for instance:
    in the head of your html document:
    <script language=javascript type="text/javascript">
    createWindow(form){
    if(form.text.value!=""){
    newDoc = new document
    newDoc.write(form.text.value)
    newWin = window.open(document,'newWin','width=200;height=150')
    </script>
    in the body:
    <form onSubmit="createWindow(this)">
    <p>
    Enter a String:<input type=text size=30 name="text">
    </p><p>
    <input type=submit value="submit"> 
    <input type=reset value="reset">
    </p>
    </form>

  • Is possible to pass array/list as parameter in TopLink StoredProcedureCall?

    Hi, We need to pass an array/List/Vector of values (each value is a 10 character string) into TopLink's StoredProcedureCall. The maximum number of elements on the list is 3,000 (3,000 * 10 = 30,000 characters).
    This exposed two questions:
    1. Is it possible to pass a Vector as a parameter in TopLink's StoredProcedureCall, such as
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    Vector strVect = new Vector(3000);
    strVect.add(“ab-gthhjko”);
    strVect.add(“cd-gthhjko”);
    strVect.add(“ef-gthhjko”);
    Vector parameters = new Vector();
    parameters.addElement(strVect);
    session.executeQuery(query,parameters);
    2. If the answer on previous question is yes:
    - How this parameter has to be defined in Oracle’s Stored Procedure?
    - What is the maximum number of elements/bytes that can be passed into the vector?
    The best way that we have found so far was to use single string as a parameter. The individual values would be delimited by comma, such as "ab-gthhjko,cd-gthhjko,ef-gthhjko..."
    However, in this case concern is the size that can be 3,000 * 11 = 33, 000 characters. The maximum size of VARCHAR2 is 4000, so we would need to break calls in chunks (max 9 chunks).
    Is there any other/more optimal way to do this?
    Thanks for your help!
    Zoran

    Hello,
    No, you cannot currently pass a vector of objects as a parameter to a stored procedure. JDBC will not take a vector as an argument unless you want it to serialize it (ie a blob) .
    The Oracle database though does have support for struct types and varray types. So you could define a stored procedure to take a VARRAY of strings/varchar, and use that stored procedure through TopLink. For instance:
    StoredProcedureCall call = new StoredProcedureCall();
    call.setProcedureName("STORED_PROCEDURE_NAME");
    call.addNamedArgument("PERSON_CODE");
    oracle.sql.ArrayDescriptor descriptor = new oracle.sql.ArrayDescriptor("ARRAYTYPE_NAME", dbconnection);
    oracle.sql.ARRAY dbarray = new oracle.sql.ARRAY(descriptor, dbconnection, dataArray);
    Vector parameters = new Vector();
    parameters.addElement(dbarray);
    session.executeQuery(query,parameters);This will work for any values as long as you are not going to pass in null as a value as the driver can determine the type from the object.
    dataArray is an Object array consisting of your String objects.
    For output or inoutput parameters you need to set the type and typename as well:
      sqlcall.addUnamedInOutputArgument("PERSON_CODE", "PERSON_CODE", Types.ARRAY, "ARRAYTYPE_NAME"); which will take a VARRAY and return a VARRAY type object.
    The next major release of TopLink will support taking in a vector of strings and performing the conversion to a VARRAY for you, as well as returning a vector instead of a VARRAY for out arguments.
    Check out thread
    Using VARRAYs as parameters to a Stored Procedure
    showing an example on how to get the conection to create the varray, as well as
    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/varray/index.html on using Varrays in Oracle, though I'm sure the database docs might have more information.
    Best Regards,
    Chris

  • Is it possible to get the image from the i pad when mirroring via Apple TV to fill the screen instead of appearing as a screen within a screen?

    When mirroring, is it possible to get the image from the ipad to fill the screen on the TV instead of appearing as a screen within a screen?

    Welcome to the Apple Community.
    No, the iPad has an aspect ratio of 4:3, a TV has an aspect ratio of 16:9, to fit one into the other is impossible without distorting the picture. If your TV has a zoom feature, you may be able to use this to fill the screen a little more to your liking, but this will result in cropping top and bottom.

  • Is it possible to make an image of a MBP, and run it as a virtual machine?

    Is it possible to create an image of an exitsting MBP, transfer the image to another system or server, and run that image as a virtual machine?  If so, how?
    Thank you

    Mac OS X will not run in a virtual machine, except as 10.6 Server:
    https://discussions.apple.com/docs/DOC-6841

  • Is it possible to pass some type of parameter/unique id FROM PDF?

    hi there,
    I will try to explain this as best as I can but please bear with me.
    I have Adobe Acrobat X Pro.
    We have drawings linked to each other in pdf.
    When you open a drawing (say, a layout of a house), my boss wants to be able to click on say, a door, and have all the information on that door pop up (size, manufacturer, when it was shipped, etc). The information log is stored in Excel. I know how to hyperlink to open an excel file FROM pdf, but cannot figure out how to open a specific sheet in Excel. So here is my question:
    1. How do I link to a specific sheet in Excel so it opens when I click on a link in the pdf file?
    Having said that, we are going to have around 1500 items and I don't want to have to create 1500 sheets (if that's even possible) to open the details for each one. So here is question #2:
    2.  Is it possible to pass some type of parameter to excel (or even Access) to know what item was clicked on the pdf file so I can write a macro/code in Excel to just fill in the details for that item? (Hence just needing one sheet instead of 1500?).
    Suggestions/path forwards are welcome.
    I hope this was clear and I thank you in advance.
    Thanks,
    Jessica

    There really isn't a way to do that. It would be possible to export an Excel sheet to a tab-delimited (or CSV, XML) file which could optionally be attached to the PDF. JavaScript inside the PDF could read the data file and extract the information for an item so it could be displayed somehow.

  • How to pass an image from the mobile application to the Adobe Media Server?

    The image is taken as photo from the CameraUI in the Client Side(AIR Mobile Application) and saved as a .jpg file in the mobile. I passed the image byte array values from the client to the server. How to convert that byte array to a file in the Adobe Media server?

    This is very similar to the problem here:
    http://forums.adobe.com/thread/655314
    processByteArray = function(byteArrayAsPlainObject){
         // byteArrayAsPlainObject is an object serialized from a ByteArray but without functions
         // we need to get a ByteArray that we can call functions on
         var usableByteArray = new ByteArray();
         byteArrayAsPlainObject.position = 0; // make sure we start from the beginning
         ByteArray.prototype.readBytes.call(byteArrayAsPlainObject, usableByteArray);
         // now usableByteArray contains what was in the original argument, but we can actually use it on the server side

  • Is it possible to pass a field symbol as parameter from any method of view?

    Hi
    Is it possible to pass a field symbol as an importing parameter to teh globally declared attribute??

    While it is true that you can pass field symbols, they must be fully typed at the time you pass them  and they will be passed by value, not by reference. If you want to pass generically typed variables use a data reference (TYPE REF TO) instead.

  • Is it possible to submit an image file with PDF form?

    Hello,
    I know that Acrobat does not offer a field for image file submission.
    whether there are workarounds to solve this problem?
    I have found suggestions regarding place an image to button icon:
       event.target.buttonImportIcon();
    but I can't understand is it possible to submit this image to server (Reader supports PDF only).
    Any advices?
    Yury

    Hi Yury,
    Yes, that's correct you can create a button and add a script to it that would prompt the user to select an image file when that button is clicked. Then that image can be displayed using the same button (buttons can show either an image or text).
    The script in question is:
    event.target.buttonImportIcon();
    You need to add it as an Run a JavaScript-action to your button, triggered by the MouseUp event, and of course set the button's layout.
    Please refer to this link : https://acrobatusers.com/tutorials/how-to-create-a-button-form-field-to-insert-a-pdf-file
    On submitting the image it gets embedded with the PDF.
    If the users are using Acrobat they will be able to view the image in the PDF, however if they are using only Reader, you will have to create the form using LiveCycle & then save it in a Reader Extendable Format.
    Regards,
    Aadesh

  • Maybe you are looking for

    • Adobe Media Encoder in CS4

      Hello. My name is Justin. I am currently going through the  ADOBE FLASH CS4 REVEALED  book by Jim Shuman, as a program at a local community college. I have the Adobe Creative Suite 4 Design Premium. I am running this program on Microsoft Windows 7 x6

    • Email (pdf) problem

      I recently updated to the new iOS 4.2 I'm starting to have problem with PDF files in email. I got one which is displayed only half and I got another email where the pdf does not show at all. The funny thing is when I looked at my Lotus Notes email on

    • Capacitive keys no longer working after windows 10 update

      greetings i updated my Nokia Lumia 520 , from windows 8.1 to windows 10, but the windows ,and the back capacitive buttons are no longer working, however the search button is responding. since these are the main navigation keys, i cnt do anything to u

    • Lack of Sony and Nintendo games for "Get $10" offer

      What is up with the lack of Sony and Nintendo exclusive games for the "Get $10" offer? You guys have had tons of Xbox exclusive games on the list(recently Halo MCC, Sunset Overdrive, Halo 5), but there has been a severe lack of Sony or Nintendo games

    • Need Help in Adobe Forms

      Save Environment. Save Yourself. Hi Experts!! I am very new to Adobe forms and am doing hands on using some tutorials. However, though I searched a lot, I didn't get help in some points.  1. What is the significance of Accessibility in Palettes? When