I found a solution based on an Advantage sample named SampleFileUpload.
First, in the pipeline, a field named contentStream is created and it contains all information comming from HTTP (including mime, header, …).
Then, I create a MIME object using CreateMimeData and I get the file content using getBodyPartContent.
Now my conserne is to check if it’s a XML document or a superset (I know I have only to look for the first tag, but perhasp there is a more civilised way).
I have been able to get this process to work, with one exception.
As noted earlier in this forum, in the mimeData/headers object in the pipeline there is a random name variable in the 1st position that has a value of the same has its label.
When I write the content out to the file it works fine if it is a word doc, excel, or Jpg file but it appends the random tag (----------------------------47162151417169 ) in the end of a text file. type text/plain
Any ideas how to strip this out of the content stream?/
Thanks In Advance,
Paul Gruhn
Yale University
203-432-9541