This is a migrated thread and some comments may be shown as answers.

Read Stream while uploading

9 Answers 139 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 02 Dec 2008, 06:00 PM
Hi,

We are implementing a system where a user can upload files over HTTP (using Telerik RadUpload) and the files being stored on a third party system (such as Amazon Cloud). We could simply connect to the service after the file has uploaded and save the file on the cloud, however we dont want the user to have to wait for this to happen.

A more efficient solution would be to transfer the data as the file is being transmitted from their browser.

I have access to the source code for the RadUploadHttpModule, but I am unable to find or gain access to the stream where the file is being appended to.

Thanks

9 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 05 Dec 2008, 02:48 PM
Hi Charles,

Have you tried using the InputStream property of the uploaded file object?
I believe it would help.

Greetings,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Charles
Top achievements
Rank 1
answered on 22 Jan 2009, 10:34 AM
Is the InputStream property only available after the whole file has been uploaded?

Thanks
0
Atanas Korchev
Telerik team
answered on 22 Jan 2009, 11:05 AM
Hello Charles,

Yes. Actually the server-side code of the page is executed after all files have been uploaded.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Charles
Top achievements
Rank 1
answered on 22 Jan 2009, 11:24 AM
This is not what we need.

If you read the original message, what I am trying to do is get access to the stream of the file WHILE it is uploading - not after it has been uploaded.

We have the full source code of the upload module, is it accessible from that?

Thanks
0
Atanas Korchev
Telerik team
answered on 22 Jan 2009, 12:55 PM
Hello Charles,

You can check the ProgressWorkerRequest class form the source code. However have in mind that we don't support any modifications to the source code.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Emmanuel
Top achievements
Rank 1
answered on 09 Aug 2012, 09:58 PM
we using telerik RadUpload control for uploading excel files to sever path. In one of our scenarios we don't want upload the file to a server path but we need to read the data into a datatable with the help of inputstream and the process the data.  Is there a way to read the data from InputStream into a datatable.

Any ideas!!

Thanks,
Emmanuel.
0
Emmanuel
Top achievements
Rank 1
answered on 10 Aug 2012, 05:36 PM
Thank you.I've a work around , read  data from the stream(line by line) and process the data.

Thanks,
Emmanuel.
0
Neethu
Top achievements
Rank 1
answered on 19 Nov 2013, 06:56 AM
Can you provide me a sample code snippet for reading the data from an excel file by importing using stream reader line by line. This is an urgent requirement. Please give me any solution.

Regards,
Neethu
0
Hristo Valyavicharski
Telerik team
answered on 21 Nov 2013, 03:31 PM
Hi Neethu,

Are you looking for a way to upload files to Amazon or Azure? If so then take a look at the new RadCloudUpload control. It is designed to upload files to Amazon S3, Azure Blob Storage and Everlive - Telerik's Cloud Service Platform.

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Upload (Obsolete)
Asked by
Charles
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Charles
Top achievements
Rank 1
Atanas Korchev
Telerik team
Emmanuel
Top achievements
Rank 1
Neethu
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Share this question
or