Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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.
Posted 9-May-11 1:30am
Comments
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
good
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.
 
—SA
  Permalink  
v2

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



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