是否可以将带有base64编码图像数据的字符串转换为flash lite中可显示的图像?

发布于 2024-08-23 23:56:14 字数 185 浏览 4 评论 0原文

我尝试使用数据 URI 将图像数据加载到影片剪辑中,但 flash lite 似乎不支持数据 URI 方案。

我还认为可以对图像数据进行 Base64 解码并将其写入文件,然后使用文件 URI 方案将文件加载回影片剪辑中。但是,我在文档中没有看到写入文件系统的方法。我是否在 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 filesystem in the documentation. Am I missing something in the flash lite docs that would allow me to write to the filesystem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老旧海报 2024-08-30 23:56:14

这在客户端是不可能的 - Flash Lite 没有任何用于处理二进制数据的 API,您所能做的就是使用 loadMovie 将其作为图像读取。

如果您找到合适的图像库,您也许可以在服务器端执行此操作。只需确保图像以正确的 mime 类型发送,以便 FL 知道它是什么。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文