开发者

How to convert byte array contained in object to actual image?

开发者 https://www.devze.com 2022-12-21 05:12 出处:网络
Iam developing smart device application in C#. In that I am calling the web services. The web service method return google map. The return type of the method is object. The object cont开发者_运维问答a

I am developing smart device application in C#. In that I am calling the web services. The web service method return google map. The return type of the method is object. The object cont开发者_运维问答ains the image in byte format. The object conatins the image in base64binary format. In object I am not getting the string. In object I am getting the byte array. I need to display the actual image in my application. What type of casting I need to do to display the image. Can you provide me the code or any link through which I can resolve the above issue?


You should use the Graphics::Bitmap object

then you have to associate your byte array to the data pointer inside that class

Here is an example

0

精彩评论

暂无评论...
验证码 换一张
取 消