Converting STRING to OBJECT

Hi ,

Is there any service that convert String to Object .,

I appretiate your help

Thanks,
raj

Why do you need to do this?

Every String is an Object, so you may use it as an input, where input type is Object.

In other words - if you have service, that have on input object, it means that it may be anything - string, document, etc.

IDataCursor idc = pipeline.getCursor();
idc.first();
Object value = idc.getValue();
if (value!=null) idc.insertAfter(“str”, value.toString());
idc.destroy();

raj,

which object datatype are you looking?

you can use pub.string:stringTobytes(this converts to datatype bytes object) also see pub.io services for converting to Stream object.

HTH,
RMG