XPRIM_HTTPRequest vs CSV Data
Posted: Thu May 17, 2018 12:49 am
Hi all.
I've been playing with using the XPRIM_HTTPRequest to download a CSV from an Azure Blob, in a Container, into a server routine.
That works... and I can see that the HTTPRequest.Response does indeed contain the data... but it is just a stream of characters, with the odd linefeed.
What I really want to do is either;
a) Get the response data pushed immediately into a local file (from which I could then use TRANSFORM_FILE to push the data into a working list), or
b) Use another XPRIM utility to directly load the response data into a working list.
But I can't see any options which might give me that functionality... I guess I could receive the data as a string and chop it up and re-assemble as a working list... but that seems quite clunky... and I'm going to run into performance / field size issues, maybe...
So - the bottom line is - can I use the XPRIM_HTTPRequest to grab a CSV and load it straight into a working list (in a server routine) or dump it straight out into a local file.
I suppose I could use Integrator... but was trying to use some of the newer toys first... and just thought I'd check with the forum first...
Cheers for now.
Marcus.
I've been playing with using the XPRIM_HTTPRequest to download a CSV from an Azure Blob, in a Container, into a server routine.
That works... and I can see that the HTTPRequest.Response does indeed contain the data... but it is just a stream of characters, with the odd linefeed.
What I really want to do is either;
a) Get the response data pushed immediately into a local file (from which I could then use TRANSFORM_FILE to push the data into a working list), or
b) Use another XPRIM utility to directly load the response data into a working list.
But I can't see any options which might give me that functionality... I guess I could receive the data as a string and chop it up and re-assemble as a working list... but that seems quite clunky... and I'm going to run into performance / field size issues, maybe...
So - the bottom line is - can I use the XPRIM_HTTPRequest to grab a CSV and load it straight into a working list (in a server routine) or dump it straight out into a local file.
I suppose I could use Integrator... but was trying to use some of the newer toys first... and just thought I'd check with the forum first...
Cheers for now.
Marcus.