Thread: File uploading

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    File uploading

    Hi!

    i have to upload a ms access database file to the server from my client program. The server program should connect to this database and read the data. What's the easiest way to upload the file? Is it FTP? i tried sockets, but it only allows like 9kb of data transfer capacity.


    Thanks for any help
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    If you connected your two programs via sockets and you only got 9k, then you will not be any faster with other methods. Sockets are the base for any transmission. However, 9k seems awfully slow, maybe you can post an example to check if there were any other side effects. Did you try to upload something else to the server? How long did it take to upload your software ("the server") last time?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470
    Quote Originally Posted by nvoigt View Post
    If you connected your two programs via sockets and you only got 9k, then you will not be any faster with other methods. Sockets are the base for any transmission. However, 9k seems awfully slow, maybe you can post an example to check if there were any other side effects. Did you try to upload something else to the server? How long did it take to upload your software ("the server") last time?
    sorry, what i meant was that the server only receive likes 8-9kb's of the 12kb of file. The file was sent as truncated text file. My uploading bandwidth is ok. i tried increasing the size of SendBufferSize and ReceiveBufferSize properties of the sockets both at server and client, but still the server received the same file size. i have used the typical server-client socket communication code.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    If you implemented the server side of this yourself, I would suggest your reading logic on that side is incorrect.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. uploading file to http server via multipart form data
    By Dynamo in forum C++ Programming
    Replies: 1
    Last Post: 09-03-2008, 04:36 AM
  2. Uploading exe's
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 05-20-2005, 08:42 PM
  3. uploading file using ftp
    By Jasonymk in forum Networking/Device Communication
    Replies: 1
    Last Post: 08-17-2003, 07:34 PM
  4. FTP Uploading
    By Rodrigo in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2003, 01:54 PM