I've noticed that there is a XML engine included with AC Api in GSRoot module.
Secondly, is there a preferred "AC API" way to execute a http request from a plugin? An example would be great too.
Response response; GS::IChannelX channel(clientConnection.BeginReceive(response), GS::GetNetworkByteOrderIProtocolX());I would like to store binary response to a file object IO::File..
IO::Location rab("C:/GDLTest/11204.gsm2"); IO::File targetFile(rab, IO::File::Create);How can I store data from GS::ChanelX into IO::File?
vuego wrote:The 'I' in IChannel stands for input channel. You have to open an output channel (GS::OChannel), which can be an IO::File, then write the data directly into it.
I have another question. I am getting binary data with my http request into GS::IChannelX. My binary data is a gsm object.
How can I store data from GS::ChanelX into IO::File?
Or, is it possible to use IO::File as IChannel and store request directly to file using clientConnection.BeginReceive(response) ?
Thank you in advance.
vuego wrote:Again: IChannels are for input OChannel are for output. The http connection is the input channel, and you yourself have to write that information to the output channel (== IO::File). So the pseudo code:
Sorry, I ment IO::File as output channel.
I am having trouble receiving/writing data from HTTP::ClientConnection directly into IO::File (GS::OChannel)... how do I achieve that?