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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending binary data via SOAP

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
I have a webservice where one of the function calls is supposed to return a gzip stream.

I'm using the NUSOAP package to do this...

Now, if I just return the output of gzcompress() things don't work at all.

So I tried base64 encoding the thing, and it got through exactly as I sent it... problem is my receiving application (C#) can't seem to decode it in the right way... so I tried uuencode, same result.

Anyone have any experience in getting binary data out through SOAP in a way that's easy for all applications to access it?

I mean maybe I just need to tweak the base64decoding functions I have, or the uudecode functions, but I'm not sure exactly what's happening here and figured I'd come ask if perhaps there's just a more standard way to approach this.
 
No... found the solution about 2 am... just stopped trying to decode to a string in .NET, and write the decoded base64 byte array directly to file.

Thanks for the note though, I'll keep them in mind for later projects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top