Questions tagged [transmitfile]
36 questions
8
votes
7 answers
Response.TransmitFile Not downloading, and throwing no Errors
I'm currently using a HttpResponse to download files from my Server. I already have a couple functions being used to download Excel/Word files, but I'm having trouble getting my simple Text file (.txt) to download.
With the text file I'm basically…

Lando
- 2,288
- 8
- 33
- 46
8
votes
2 answers
C# Response.WriteFile vs Response.TransmitFile filesize issues
I have a 5Mb pdf on the server dowloading this file using a writeFile gives me a 15Mb download, where as the transmitfile gives the correct 5Mb filesize...
Is this due to some sort of uncompression into memory on the server for the writeFile? Just…

Pottman
- 81
- 1
- 1
- 2
5
votes
4 answers
WriteFile vs TransmitFile for large files that need to be deleted from the server after transfer
I have to trigger user downloads of large files to a webbrowser, where I create the file to transfer on the server, then delete it immediately afterwards. I've found enough examples to see that I should probably use Response.TransmitFile or…

tbischel
- 6,337
- 11
- 51
- 73
4
votes
1 answer
TransmitFile yielding a corrupt files with wrong filesize
I have the following method available to download a file when a page is visited. The issue have is that it seems to yield files with added bytes back, that based on the type of file can make it corrupt. I have the following method:
Public Class…

NotFound
- 5,005
- 2
- 13
- 33
4
votes
1 answer
sendfile() / TransmitFile() with encryption/decryption
How do I get the benefit of sendfile() (on Linux) and TransmitFile() (on Windows) if I also want to use encryption? Are there any Linux kernel modules or Windows drivers that provide this functionality? The only thing I've found this far is an…

Display Name
- 2,323
- 1
- 26
- 45
4
votes
1 answer
How would one transfer files larger than 2,147,483,646 bytes (~2 GiB) with Win32 TransmitFile()?
Quoted from MSDN entry for TransmitFile:
The maximum number of bytes that can be transmitted using a single call to the TransmitFile function is 2,147,483,646, the maximum value for a 32-bit integer minus 1. The maximum number of bytes to send in a…

elmov
- 286
- 1
- 11
3
votes
1 answer
Response TransmitFile
I have the following code delivering a file to users when they click on a download link. For security purposes I can't just link directly to the file so this was set up to decode the url and transmit the file.
It has been working fine for a while…

geoff
- 51
- 1
- 3
3
votes
1 answer
TransmitFile missing single byte off end of file
Passed parameters are:
`C:\Licenses\testfolder\PERSONAL-Wednesday 04 July-0405.txt`,`c2license.txt`
And the function is:
///
/// Starts serving the download
///
public static void InitStoreDownload(string filePath, string…

Tom Gullen
- 61,249
- 84
- 283
- 456
2
votes
2 answers
Trouble with Response.WriteFile / Response.BinaryWrite / Response.TransmitFile (ASP.NET)
I've got a simple web-page that generates a CSV file that I want the user to be able to download once its creation is complete.
Here's a summary of my situation:
The CSV file can be created in-memory or on disk. Doesn't matter to me.
Once I'm done…

mbm29414
- 11,558
- 6
- 56
- 87
2
votes
1 answer
Transmit commands in ASCII format STM32
I'm using STM32 discovery board to communicate to a device that takes ASCII commands.
I use HAL_UART_TRANSMIT_IT to send data, that works fine.
I want to send ASCII command XM3 to the device. When I use virtual port programs as realterm, I just…

hussik
- 35
- 1
- 6
2
votes
7 answers
Response.TransmitFile() with UNC share (ASP.NET)
In the comments of this page:
http://msdn.microsoft.com/en-us/library/12s31dhy%28v=VS.90%29.aspx
..it says that TransmitFile() cannot be used with UNC shares. As far as I can tell, this is the case; I get this error in Event Log when I attempt…

frankadelic
- 20,543
- 37
- 111
- 164
2
votes
0 answers
XMPPFrameWork TurnSocket can be used?
The XMPPFrameWork TurnSocket can be use?? I want to use the TurnSocket to transmit file,but failed, the call back math run into "- (void)turnSocketDidFail:(TURNSocket *)sender" every time. but i can use the ejabberd server to transmit file by iChat…

Blue Rain
- 21
- 3
2
votes
3 answers
How to determine if file has downloaded?
I have the following code that allows a user to download a file. I need to know (if possible) if they downloaded the file successfully. Is there any kind of callback that I can tie into to know whether or not they were successful in downloading…

geoff
- 119
- 1
- 4
- 13
2
votes
1 answer
Running code upon Response.TransmitFile completion
I'm using Response.TransmitFile to retrieve a file from a web service. I'd like to measure the amount of time this process takes from the server's perspective.
I've tried grabbing the tick count before and after this call, but that clearly didn't…

Matthew Cole
- 1,329
- 2
- 18
- 30
1
vote
4 answers
ASP.Net Transmit File
I am writing a webapplication in ASP.net.
I am trying to make a file dialog box appear for downloading something off the server.
I have the appropriate file data stored in a variable called file.
File has fields:
FileType - The MIMEType of the…

wanderingloki
- 65
- 1
- 4