Click here to Skip to main content
13,089,246 members (65,500 online)
Rate this:
Please Sign up or sign in to vote.

We have recently build one application in 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.
Posted 9-May-11 0:30am
S Mewara 9-May-11 6:52am
It would be good if you edit the question and share the code snippet related.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 9 May 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100