I use the AFNETWORKing write a iOS client to send the *.jpeg from iOS device. Now,I can receive the stream from the ios. If I save this stream to a jpeg file, it cannot be opened. I use the notepad++ open it and find this not all the stream is jpeg data.
its header likes this:
--Boundary+3064FAAD3A74E02F
Content-Disposition: form-data; name="file"; filename="test.jpg"
Content-Type: image/jpeg
----others code
how can I save this stream?