Read Stream while uploading

Thread is closed for posting
10 posts, 0 answers
  1. Charles
    Charles avatar
    32 posts
    Member since:
    Mar 2008

    Posted 02 Dec 2008 Link to this post

    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
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 05 Dec 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Charles
    Charles avatar
    32 posts
    Member since:
    Mar 2008

    Posted 22 Jan 2009 Link to this post

    Is the InputStream property only available after the whole file has been uploaded?

    Thanks
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 22 Jan 2009 Link to this post

    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.
  6. Charles
    Charles avatar
    32 posts
    Member since:
    Mar 2008

    Posted 22 Jan 2009 Link to this post

    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
  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 22 Jan 2009 Link to this post

    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.
  8. Emmanuel
    Emmanuel avatar
    10 posts
    Member since:
    Jul 2012

    Posted 09 Aug 2012 Link to this post

    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.
  9. Emmanuel
    Emmanuel avatar
    10 posts
    Member since:
    Jul 2012

    Posted 10 Aug 2012 Link to this post

    Thank you.I've a work around , read  data from the stream(line by line) and process the data.

    Thanks,
    Emmanuel.
  10. Neethu
    Neethu avatar
    1 posts
    Member since:
    Jul 2013

    Posted 19 Nov 2013 Link to this post

    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
  11. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 21 Nov 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017