sending binary data to server... using NSData?

Discussion in 'Mac Programming' started by OldGit, Feb 24, 2009.

  1. OldGit macrumors newbie

    Feb 2, 2009
    I wish to send and receive binary data to a server via POST.

    Somehow I need to send two integers (8 bytes), the server then returns binary records which I need to capture.

    I have been looking into NSData, the documentation appears to suggest it can receive binary data from a URL with the method "dataWithContentsOfURL" ...

    But the only method I see for sending is "writeToURL:atomically:" but the documentation then says "at present only file:// URLs are supported".

    Am I barking up the wrong tree with NSData?
  2. kainjow Moderator emeritus


    Jun 15, 2000

Share This Page