This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Transmits the contents of the file to specified stream.

Namespace: Smartsite.Web
Assembly:  Smartsite.Web (in Smartsite.Web.dll)

Syntax

C#Copy imageCopy Code
public static void TransmitFile(
	 file,
	 stream
)
Visual Basic (Declaration)Copy imageCopy Code
Public Shared Sub TransmitFile ( _
	file As , _
	stream As  _
)

Parameters

file
FileInfo
The file.
stream
Stream
The stream.

Remarks

This helper is used for transmitting files to the output response stream in ASP.NET. Appearantly the Reponse.TransmitFile doesn't work in all cases. Somehow ASP.NET seems to be unaware of the fact that this method has been used and sends 0 bytes back to the client. This function does work in all cases, but might be less performing.

See Also

Utility Class
Smartsite.Web Namespace
Advanced