File uploading

This is a discussion on File uploading within the C# Programming forums, part of the General Programming Boards category; Hi! i have to upload a ms access database file to the server from my client program. The server program ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    386

    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
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    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
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    386
    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.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  4. #4
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,655
    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, 05:36 AM
  2. Uploading exe's
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 05-20-2005, 09:42 PM
  3. uploading file using ftp
    By Jasonymk in forum Networking/Device Communication
    Replies: 1
    Last Post: 08-17-2003, 08:34 PM
  4. FTP Uploading
    By Rodrigo in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2003, 02:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21