473,503 Members | 3,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Upload a file and stream it

Hello, I need to do the following
1) give a click button on my aspx page where the user can find a file
on the hard drive
2) in my code read that file like a stream and then display it back to
the user
3) display that back to the user in a datagrid.

Can you tell me how to do this?

Woudl it be easier to replace 1) with this new 1)
1) allow a user to drag a file on to my aspx page
2) same as above
3) same as above

thank you

Nov 19 '05 #1
1 842
23s
I would think you could just put a Web.UI.HtmlControls.HtmlInputFile into
your form, and then when the page posts back, check the Web.HttpPostedFile
collection:

Request.Files(n)

Each HttpPostedFile object has an InputStream property. If you find a file
in the collection, do whatever voodoo you want to do with the file data &
the datagrid.

<bl*****@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Hello, I need to do the following
1) give a click button on my aspx page where the user can find a file
on the hard drive
2) in my code read that file like a stream and then display it back to
the user
3) display that back to the user in a datagrid.

Can you tell me how to do this?

Woudl it be easier to replace 1) with this new 1)
1) allow a user to drag a file on to my aspx page
2) same as above
3) same as above

thank you

Nov 19 '05 #2

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

Similar topics

1
9448
by: SevDer | last post by:
Hi, I am trying to write a simple application which copies the predefined files (hardcoded in the code) to my ftp server. I couldn't make it working. I don't want to use any 3rd party...
5
103451
by: John Lee | last post by:
Hi, I have a simple web page that allow file to be uploaded, the upload page looks like the following: <form method="post" name="upload" enctype="multipart/form-data"...
15
1759
by: Asshen Shugar | last post by:
Hey. I was experimenting with file uploading possibility using ASP.NET. I ran into a problem :( I can upload small files, but if I try a bigger file it doesn't work... Anyone who can help...
5
737
by: Neo | last post by:
Hello, I am receiving a file as a binary stream from a C++ Client Application. >From the application, the file is being sent as a "Multipart/form-data". I want to receive this file on the...
18
4316
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
0
9765
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
9
3875
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This...
0
2465
by: prasenjit2007 | last post by:
I have a main form for inputing the (to/from/mesg/file) with the following code:- <html> <body> <table> <tr> <td>To:</td> <td><input type="text" name="to" size="50" ...
0
2006
by: poojamangal | last post by:
I want to upload images or pdf files. but i m unable to do so. i got error. please help me to sort it out.. my code is: <% 'on error resume next Class FreeASPUpload Public UploadedFiles...
14
3057
by: BigZero | last post by:
Hello, can nay body tell me how upload works? "well the code that i m using works fine with me i mean that the file uploadin is working but i m unable to find how it internal it works"? when...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7261
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
7315
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...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.