Click here to Skip to main content
10,500,000 members (77,537 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 1: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 Sergey Alexandrovich Kryukov 489
1 OriginalGriff 328
2 Mehdi Gholam 145
3 Sascha Lefèvre 135
4 KarstenK 115
0 Sergey Alexandrovich Kryukov 9,308
1 OriginalGriff 8,352
2 Sascha Lefèvre 3,334
3 Maciej Los 2,956
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web01 | 2.8.150520.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