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

Discussion in 'ASP General' started by Girish, Feb 15, 2004.

  1. Girish

    Girish Guest

    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.
     
    Girish, Feb 15, 2004
    #1
    1. Advertising

  2. Girish

    Bob Barrows Guest

    Girish wrote:
    > 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

    --
    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"
     
    Bob Barrows, Feb 16, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    10
    Views:
    1,357
    Malte
    Jun 30, 2005
  2. Oracle ADF

    , Nov 26, 2005, in forum: Java
    Replies:
    1
    Views:
    2,157
    Roedy Green
    Nov 26, 2005
  3. d

    Oracle ADF

    d, Sep 27, 2006, in forum: Java
    Replies:
    0
    Views:
    390
  4. stefoid

    trinidad / ADF users?

    stefoid, Jul 24, 2007, in forum: Java
    Replies:
    0
    Views:
    657
    stefoid
    Jul 24, 2007
  5. Girish
    Replies:
    0
    Views:
    443
    Girish
    Feb 13, 2004
Loading...

Share This Page