473,324 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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



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.


Jul 19 '05 #1
1 3019
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"
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: TK | last post by:
I'm used to programming in c or c++ in which my problem is simple. I want to be able to enter a value on a page (like 3.2), and then read it as a 32-bit float and break it into it's individual...
2
by: geskerrett | last post by:
In the '80's, Microsoft had a proprietary binary structure to handle floating point numbers, In a previous thread, Bengt Richter posted some example code in how to convert these to python floats;...
2
by: sp | last post by:
Hello Everybody, I need to convert xml that we get from sqlserver For xml auto to my own xml format using asp.net classes. Any ideas and suggestions would be appreciated. Thanks in Advance sp
8
by: iyuen | last post by:
I'm having problems with converting a byte array to an image object~ My byte array is an picture in VB6 StdPicture format. I've used propertybag to convert the picture into base64Array format in...
10
by: JT | last post by:
Need some help in converting a byte to a signed int. This is what I have attempted to do: byte bytes = new byte { 0xFF, 0xFF, 0x9C}; StringBuilder hexString = new StringBuilder(); foreach...
3
by: Simon Hart | last post by:
Sounds an easy task and should be, but the code result is a blank byte array. Comments within code. The code is: Stream sr = new MemoryStream(); XmlSerializer s = new...
4
by: Sharon | last post by:
I'm using an xml schema (XSD) that has a point data in it, so when I'm saving the schema (from memory with values) to an XML file, the point value is saved in the form of: "{X=12, Y=34}" And that...
12
by: steven acer | last post by:
hello, i have a java app that constructs an xml from a specific file format and vice versa. i've been asked to convert it to c++, but im not an expert in c++, actually im mere beginner you can...
5
by: yawnmoth | last post by:
XSL stylesheets can be used to convert an XML file into whatever binary format you want (DocBook, for example, does PDF's). My question is... what if you wanted to go in the other direction? ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.