Brockmann: "Creating Rich Web
Applications Gets a Ton Easier"

e-grou chooses Visual WebGui
over standard ASP.NET

Quick migration of VB 6.0
Applications to the Web

Fully functional software versions
for 30 days evaluation period

Download the free edition of the
Visual WebGui Studio
 

Code Snippets

rdhatch posted on March 24, 2009 :: 882 views

Hi Guys,

I've created a very easy control to send Files down to the browser.  Supports both Files & Streams.

Hope you find it helpful!

Ryan D. Hatch

ryan [dot] hatch [at sign] konect [dot] com

 

    Usage:
    Dim myDownload As New FileDownloadGateway()
    myDownload.Filename = "myDocument.doc"
    myDownload.SetContentType(ContentType.OctetStream)

    myDownload.StartFileDownload(Me, "C:\File.doc")
    OR USE:
    Dim myStream As New FileStream("C:\File.doc", FileMode.Open)
    myStream.Position = 0
    myDownload.StartStreamDownload(Me, myStream)

 

Download Code

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Post Rating

Comments

# rudicronje
Hi Ryan,

Please repost, download code link points to a picture.

thanks,
Rudi
Posted by rudicronje on Wednesday, May 20, 2009 1:55 PM
# rdhatch
Hi Rudi -

That's odd. Please find this same code, available in this thread here:

File Download Gateway code

Hope this helps!

Ryan
Posted by rdhatch on Thursday, May 21, 2009 2:12 AM
# winanjaya
Do you have C# version for this?
Posted by winanjaya on Wednesday, October 14, 2009 9:29 PM

Post Comment

Only registered users may post comments.
Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners