IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Reading a BLOB

    Posted Tue March 18, 2008 05:31 PM

    Hi All,
    I want to know how to view the BLOB contents. I was supposed to write in java service, where i have to get the blob content and to show the result in the results panel.

    In this case i have written a query where am getting the results in Pipeline out with name results(Document List), now i have called a java service where i have the input as the results. Now how i have to convert them into string and to show the result.

    // pipeline
    IDataCursor pipelineCursor_1 = pipeline.getCursor();

    // result_string
    IData result_string = new IData[1];
    result_string[0] = IDataFactory.create();
    IDataUtil.put( pipelineCursor_1, “result_string”, result_string );
    pipelineCursor_1.destroy();

    // pipeline
    IDataCursor pipelineCursor = pipeline.getCursor();

    // content_result
    IData[]    content_result = IDataUtil.getIDataArray( pipelineCursor, "content_result" );
    if ( content_result != null)
    {
    for ( int i = 0; i < content_result.length; i++ )
    {
    [B][COLOR=Red] /*  LOGIC APPLIES HERE  */[/color][/b]
    
    }
    }
    

    pipelineCursor.destroy();


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Reading a BLOB

    Posted Mon July 02, 2012 04:26 PM

    Hi,
    Did you ever found a solution to your problem? I have a similar situation where I need to get a BLOB data, convert it into a byte stream (with a content type as JPG) and pass it across.
    Please let me know.
    Thanks,
    Himanshu


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB