开发者

Sending image data from Flash to PHP GD, Will it take too much resources?

If i send bitmap data from Flash AS3, to PHP and then PHP turns the bitmap data into a image file and saves on server... Would it take too much resources?

I mean, The Bitmap Data could 开发者_如何学JAVAcontain too much pixels etc does that affect the resources? If 10-100 people send data simultaneously is it going to cause problems... What kind of specs are you looking for to do this thing?


This is impossible to answer without knowing your server specs and the kind of application you're building.

But before it even comes to that - I don't speak AS3, but surely Flash can do the conversion into an image file by itself? That would put the load on the client machine, which can deal with it easily. Sending the finished file to a PHP process is a much less resource-consuming task.


It's 100kb in compressed as jpg but when it comes to bmp it could make for a 1024x768 image, 2MB . That is the default download limit for generic php installation. To process on the image it takes nearly same amount of memory.

In conclusion, It wont be a problem


You can do the encoding in Flash. This article should show you how to do it
http://henryjones.us/articles/using-the-as3-jpeg-encoder

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜