我拥有网络照片打印服务,主要问题是用户上传的图片大小(兆字节)是我需要以标准照片尺寸打印的图片的两倍。带宽和磁盘空间不是问题,问题是上传它们(对于用户)所需的时间。
如果相机中的照片为 2-3MB,我希望以某种方式将其大小调整为大约 1-1.5MB,这意味着上传速度会快 2 倍。这可能吗?用什么技术?也许是JAVA?谢谢。
I own web photo print service, main problem is that pictures users upload are twice in size (megabytes) than those I need to print them in standard photo size. Bandwidth and disk space is not a problem, what IS a problem is time it takes to upload them (for user).
If photo from camera is 2-3MB I wish to resize them somehow in half to about 1-1.5MB, that means it will upload 2x faster. Is this possible and with what technology? JAVA maybe? Thanks.
发布评论
评论(2)
我非常确定 Flash 允许文件访问,而不需要“您想运行此不受信任的代码吗”nagbox; IIRC Facebook 有一个 Flash 照片上传器。我认为 Java 也可能支持这一点,但 Flash 更普遍一些。
I'm pretty sure Flash allows for file access without requiring a "would you like to run this untrusted code" nagbox; IIRC Facebook has a Flash photo uploader. I think Java may also support this, but Flash is a bit more ubiquitous.
但只有使用 Flash Player 10 或更高版本,才可以在将用户选择的本地数据上传到服务器之前将其加载到 Flash 中。然后可以在客户端操作图像。
but only with flash player 10 or newer, it's possible to load user selected local data into flash before uploading it to the server. the image can then be manipulated client side.