从服务返回byte [] [英] Returning byte[] from service

查看:81
本文介绍了从服务返回byte []的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。 这是我第一次在服务中运行所以我不确定我是否正确编写了东西,但是我有一个字节数组,我已经加载了转换后的Crystal Report的结果。  该调用只是类似于(其中
值12是来自数据库的报告ID):

Hello all.  This is my first run at a service so I'm not sure that I've written things properly, but I have a byte array that I've loaded with the results of a converted Crystal Report.   The call is simply something similar to (where the value 12 is the report id from the database):

byteArray = service.GenerateReport(12, paramArray, "PDF");

现在的问题是我有字节数组我似乎无法做任何事情,除了转换为字符串并显示或将流写入文件。 有没有一种简单的方法可以更好地利用这些数据?

The issue is now that I have the byte array I can't seem to do anything with it beyond converting to string and displaying or writing the stream to a file.  Is there a simple method available to make better use of this data?

谢谢!

马克

Thanks!
Mark

 

推荐答案

数据是数据,可以做什么?

The data is the data, what can be done?

这是一个字节数组。您必须将其作为字节数组进行处理。你想用它做什么?

It's a byte array. You have to process it as a byte array. What do you want to do with it?


这篇关于从服务返回byte []的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆