webMethods

webMethods

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
Expand all | Collapse all

Data loss in Bytes to String Conversion

  • 1.  Data loss in Bytes to String Conversion

    Posted Mon July 08, 2013 08:47 AM

    Hi,

    The input to a service is bytes, I’m converting Bytes to string using pub.string.bytesToString, i’m using encoding as 037. I’m converting it to string to perform few operations,then again i convert it back to bytes and then post it to a queue. But data loss occurs. Could anyone suggest a way to avoid dataloss?

    Thanks,
    Saratha


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 2.  RE: Data loss in Bytes to String Conversion

    Posted Mon July 08, 2013 12:46 PM

    What do you mean by “i’m using encoding as 037”?
    encoding is something like UTF-8 or ISO-8859-1 etc.
    Find the right encoding that the Bytes is using, and you should avoid the issue.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB