View Full Version : Converting STRING to OBJECT
Hi ,,
Is there any service that convert String to Object .,
I appretiate your help
Thanks,
raj
mcarlson
03-23-2006, 15:34
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.
kishore_wm
04-04-2006, 13:28
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