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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage