Hello twsocket,

I'm trying to make the http server save binary files. I was able do do
it, but they are wrapped into headers:

-----------------------------54472172614771
Content-Disposition: form-data; name="file"; filename="IBM_286.rar"
Content-Type: application/octet-stream

Rar!W+%~бяо+¤^?юLъ2¦ю--P-?+жOHOL--жP¦дC\iji¦л#Njr`mQcjo#A80 !O¤-¬є¦СББ-TБСTЙ-
....................
ipa¬ ^-ЁгїД1Й¬*жлЧЁOLЕ6aй*\¬M?¦+tHЧTbлЎч>,T¬ЬLю-НL¬й№¦+ч°Э·¤)¦zO2YWR¦@
-----------------------------54472172614771
Content-Disposition: form-data; name="Submit"

Submit
-----------------------------54472172614771--


The question is, how to get rid of this header and footer safely. Is
it enough just to delete first 4 lines and last 5 lines or it should
be done some other way? Maybe there is a function to convert this raw
output to a normal file? Please advise. Thanks.


-- 
Best regards,
 tol
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to