Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Document files and JPG files larger on sharepoint than they ought to be

$
0
0

Documents that I've uploaded to sharepoint (documents meaning anything that is file.doc / file.docx) seem to be nearly twice as large as they should be in most cases. I'm pretty sure that uploading the document to sharepoint mysteriously adds something along the lines of 10-15KB on top of what is already there (For smaller, one page documents).

The same problem occurs to a lesser extent with jpg/jpeg files, where the image is marginally larger than it would be on a local hard drive. A 5kb image, for example, might be more like 5.3kb on sharepoint. Normally I would expect some form of compression to occur, and I would expect to see the filesize shrink a bit. I can't imaging what is causing the filesize to go up this way.

I'm assuming there is some kind of strange versioning or underlying data being added behind the scenes, but I was curious as to why the file sizes are much larger on sharepoint than on a local hard drive.

For reference, I am simply uploading the file programatically by sending the byte array to the file itself. I'm not doing anything complicated, really. Nothing I would expect to cause the file to be larger, at least.

It may also be worth mentioning that I re-downloaded the file and compared it with the original, and other than the random size difference, they are 100% identical.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>