Shan: You have the raw http request. All you need to do is filter away the headers, then you're left with the uploaded file. Look some more at the code, and I'm sure you'll agree, that this is no problem at all. regards, Rasmus
Hi, Is anyone out there with the solution for 'filtering Http Headers'. Like following junk here -----------------------------7d327122b0224 Content-Disposition: form-data; name="__VIEWSTATE" dDwtMTI3OTMzNDM4NDs7Ppg0hIHAIt5o+GJ8PugQQtOjF3TU -----------------------------7d327122b0224
Content-Disposition: form-data; name="file"; filename="C:\Test.txt" Content-Type: text/plain Test here.... -----------------------------7d327122b0224 Content-Disposition: form-data; name="Submit1" Submit -----------------------------7d327122b0224-- Waiting
for your reply ya. Thanks, MaduraiKaran
I've only briefly looked over this article, but it looks like it could be applied to your application: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service11052002.asp
Cyberflote, Thats not gonna help. All i want is filterin out the header from uploaded file. U know that header corrupt the uploaded files. Thanks, MaduraiKaran.
What the code I posted does is retrieve the raw HTTP request. I didn't provide a 100% perfectly clean solution because of 2 reasons: I don't have time, and you have to do something! If you feel that you can just copy others' code and be done with it, you should
purchase a 3rd party component instead. Ok, pay attention. The raw HTTP request must be parsed. It is extremely simple. Just location the request header that represents the field describing the file being uploaded. The content portion of the header contains
the raw file data. Only that raw file data should actually be written to disk. It is a tivial task to parse HTTP headers. CodeRage!
I have to agree with CodeRage This culprit of this problem has been solved, and CodeRage has demonstrated the ideas from our discussions. There is a reason why this is categorised as an advanced discussion - what you're left with is trivial, and you should
be able to find lots of examples on parsing http requests - if it isn't already obvious. regards, Rasmus
CodeRage/Rasmus, I too agree with you guys'. I tried soo many ways to get just binary data from 'Raw data'; No luck. Is anyone outthere with any solution for this. That will be great... Let me know. With Rgds, MaduraiKaran...
CodeRage/Rasmus, I too with you guys. I tried soo many ways to get just binary data from 'Raw data'; No luck. Is anyone outthere with any solution for this. That will be great... Let me know. With Rgds, MaduraiKaran...
ups101
Member
205 Points
41 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 06, 2003 01:40 PM|LINK
MaduriKaran
Member
40 Points
8 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 06, 2003 07:41 PM|LINK
Cyberfloatie
Member
102 Points
29 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 06, 2003 07:50 PM|LINK
MaduriKaran
Member
40 Points
8 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 06, 2003 08:31 PM|LINK
MaduriKaran
Member
40 Points
8 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 07, 2003 02:43 PM|LINK
i388
Member
15 Points
3 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 07, 2003 10:09 PM|LINK
CodeRage
Member
15 Points
3 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 07, 2003 10:44 PM|LINK
ups101
Member
205 Points
41 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 08, 2003 09:10 AM|LINK
MaduriKaran
Member
40 Points
8 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 09, 2003 03:55 PM|LINK
MaduriKaran
Member
40 Points
8 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Jan 09, 2003 04:35 PM|LINK