Jump to content

  •  

  • iBotModz CBox


    Photo

    Changing filesize when uploaded.


    • Please log in to reply
    7 replies to this topic

    #1 ixGAMEOVERxixx

    ixGAMEOVERxixx

      Private Grade 2

    • VIP

    • 478 posts
    • Joined: 27-October 08
    • Gender:Not Telling
    • Location:Custom Games

    Posted 29 September 2009 - 02:09 PM

    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

    #2 ixGAMEOVERxixx

    ixGAMEOVERxixx

      Private Grade 2

    • VIP

    • 478 posts
    • Joined: 27-October 08
    • Gender:Not Telling
    • Location:Custom Games

    Posted 29 September 2009 - 02:12 PM

    Possibly the Pre-order files could be stored in the exe as resources then extracted?

    #3 lostmodz26

    lostmodz26

      I am lostmodz26.

    • VIP

    • 1,153 posts
    • Joined: 12-March 09
    • Gender:Male
    • Location:Northern Louisiana

    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 :thumbsup:

    #4 yungbol

    yungbol

      Firmware Expert

    • Global Mods

    • 1,461 posts
    • Joined: 09-April 08
    • Gender:Male
    • Location:Philly

    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 ixGAMEOVERxixx

    ixGAMEOVERxixx

      Private Grade 2

    • VIP

    • 478 posts
    • Joined: 27-October 08
    • Gender:Not Telling
    • Location:Custom Games

    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.

    #6 yungbol

    yungbol

      Firmware Expert

    • Global Mods

    • 1,461 posts
    • Joined: 09-April 08
    • Gender:Male
    • Location:Philly

    Posted 30 September 2009 - 02:36 PM

    Rename the file to a .txt extension and try.

    #7 l337 modder

    l337 modder

      Recruit

    • Members

    • 1 posts
    • Joined: 06-October 09

    Posted 06 October 2009 - 02:52 AM

    Upload as binary

    #8 ixGAMEOVERxixx

    ixGAMEOVERxixx

      Private Grade 2

    • VIP

    • 478 posts
    • Joined: 27-October 08
    • Gender:Not Telling
    • Location:Custom Games

    Posted 06 October 2009 - 02:54 AM

    Upload as binary


    Thank you