Hey guys, a serious problem here.. With the release of Pre-Order My Ass looming ominously in the distance everything was going well when.. "I can't get Johnson to work." When I investigated the problem I found something quite.. annoying. File size is 56.0 KB (57,344 bytes) before I upload.. once its on the server its 56.0 KB (56,950 bytes), this file size change corrupts the file making it unusable. I am stumped, and I need a solution.
PLEASE HELP
iBotModz CBox
Changing filesize when uploaded.
Started by ixGAMEOVERxixx, Sep 29 2009 02:09 PM
7 replies to this topic
#2
Posted 29 September 2009 - 02:12 PM
Possibly the Pre-order files could be stored in the exe as resources then extracted?
#3
Posted 29 September 2009 - 04:38 PM
Possibly the Pre-order files could be stored in the exe as resources then extracted?
I remember a while back I was working on a program and I tried to make an installer that takes extracts files out of an exe through the resources. But couldn't find working code for that though, so unless you can make up your own code, I can't help you with that.
And for your server thing, I would suggest putting the files into a rar or zip file and then upload them
#4
Posted 29 September 2009 - 04:39 PM
Why don't you add 606 bytes to the Johnson file, up it and see if it changes still. If it doesn't the server's minimum size is 56,950. If not just use delete the bytes after it is downloaded with a FileStream.
#5
Posted 30 September 2009 - 10:38 AM
Yung, there is no min size, I can upload 0kb files...
Lost, please find me that code.. That is exactly what I need, please find it for me <3
And my ICT teacher says maybe the file has encryption that corrupts the file when uploaded.
Lost, please find me that code.. That is exactly what I need, please find it for me <3
And my ICT teacher says maybe the file has encryption that corrupts the file when uploaded.
- l337 modder likes this
#6
Posted 30 September 2009 - 02:36 PM
Rename the file to a .txt extension and try.
#8
Posted 06 October 2009 - 02:54 AM
Upload as binary
Thank you