Skip to content

Download Files #132

Closed
Closed

Description

@itg-assistant

Cris asked 2016-06-27 19:20:00 UTC

Hi,

How to download files into client machine using a FileStream and/or MemoryStream?

A small sample project posted here would be highly appreciated

Thanks.

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-06-27 20:38:40 UTC

    There are fundamentally two ways:

    • the first is to save to a temp file.

    • the second is to hold on the stream and send it back on a postback.

    Wisej supports both. The temp file is also automatically deleted as soon as it's downloaded. However, access to the temp file download system is not exposed and it's used internally with Application.Download(Image). Added enhancement to expose Application.Download(Stream): WJ-7380.

    To handle postbacks on any component you need to implement the IWisejHandler interface. It gives you total control on what to return and how. See attached sample app. Any component (also non visual) can implement that interface.

    HTH

    Best,

    Luca

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Cris answered 2016-06-28 13:55:46 UTC

    Hi Luca,

    It works.

    Thanks.

  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2016-06-29 07:35:32 UTC

    Hi Cris,

    Download(Stream) has been added in Wisej build 1.2.14 (as logged in WJ-7380)

    Best regards
    Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions