HighTechTalks DotNet Forums  

File transfers

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss File transfers in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Kevin
 
Posts: n/a

Default File transfers - 08-08-2007 , 05:27 PM






All, or any who can help...

I have an application, written in eVC4, that connects to the Internet and
receives a file via a web service. The request contains the name of the file.
The WS reads the local file and sends back the byte array (stream). However,
what I receive is an XML document, with the file (encoded) between
<base64binary> tags. What I want is to get a raw file (no XML headers or
formatting). The WS is written in VB.NET. It's very simple: open the file, read
the file into a byte array, and return the byte array. I just want the byte
array...not the rest of the XML stuff surrounding the byte array.

Can this be done? How?

Thanks,
Kevin S.

Reply With Quote
  #2  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: File transfers - 08-09-2007 , 09:59 AM






"Kevin" <kevins (AT) assetcontrols (DOT) com> wrote

Quote:
All, or any who can help...

I have an application, written in eVC4, that connects to the Internet and
receives a file via a web service. The request contains the name of the
file. The WS reads the local file and sends back the byte array (stream).
However, what I receive is an XML document, with the file (encoded)
between <base64binary> tags. What I want is to get a raw file (no XML
headers or formatting). The WS is written in VB.NET. It's very simple:
open the file, read the file into a byte array, and return the byte array.
I just want the byte array...not the rest of the XML stuff surrounding the
byte array.

Can this be done? How?
First, please don't cross-post. Many people read all of the newsgroups you
posted to, and will see your message several times.

Second, no, Web Services are about XML, so they'll return XML.
--
John Saunders [MVP]



Reply With Quote
  #3  
Old   
Egghead
 
Posts: n/a

Default Re: File transfers - 08-09-2007 , 11:12 AM



Hi here,

It is bad to crosspost :@

Just off my head : you know the tag already why not just decode it, or you
can use the soap tool kits <- a compact framework ??, or you have a .Net COM
dll connects to the web service. You have so many solutions for the problem.

--
cheers,
RL
"John Saunders [MVP]" <john.saunders at trizetto.com> wrote

Quote:
"Kevin" <kevins (AT) assetcontrols (DOT) com> wrote in message
news:e5PgkLg2HHA.4400 (AT) TK2MSFTNGP06 (DOT) phx.gbl...
All, or any who can help...

I have an application, written in eVC4, that connects to the Internet and
receives a file via a web service. The request contains the name of the
file. The WS reads the local file and sends back the byte array (stream).
However, what I receive is an XML document, with the file (encoded)
between <base64binary> tags. What I want is to get a raw file (no XML
headers or formatting). The WS is written in VB.NET. It's very simple:
open the file, read the file into a byte array, and return the byte
array. I just want the byte array...not the rest of the XML stuff
surrounding the byte array.

Can this be done? How?

First, please don't cross-post. Many people read all of the newsgroups you
posted to, and will see your message several times.

Second, no, Web Services are about XML, so they'll return XML.
--
John Saunders [MVP]




Reply With Quote
  #4  
Old   
Spam Catcher
 
Posts: n/a

Default Re: File transfers - 08-10-2007 , 01:25 PM



Kevin <kevins (AT) assetcontrols (DOT) com> wrote in
news:e5PgkLg2HHA.4400 (AT) TK2MSFTNGP06 (DOT) phx.gbl:

Quote:
It's very simple: open the file, read
the file into a byte array, and return the byte array. I just want the
byte array...not the rest of the XML stuff surrounding the byte array.
If you want a straight byte array - create a socket server.

With web services, take a look at MTOM - it allows you to transfer large
files efficently over WS. It's part of WSE 3.0.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.