PDA

View Full Version : Converting STRING to OBJECT


rajwm
03-23-2006, 13:08
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?

wiktorn
03-31-2006, 01:04
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();

rmg
04-04-2006, 14:17
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