Windows 2008 64位服务器上的图像大小增加了3倍 [英] Image size increases 3 times on windows 2008 64 bit server

查看:78
本文介绍了Windows 2008 64位服务器上的图像大小增加了3倍的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们最近在ASP.net 2008中使用SQL 2008构建了一个用于管理图像的应用程序.用户可以通过应用程序上传图像,其他人可以从给定的界面下载图像.我们已经使用普通的system.drawing在服务器上上传图像.

之前,此应用程序托管在32位服务器上,并且工作正常.但现在,它已在64位Windows 2008服务器上重新托管.

现在,当通过应用程序上载图像(10MB)之后,当我们通过应用程序下载相同图像时,它会使图像大小增加3倍.例如如果您上传10mb的图片,则下载该图片时将变为30MB.奇怪的是,如果检查服务器上的图像大小,将发现10MB等于原始大小.

谢谢您的帮助.

Hi,

We have recently build one application in ASP.net 2008 with SQL 2008 for managing images. User can upload images through application and others can download the same from given interface. We have used normal system.drawing for uploading images on the server.

Earlier this appliation was hosted on 32 bit server and working fine. But now it is rehosted on 64 bit windows 2008 server.

Now after uploading image (10MB) through application when we download the same image through application it increases the image size by 3 times. e.g. if you upload image of 10mb, that will become 30MB when you download the same. Strange part is that if you check the image size on server, you will find 10MB equals to the original.

Thanks for your help.

推荐答案

唯一的大小随引用64位体系结构的端口而增加两倍.所有System.IntPtr变量的大小为64位.由于结构构件的对齐,可能会损失一些空间.由于您的代码不能完全由指针,引用或引用组成,因此图像应增加..嗯,少于两次.

只是令人回味.

—SA
The only size which increases two times with the port to 64-bit architecture is the size of reference and pointer. The size of all System.IntPtr variable will be 64 bits. Some space can be lost due to alignment of structure members. As all you code cannot consist entirely or pointers or references, you image should increase.., well, less than twice.

Just a food for thought.

—SA


这篇关于Windows 2008 64位服务器上的图像大小增加了3倍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆