Skip to Content

problem in fetching Binary Data from SAP to SUP

Hi All,

           I am facing problem in fetching Binary data from SAP to SUP(Sybase Unwired Platform 2.1.3) for getting Image . I had taken Big Binary data Type in SUP side.

            But each time it is returning some anonymous four character value in SUP Preview and giving error on IOS side.

            Kindly suggest solution ....



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 30, 2013 at 01:57 PM

    Is the output field that carries the data have the datatype "XSTRING" in the RFC/FM?

    1.Check the workflowclient log in the SUP server. If the binary data is reaching the unwired server you can see the data in the logs.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 30, 2013 at 01:38 PM


    Can you show the screenshot of the preview when you take on MBO,

    Since its a big binary it shows some rectangular boxes when you preview.

    On the IOS side the code that I used to read the data was something of this sort

    SUPQuery *query=[SUPQuery getInstance];

    [query select:@"x.imageFile"];

    [query from:@"MBONAME" :@"x"];

    SUPQueryResultSet *qrs = [__________DB executeQuery:query];



    for (SUPDataValueList *result in qrs)


    NSData *dat = [SUPDataValue getNullableBinary:[result item:0]];

    [imageArray addObject:dat];



    Read the value from image array and assign it to imageview.

    Hope this helps,


    Add comment
    10|10000 characters needed characters exceeded

  • Feb 12, 2013 at 04:59 PM

    Hi Vivek,

    Can you give us a bit more information about your errors, you mentioned an error on the iOS side - what was that error and can you provide a screen shot.

    Also can you show us a screen shot of your MBO to ensure that the correct dataTypes are being set on your attribute.



    Add comment
    10|10000 characters needed characters exceeded

    • Thanks For Reply

      I had mapped the IV_FILENAME with atteribute EV_FILENAME in parameter tab.

      but when I m looking on Operation->DataSource->BindDataSource,

      In Operation parameter step FIL FROM ATTRIBUTE is not showing. Also when i am mapping Argument with FILL FROM ATTRIBUTE ,and again if i open it,it becomes unmapped means not showing anything in FILL FROM ATTRIBUTE column. and also I am getting below warning message.

      *No argument is mapped to client parameter 'PutImage->SaveImage()->IV_FILENAME'.

      *Attribute 'PutImage->EV_FILENAME' has no mapped data source field and no propagated load argument.

      kindly advise me ,why it is not mapping with attribute i had created in SUP called EV_STRING in Bind Data Source.