Click here to Skip to main content
11,805,035 members (66,346 online)
Rate this: bad
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 at 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
0 OriginalGriff 305
1 Sergey Alexandrovich Kryukov 268
2 CPallini 210
3 Richard Deeming 190
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web03 | 2.8.151002.1 | Last Updated 9 May 2011
Copyright © CodeProject, 1999-2015
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