62,073
社区成员
发帖
与我相关
我的任务
分享
//得到下载文件的一个webservice
localhost.UpLoadAndGetBinaryFile word;
word= new localhost.UpLoadAndGetBinaryFile();
string filename="";
//根据id得到这条数据中的2进制字节 和文件名
byte [ ] byteWord= word.getBinaryFile(ref filename,12);
//这里如果是 图片 我可以这么写:
//System.IO.MemoryStream memStream = new System.IO.MemoryStream ( byteWord);
//Bitmap bm = new Bitmap ( memStream );
//问题1:如果是 office系列 或者txt文件 该如何处理 ?
//问题2:如何出来直接打开或者另存为?