Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Girish
Guest
 
Posts: n/a
#1: Jul 19 '05


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.





Bob Barrows
Guest
 
Posts: n/a
#2: Jul 19 '05

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


Girish wrote:[color=blue]
> 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.[/color]


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

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Closed Thread