So there are two ways to do this. With StringTheory, or without string theory.
http://www.capesoft.com/accessories/StringTheorysp.htmWith StringTheory it boils down to 5 lines of code;
str StringTheory
code
str.SetValue(net.Page)
str.SetValue(str.Between('<Data>','</Data>')
str.Base64 = 1
str.Base64Decode()
str.SaveFile('somefilename')
Without StringTheory this breaks down to 3 main parts;
a) extract the data between the <Data> and </Data> tags. You can use Instring to do this.
b) Decode the string as it's current in Bas64 format. There's a NetTalk function that lets you do this; see here;
http://www.capesoft.com/docs/NetTalk5/NetTalk2.htm#NetBase64DecodeExc) Save the string to a file. WinEvent has a feature to do this as well, or use the DOS file driver, and a small loop to write the file.
Cheers
Bruce
first parse out the "data" field. Do this using xFiles or Instring or something like that.
Then decode the base64 using NetBase64DecodeEx. This is a NetTalk function, so you can just call it as;