Passing binary files in webservices


i need send binary files in webservice.  have read ws-atach need can used non .net clients. can it? have example?
thankss


___________________
hip hop
de chiste

you can send binary files base64 strings.

                    dim b() byte = system.convert.frombase64string(webservice.getfileasbase64string())
                    dim bmp bitmap = bitmap.fromstream(new io.memorystream(b, 0, b.length)

on webservice end might do

dim b() byte
return system.convert.tobase64string(b)


or can create class binary array , serialize class webservice.


Archived Forums A-B  >  ASMX Web Services and XML Serialization



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'