You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to upload stream without creating NSData (like Alamofire/AFNetworking)
because uploading very large file(like long movie file) will cause crash by memory problem.
I tried to create custom RequestBodyBuilder but buildBodyFromObject return NSData...
Please tell me how to fix this problem on APIKit 1 or 2?
The text was updated successfully, but these errors were encountered:
ecoopnet
changed the title
Support uploading streams
Uploading streams
Mar 23, 2016
APIKit 2 supports both NSData and NSInputStream, but APIKit 1 supports NSData only.
On APIKit 2, RequestBodyBuilder enumeration is converted to BodyParametersType protocol, which returns RequestBodyEntity. Since RequestBodyEntity can represents NSInputStream, your custom body parameters can return NSInputStream.
I want to upload stream without creating NSData (like Alamofire/AFNetworking)
because uploading very large file(like long movie file) will cause crash by memory problem.
I tried to create custom RequestBodyBuilder but buildBodyFromObject return NSData...
Please tell me how to fix this problem on APIKit 1 or 2?
The text was updated successfully, but these errors were encountered: