ASP.NET to ASP help converting bytes (xml adf format) to string

G

Girish

HERE IS SOME ASP.NET CODE NEED HELP on transfering this to classic ASP, all
I need is valid XML doc so that I can read data from it and display it on
the browser

// Make sure we have something to work with

int bLen = Context.Request.ContentLength;

if( bLen > 0 )



XML formatted as ADF(auto lead data)... so convert the bytes to string.

byte[] bytes = Context.Request.BinaryRead( bLen );

string msg = Encoding. ( bytes, 0, bLen );



// At this point we have some data and we expect

// it to be an ADF report, which is valid XML.
 
B

Bob Barrows

Girish said:
HERE IS SOME ASP.NET CODE NEED HELP on transfering this to classic
ASP, all I need is valid XML doc so that I can read data from it and
display it on the browser

// Make sure we have something to work with

int bLen = Context.Request.ContentLength;

if( bLen > 0 )



XML formatted as ADF(auto lead data)... so convert the bytes to
string.

byte[] bytes = Context.Request.BinaryRead( bLen );

string msg = Encoding. ( bytes, 0, bLen );



// At this point we have some data and we expect

// it to be an ADF report, which is valid XML.


I haven't a clue what an ADF report is, but I can tell you that XML is XML
in any language. So, whatever the XML looks like in your .Net application,
you should create the same XML in the ASP app.

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top