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
long pos = MoveToNextBoundary();
always send pos=-1
am I sending stream wrong?
this is my content of my stream I send to this class (which converted it to string):
Content-Disposition: form-data; name="myfile"; filename="cars_hdwallpaper_chevrolet-camaro-indianapolis-500-pace-car_89629.jpg"
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