NSInputStream
is an Objective-C objective-c class on iOS ios,
a subclass of NSStream
nsstream that provides read-only stream functionality. NSInputStream
is “toll-free bridged” with its Core Foundation counterpart, CFReadStreamRef
.
Questions tagged [nsinputstream]
150 questions
4
votes
0 answers
NSInputStream's NSStreamEventHasBytesAvailable never gets called
I am creating an app similar to WiTap (but to connect many devices) and here is my problem: The application seems to connect the devices (they are displayed in table view controller. The delegate of NSInput/OutputStream says both streams are opened…

ipek
- 41
- 4
4
votes
2 answers
Using NSXMLParser initWithStream: no parser delegate methods received
The basic problem I'm working on is using the NSStream classes to parse incoming incremental XML data. The data is never a complete XML Document, but I want to receive and process it in incremental chunks based off how much ever the socket can…

John Drake
- 183
- 1
- 8
3
votes
1 answer
NSInputStream wrapper to read strings by specified delimiter
I am porting a java client to the iphone and i have been wondering if there is a wrapper around NSInputStream to read strings from a stream stopping at a specified delimiter? I am thinking of something like Javas Scanner class…

Emil Sjölander
- 1,773
- 4
- 19
- 27
3
votes
0 answers
Can MpMoviePlayer get it's data from an NSInputStream
I have an iPad app which has a network connection from another iPad. On the client iPad, I want to be able to take data from a NSInputStream (which comes from the server iPad), and play it in MpMoviePlayer as it downloads from the server iPad.
I…

MrFurious
- 71
- 6
3
votes
1 answer
Tunneling web requests on iPhones
I want to know if it is possible to tunnel web requests, and of course what to use/implement.
I have already written subclasses of NSInputStream and NSOutputStream to send & receive data via my custom proxy server, which is working wonderfully for…

Pada
- 646
- 5
- 13
3
votes
3 answers
iOS : NSInputStream / NSOutputStream - CFNetwork SSLHandshake failed (-9806)
I'm trying to open an input/output stream to a secure server but keep getting CFNetwork SSLHandshake failed (-9806)
I have set the plist values for exception domains etc
NSAppTransportSecurity
NSExceptionDomains
…

Zigglzworth
- 6,645
- 9
- 68
- 107
3
votes
3 answers
NSInputStream getBuffer: length: doesn't work?
I really would like to use the getBuffer:length: method of an NSInputStream.
After a lot of research i couldn't find a valid example that uses this method, because most people really needed read: maxLength:.
So now some facts on the surroundings:
*…

m Jae
- 725
- 2
- 8
- 20
3
votes
1 answer
NSInputStream from PHAsset url - iOS photos framework
I am trying to create an NSInputStream from the AVURLAsset url for a video file (or a photo from PHAsset url) from photos framework. My code goes as following
mAsset = [NSInputStream inputStreamWithFileAtPath:[murl path]];
[mAsset open];
the url is…

bir433
- 61
- 5
3
votes
1 answer
Scheduling stream on NSRunLoop
I have been following this tutorial http://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server and I got everything working ok, but there is one line in text that I don't understand:
Our streams…

MegaManX
- 8,766
- 12
- 51
- 83
3
votes
1 answer
Objective-C Download a Smooth Streaming Video
I am wondering if there is a way with Objective-C to download a mp4 video that is setup to stream in a Smooth Streaming format. So far I have tried AFNetworking, NSInputStream, and MPMoviePlayerController to try and access the raw video data, but…

AgnosticDev
- 1,843
- 2
- 20
- 36
3
votes
1 answer
Streaming JPEGs, detect end of JPEG
I have created a java server, which takes screenshots, resizes them, and sends them over TCP/IP to my iPhone application. The application then uses NSInputStream to collect the incoming image data, create an NSMutableData instance with the byte…

James
- 2,272
- 1
- 21
- 31
3
votes
1 answer
How to get the data of type stream from web service
I want to read the stream data from server with corresponding URLs, currently i am trying with NSInputStream for reading the data , But i am getting the error "Error 2 The operation couldn’t be completed. No such file or directory". The web…

iShwar
- 1,625
- 1
- 16
- 31
3
votes
0 answers
Parse: How to use PFFile getDataStreamInBackgroundWithBlock efficiently
I am using Parse's getDataStreamInBackgroundWithBlock method to download a large file and save it locally.
How can I to process the stream to store the data in a file?
Is this possible without using NSInputStream delegate methods…

AlexR
- 5,514
- 9
- 75
- 130
3
votes
3 answers
Upload video to FTP from iDevice
I am working on an APP for user to upload videos to our FTP server
So far, everything almost done but I met one issue is that after users upload videos(.MOV), I failed to open and play the files.
The error message that quicktime player returns is…

Fishman
- 73
- 6
2
votes
1 answer
Do the stream classes in Cocoa support seeking?
I need a Cocoa class that can read and write from a memory stream and that supports seeking. In C#, MemoryStream supports the method seek, and in Java, ByteArrayInputStream supports the methods mark, skip, and reset.
In iOS development, what are the…

Lopper
- 3,499
- 7
- 38
- 57