如何字节组转换为图像或图像的ByteArray?图像、转换为、字节、ByteArray

2023-09-08 12:03:31 作者:伤心又怎样。

如何分配的ByteArray值面板的背景图像。如果任何人有想法或的experiance plz帮助我克服这个问题。简介EXP:

How to assign bytearray value to panel background image. If anybody have idea or experiance plz help me to overcome the problem. BRIEF EXP:

我有面板控制,并希望加载图像从web服务获得一个和backgroundImage。所以我用的setStyle(),但其不接受该图像。所以如何添加图片到我的面板背景image.Plz电话:在这里我你的想法。

I have panel control and want to load image getting from webservice as a backgroundimage. So i used setstyle() but its not accepting that image. so how to add that image into my panel background image.Plz tel me your ideas here.

推荐答案

在Flex 3或更高,你只需要做的:

In Flex 3 or higher, you just need to do:

 yourImage.source = yourByteArray;

问候!