sendfile is the general function representation of sending data/file over the network. The network may be raw tcp sockets or any other connection itself. This tag should be used for querying about such file sending methods defined in different web/(android etc.) frameworks
Questions tagged [sendfile]
279 questions
-1
votes
1 answer
Having trouble with the node express API
I've tried this tutorial on how to set up a localhost, and some code worked, some didn't. But currently I am receiving strange experience with it:
Below in the code at res.sendfile it's important to mention that the terminal comments this command as…
user9144436
-1
votes
1 answer
How to asynchronously load the pdf file while previewing?
I am using pdfjs to preview the file and for path file i am using send_file as there is a restriction of having files in public folder. But its taking so much time to load it in the browser due to send_file. Is there any way to load that file…

shilpi_agrawal
- 108
- 1
- 9
-1
votes
1 answer
AngularJS RouteProvider and ExpressJS sendfile
In my Angular app, I'm trying to render partials that load into the index page when a user clicks a link. It worked fine before with the following code:
//app.js in Angular
angular.module('myApp', [
'ngSanitize',
'ngRoute',
…

user2669464
- 969
- 3
- 12
- 17
-1
votes
1 answer
Nexus 7 Android File Transfer (Socket Programming in Android)
public class WiFiLibrary {
public Socket client = null;
public FileInputStream fileInputStream = null;
public BufferedInputStream bufferedInputStream = null;
public OutputStream outputStream = null;
public void Connect()
{
try
{
…

ZuuZuu
- 15
- 7
-2
votes
1 answer
Whatsapp Icon Clip for send file
I'm doing a similar app to WhatsApp, and I have to send images and documents. I would like to do it like on WhatsApp.
Clicking the clip's clip will open a menu in which you can choose what to send.
How could I do it?
Help me, please

DrBomber
- 25
- 7
-3
votes
1 answer
Send file over socket: SendText() and SendStream() not sending data correctly
I try send a .jpg file from ClientSocket to ServerSocket but have a trouble apparently around of SendText and SendStream functions because the results obtained after execution of SendText for example is always 0. But exists other strange thing that…

FLASHCODER
- 1
- 7
- 24
-5
votes
1 answer
FileStream throws File not found
The program is meant to set the file path and the idea is that when the data is set, it should use this function:
public void SendFile(String fileName, long fileSize, NetworkStream io)
{
SendFileNameToServer();
…

user2350376
- 1
- 1
- 4