Is it possible to upload a file to server without converting it into NSData?

Viewed 473
2 Answers

Networks are analogue and computer and devices are digital they not understand what is what for them all the things are digital data so I guess now you understand its simply not possible, If you are having any specific problem of converting your file into data and the getting them back, you can go ahead

The data on a network always flows in Bytes irrespective of any platform.. NSData will finally be converted to bytes data before sending it over network.. On higher level your data should be in NSData format but on lower level its on Bytes.. So in ios it will be either Bytes of Data (if you are using NSInputstream to upload data) or NSData (which will finally converted to Bytes again and sent over the Network)

Related