开发者

How to save an image to disk without user interactive?

开发者 https://www.devze.com 2023-01-05 17:19 出处:网络
I see flash has a save call to do this job, but it requires user intera开发者_JAVA技巧ctive. How to save it automatically?It seems you are trying to save the file at the server side. If this image is

I see flash has a save call to do this job, but it requires user intera开发者_JAVA技巧ctive.

How to save it automatically?


It seems you are trying to save the file at the server side. If this image is from the hard disk of the user, then you cannot do it without user interaction. Basically, you can't just steal files from user.

If it is generated using your SWF itself, you can encode the image's bitmapData to PNG format and upload it to the server using a URLLoader and save it to file using your server script.


For security reasons, this is not possible.


Unfortunately you can't, otherwise Flash would be the #1 virus uploader of all time.

0

精彩评论

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

关注公众号