Transfer File Through Socket In WCF
May 3, 2012I want to transfer the file through socket in vb.net using Socket .
View 1 RepliesI want to transfer the file through socket in vb.net using Socket .
View 1 Repliesi try to transfer packets from the PC to the Mobile phone~ my PC is act as a Server and Mobile as a Client. My Mobile is successfully connect to my PC, but when i try to pass a packets from Mobile, it went failed without any error. The Server didn't receive any packets from Mobile. i had test my code on PC to PC and it's work fine. Anyone have this kind of experience?
View 3 RepliesI wrote a Socket Client which will send the Socket Server some data and get some response from Server. This process will be running once in every 2 seconds.
Now what I need to know is How we can identify the connection lost between Server and Client?
I need this to be implemented in the Client side. If there is no connection then Client should automatically close the connection. Once the connection with the server is available in the next attempt it should connect automatically.
I will use the Background Intelligent Transfer Service (BITS) to transfer files from a client (laptop) to a shared folder on a server within our local network.The problem is a very slow network bandwith, if we transfer a file, the other clients canīt work, all requests to other clients (application) or viewing internet pages needs a long time.My idea is to use BITS in my tool to copy/transfer a file from client to server, also I hope to get more performance for the internet requests.
View 2 RepliesI have an excel file i want to copy all the row of that excel file into a .txt file.In the txt file the separator is comma.
View 8 RepliesBelow is my code, but when i send the message thru client socket i receive Specified argument was out of the range of valid values. Parameter name: size
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim serverStream As NetworkStream = clientSocket.GetStream()
Dim outStream As Byte() = _
System.Text.Encoding.ASCII.GetBytes("0800822000000000000004000000000000000920092126012345001")
[CODE]...
I`ve been reading alot of tutorials on hwo to do this but i can never get it to work. I have a file named Book1, and I want to move it and call it "Book2".
There are .xls (Excell spreadsheet). Something is wrong with reciver when I open Book2 It says "System.Byte[]"
The test file "Book1" Has "Dog, Cat, Cow," In A1 A2 A3.
I think my byte conversion isn't working.
A tutorial said to use "Encoding.ascii.getstring(byte)" but Encoding is not delaired.
Imports System.Net.Sockets ' Allows us to make and listen to connections from another user
Imports System.Threading ' Multi Threading
[Code].....
I am writing a program to upload file to the web using Socket and FileStream. Here is the code
Private Sub Read(ByVal state As StateObject)
Dim filestream As FileStream = state.fileStream
filestream.BeginRead(state.readBuffer, 0, StateObject.readBufferSize, New
[Code].....
am writing the pgm using vb.net to get the file from reomte machine & store it on local machine using FTP . but am always getting an error like "remote machine returned an error :(550) file un avaliable (e.g , file not found, no access)
Dim reqFTP As FtpWebRequest
Dim filepath As String
Dim filename As String
Dim filename1 As String
[code]....
I want to read a file and write it into another file.
View 2 RepliesI wrote some code to share files throughout my network. The thing is that i don't understand how to determine how much the client has sent already and how much is left. I have posted my code below so you guys can see what I'm talking about.[code]...
View 1 RepliesI need to transfer files from one server to multiple cients (using the internet) in the fastest possible way in .NET . What are the different types of transfer protocols which can be used in .NET or VB.NET so that the files are sent in a very short time ? I have tried using FTP, but that is slow because it requires authentication, handshaking etc. What i want to know is the options which we have in .NET for sending files in the fastest possible way between a server and multiple clients.
View 1 RepliesI wrote a code to send file as below:
Dim objXMLDoc As New XmlDocument
objXMLDoc.Load("C:InetpubwwwrootXMLSchema_TestXML1773777.xml")
Dim blnResponse As Boolean
[code].....
I am writing a program in vb.net 2008 and need to be able to send and receive files using Zmodem through the a comport. I have search the net and have not found much to do with Zmodem in VB.net. I am already using the System.IO.Ports.SerialPort to send and receive commands through the comport but how to send or receive a file using the Zmodem protocol.
View 4 RepliesI want to transfer a file from one computer to another computer by giving the port number and IP address. There will be an other software waiting for the file to be received.
View 7 RepliesBasically I want to take My Client.Then for example Lets say in my client I have "A = 1" Then my 2nd file which has random data in it.So Client= My Client File = The File which I want in the end result
How could I Inject "A = TextBox1.Text" from Client to File.I heard it's called "End Of File" or something like that.
How I can send file from server to another server in network??
View 2 Repliesthe code I can incorporate in my application which will allow me to transfer data from my listview to a notepad or .txt file.
View 5 RepliesI'm studying how to use Visual basics 2010, and I have been asked to create a program that transfers a audio file to one machine, then plays that file when it receives it on the other machine. I have made a basic file transfer, but when I install it onto a computer, the server crashes for some reason. But it will work on some computers. Here is my code for the server:
I also have to make the program so that the client can click a button and then it will play a preset audio file. (example: User clicks button to play a fire drill)So to sum it all up, The server app goes onto the computer that will be playing the audio and the client app allows you to send audio files to it and play
[Code]...
I am writing a chat program and im adding a transfer file function but Ive hit i bit of a snag..The way my program knows its a file coming and not a regular text message is i added a 3-6 bytes prefix depending on what is being sent.
[Code]...
Ive tried the copyto method but since my file byte array is empty it throws an exception. If i wasn't clear with something let me know and i will try to explain better.
How would i send different types (.png/.bmg/.mp3) of file over a tcpconnection (server / client)
View 2 RepliesI'm encountering problems when i want to download files from my server to my clients. My client is able to connect to my server but it will never transfer the file over to my client and i am unable to solve it.
[Code]...
I am writing the code using vb.net for file transfer from remote machine to local machine with out using any third party tools
This my code
Dim reqFTP As FtpWebRequest
Dim filepath As String
Dim filename As String
[Code].....
Is the FTM available for .net users to use on our web solutions or sites?I have some large install files on my site that the regular download will quit in the middle.the ftm at least allows for interruptions.I tried the FTP route, but turns out most users out there have no idea what ftp is. I saw a library that eluded to IDownloadManager, but I wasn't sure if this was the same thing as the ftm.
View 6 RepliesI'm transferring from one FTP (a Dev site) to another FTP (a Test site). Spare me the thoughts of changing this process. In any case, here's my method:
Public Function TransferFile(originalFile As String, destinationFile As String) As String
Try
'FileStream for holding the file
Dim uploadRequest As FtpWebRequest = WebRequest.Create(destinationFile)
uploadRequest.Method = WebRequestMethods.Ftp.UploadFile
[Code] .....
This works perfectly for ASPX files and their .vb code behinds. When we try to transfer .DLL files, they show up on the server as 0 bytes, and sometimes actually transfer. The problem is that, despite being the same size as the original, they act as if they are corrupt.
1. How much load or data size our custom encryption/decryption algorithm can handle? E.g. what's the limit of file size that normal encryption/decryption algorithm supports.
2. What's the best way to use encryption while file transfer via internet?
3. Where and when encryption and decryption has to apply while uploading and downloading content from internet(Hosting on client or server machines)?
4. What type of algorithms suites for above approaches?
5. How much time it takes to encrypt / decrypt data for 10 MB, 100 MB, 1 GB etc
I was wondering if there was a way to transfer a file to another device over bluetooth using vb.net.
View 1 RepliesI'm using server.transfer to transfer execution of a URL to a dummy page which fetches information from the database. The trouble is that the master page interacts with the session.
global.asax:
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
' Fires at the beginning of each request
If Not (System.IO.File.Exists(Server.MapPath(Request.Url.LocalPath))) And Request.Url.LocalPath.ToLower
[CODE]...
Master page:
If String.IsNullOrEmpty(CStr(Session("SessionId"))) Then
Session.Add("SessionId", Guid.NewGuid().ToString)
End If
Page declaration: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="utilityCMS.aspx.vb" Inherits="utilityCMS" MasterPageFile="~/MasterPages/main.master" EnableSessionState="True" %>
Web.config snippet:
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="HttpModuleAggregator" type="XPIdea.Web.HttpModuleAggregator,xpidea.web.common" />
</httpModules>
I'm getting an error :
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration><system.web><httpModules> section in the application configuration.
I should also mention that this same master page works elsewhere in the site. Session is used throughout the site as well (not just in the master page).
I have an FTP Server outside of the domain (In a workgroup). I need to move files using an application called by the FTP client on the FTP server to a share within the domain using VB.net:
(System.IO.File.Move(SourcePath & Filename, TargetPath & Filename))Impersonation will not work neither will mapping a drive (As no user will be logged on)This is a console application that takes the above parameters.
Im adding a file transfer through a winsock control in my app. But the connection to it seems to be wrong
clientside Private Sub cmdConnect_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdConnect.Click
[Code]...