Windows Phone访问web service和WCF服务
2012-05-18 08:01:14 来源:WEB开发网核心提示:在子类Service1中添加如下方法:public byte[] GetCity() { System.IO.MemoryStream m = new System.IO.MemoryStream(); System.Drawing.Bitmap bp = new System.Drawing.Bitmap(@
在子类Service1中添加如下方法:
- public byte[] GetCity()
- {
- System.IO.MemoryStream m = new System.IO.MemoryStream();
- System.Drawing.Bitmap bp = new System.Drawing.Bitmap(@"C:\Users\GSW\Documents\Visual Studio 2010\Projects\WebSite4\WcfService1\a.jpg");
- bp.Save(m, System.Drawing.Imaging.ImageFormat.Jpeg);
- return m.GetBuffer();
- }
更多精彩
赞助商链接