473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Upload and direct Processing of uploaded file using HtmlInputFile object

Try to upload a file and process or parse it directly without having to save
to the hard disk first and then being able to parse it. Currently I'm having
to upload a file using the HtmlInputFile object and then save it to the hard
disk, reopen it using the File.OpenText then do processing and resave it!

Any one have any ideas or references?
Nov 18 '05 #1
3 1351
Maybe you could use the HttpPostedFile.InputStream property to load the
content into a StreamReader.
"Long Le" <le******@msn.com> wrote in message
news:e0*************@TK2MSFTNGP12.phx.gbl...
Try to upload a file and process or parse it directly without having to save to the hard disk first and then being able to parse it. Currently I'm having to upload a file using the HtmlInputFile object and then save it to the hard disk, reopen it using the File.OpenText then do processing and resave it!

Any one have any ideas or references?

Nov 18 '05 #2
Hi

http://www.howtodothings.com/showart...sp?article=682

This article accepts an image as an upload, and then takes the image data
directly from the upload, resizes, converts to JPG, and then finally saves
it to disk.

It demonstrates how to get the uploaded data without saving it first.
--
Pete
====
Audio compression components, DIB graphics controls, FastStrings
http://www.droopyeyes.com

Read or write articles on just about anything
http://www.HowToDoThings.com
Nov 18 '05 #3
Thanks guys for all the help! I found an example of what I needed heres the
article just for reference sake...
http://sourceforge.net/mailarchive/m...msg_id=5974244

"Long Le" <le******@msn.com> wrote in message
news:e0*************@TK2MSFTNGP12.phx.gbl...
Try to upload a file and process or parse it directly without having to save to the hard disk first and then being able to parse it. Currently I'm having to upload a file using the HtmlInputFile object and then save it to the hard disk, reopen it using the File.OpenText then do processing and resave it!

Any one have any ideas or references?

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
5
by: Ariel Dolan | last post by:
Can I use HtmlInputFile to only get the selected file name but not actually upload the file? Clicking the control's Browse button let's the user select a file. All I need is the HtmlInputFile...
1
by: TK | last post by:
I have a file upload control to allow a user to select/upload a file to the server. They need to upload x number of files in one shot because they have to confirm that they are uploading x number...
8
by: Braky Wacky | last post by:
Hello, I have an ASP.NET webpage that uses an instance of System.Web.UI.HtmlControls.HtmlInputFile for uploading files to our server. I came across the documentation at MSDN for upping the...
0
by: Benjamin Bittner | last post by:
Hallo NG, ive searched a lot in some google groups, and found many threads, but nothing that helped me. Here is the scenario: I have an aspx page which loads a user control in page.onInit like...
1
by: BW | last post by:
I am creating an upload/download function for an extranet site. Files will be uploaded to directory based upon the users login and associated project. The function works as long as I use "c:\Temp"...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
8
by: Cristian | last post by:
Hi. I've developer on my web page a uploader files sytem, but I can't find a solution for looking the file size before the upload. Please some help!! Bye Franc
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.