Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.Net binary data handling

Status
Not open for further replies.

klamerus

Programmer
Jun 23, 2003
71
US
We have a set of very old programs written in MS VC/C++. This reads a message from an MQ Series queue (now called WebSphere MQ) that contains an XML header of instructions followed by a document (all in the same message). The document can be binary (PCL, PDF, etc.) or just plain text. This is also written in C because it needed to be a Windows NT service (we're now on Windows 2000), etc.

At this time, our programs parses through this looking for the final end tag of the XML. It then knows where the XML ends and the document content begins.

We'd like to replace this with VB.Net. We know we can create the service part easily and parse the XML easily, but we still need to find the end of the XML and the start of the Document and store/read that into an XML structure and the remainder into a binary memory structure.

Can anyone describe how to do this in VB.Net and better yet, provide a sample of something made-up and small that might do this? We haven't seen this kind of binary data parsing/handling in VB.Net ever.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top