multipart cant find file length

Nov 28, 2013 at 6:53 AM
Edited Nov 28, 2013 at 6:55 AM
I used HttpMultiPart.cs and StrUtils.cs classes in my webserver

when I pass my boundary content from array of bytes in buffer in HttpMultiPart - ReadNextElement() method cant find end of file position in stream and
Inline Code
long pos = MoveToNextBoundary();
always send pos=-1
why?
am I sending stream wrong?
this is my content of my stream I send to this class (which converted it to string):

---------------------------33932049919306
Content-Disposition: form-data; name="myfile"; filename="cars_hdwallpaper_chevrolet-camaro-indianapolis-500-pace-car_89629.jpg"
Content-Type: image/jpeg

????

what is wrong?
I think class cant find next boundary element and read stream to end and return -1
I'm so confused.
please help me