开发者

Is it possible to turn a string with base64 encoded image data into a displayable image in flash lite?

I have tried using a data URI to load the image data into a movie clip, but flash lite does not appear to support the data URI scheme.

I also thought it might be possible to base64 decode the image data and write it out to a file and load the file back into the movie clip using the file URI scheme. However, I do not see a way to write to the开发者_StackOverflow filesystem in the documentation. Am I missing something in the flash lite docs that would allow me to write to the filesystem?


This isn't possible on the client side - Flash Lite doesn't have any APIs for dealing with binary data, all you can do is read it in as an image with loadMovie.

You can probably do this on the server side though, if you find a suitable image library. Just make sure that the image is getting sent with the correct mime-type, so FL knows what it is.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜