Example Of How To Send A File Over TCP

Apr 16, 2010

I'm looking for an example of how to send a file over TCP, I've seen a few but none seem to work/seem to be too complex for what I need. It also needs to be reverse connecting preferably.

It just needs to be.

Person One:
IP: 123.456.0.1
Open Port: 501

Person Two:
IP 654:321:0.1
Closed Ports.

Person Two Sends Picture To Person One. I've got it working fine with just strings, but I can't for the life of me make it send a file. With the one working example I did find it only sent the first 9kb of any files. Can anyone provide a basic example?

View 3 Replies


ADVERTISEMENT

File I/O And Registry :: Create Some Data Inside An App And Send It To Another App As A File?

Feb 20, 2010

This is what I am trying to do. I need to create some data inside my app and send it to another app as a file. But this 'file' should never be written to the hard drive. It will only ever exist in RAM.

View 17 Replies

File I/O And Registry :: Send Several Different Txt Fields At One Time And Each Into There Own File?

Jul 9, 2009

I have read the file I/O tutorial and I learned alot. My problem is I need to send several different txt fields at one time and each into there own file. This was simple in vb6 using something like below, I have no idea how to do this with .net. Also on start up I will need to read this information back into text fields.

Code:
Private Sub Command1_Click()
'Save command1 name to file
Open App.Path & "subD.cab" For Output As #1

[code]....

View 3 Replies

Pen File Dialog To Select A File And Then Send It To Another Folder

Jun 18, 2009

I'm currently working on a script that uses an open file dialog to select a file and then send it to another folder.The open file dialog works fine, and I can store the filename/location fine in a variable. What I want to know is how to copy a user-defined file to a set directory. All of the stuff I've found requires you to know what the filename of the thing you're moving is.

View 3 Replies

How To Send A *.txt File In LAN

Dec 4, 2009

I'm new in this. I have made a simple Keylogger, but i wanna know how to send the resulting text file to an specific IP in Local Network. No encryption, just simply send file.

View 4 Replies

.net - Send A File To A PHP Script From App?

Jan 17, 2010

I need to send some data from a SQL DB Server on an internal network to an external web server.I was hoping to accomplish this by writing a VB.NET app that is invoked once per day that sends about 1 MB of data to a PHP script on the web server, where it is deposited in a database.

What is a good method to send data to a PHP script from a .NET app?

View 5 Replies

How To Send File To Any Website In Win App

May 27, 2011

How to send a file to any website in vb.net windows application.

View 2 Replies

Send A File From One Computer To Another?

Jan 25, 2010

VS 2008 Send a file from one computer to another???

View 1 Replies

Send A File To COM Port?

Jun 21, 2010

I just want to know is it possible to send a file to COM port and receive a file from COM port?

View 1 Replies

Send File Using Winsock?

Jan 3, 2012

how to send file using winsock in vb.net and i don't found

View 4 Replies

Send RAW-File To Printer?

Jan 11, 2010

there is a possibility to send Files to a printer which is connected to a virtual LPTx, e.g. "copy filename lpt1". Is it possible to make this WITHOUT a LPTx? A solution in vbScript would be great, but VB is also OK.

View 1 Replies

Send The STX And ETX Before And After The File Data Respectively?

Jan 12, 2011

Hi friends, I am working on an application in which I have to send a data of a text file to a PLC machine. Now the convention is that

send start of file (0x02)
send data bytes (file data)
send end of file (0x03)

how to send the STX and ETX before and after the file data respectively. The PLC should receive them as 02 and 03 i.e. in their Hex values. If there is any ready function like vbCrLf for STX and ETX

View 5 Replies

Upload File And Send Value Using .net?

Mar 3, 2009

i looking for a way to upload a image or file and a value too using the vb.net so far i found this that can send the image i have tested and is fine but i cant understand how put a value to be returned by this:$_POST["value"] i have other code that can send the value by post and works fine but i need change this code to send post values too

View 1 Replies

VS 2008 Send A Zip File Through Ftp?

Jun 20, 2011

I have a .zip file on my C: drive. I want to send this file to a ftp site through vb.net code. I have no idea to do this.

View 4 Replies

App To Attach And Send Doc File To Email

Jul 11, 2012

I want to develop an app thru vb.net to attach and send a doc file to my email. Lets say in my Temp folder I have 2 doc files. I want the program to attach those 2 files and send it to my email. Is this possible to write an app in VB?

View 3 Replies

Deleting A File And Send Them To The Resicle Bin Instead?

Aug 29, 2011

I am using this code below to delete files. Doing this permanintly deletes them, is it poseble to send them to the Resicle Bin instead?

System.IO.File.Move(OriginalImagePath, NewImagePath)
Hendri Bissolati noviceprogrammer@vodamail.co.za

View 5 Replies

Forms :: Send A File Over The Network?

Sep 4, 2010

I ahve tried using the

My.Computer.Network.UploadFile("C:UsersPhillipDesktop est.txt", "http://10.0.0.2/c:/text.txt", "my username, "mypassword")
but it does not work...whats the proper format for entering a location to a computer over the network?Also... whats a way to send a file to a computer over the internet such as my friends computer... The reason I am doing this is because I plan to make some programs that run based on text files and a basic example of this is a chat program... but I do plan for other things as well...

EDIT:Used this

My.Computer.Network.UploadFile("C:UsersPhillipDesktop est.txt", "\PHILIPADAMS-PCUSERSPhilip Adams ext.txt", "myusername", "mypass")

and it worked... now how can I send over the internet... Also is there another way i can send over the network like using the IP instead of computer name?Also how do I send it to other computers?

View 5 Replies

How To Send File Between PC's On Local Network By Using PC Name

Jan 24, 2012

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

Dim FileToCopy As String
Dim NewCopy As String
FileToCopy = "C:Users????DesktopfileName"
NewCopy = "C:Users???Desktop
ewfileName"

[Code]...

View 2 Replies

How To Send File Via Bluetooth Through Program

Jun 15, 2011

How to send a file via bluetooth through my program? I have a text file that I make it by my program and i want to send it to mobile via bluetooth and also I want my program gives me a message in these 2 cases?
1- In case if there's no bluetooth in computer
2- In case if it dose not find bluetooth device around

View 4 Replies

How To Send PDF File Using ITextSharp (Attachment)

May 24, 2012

I am trying to send PDF file using itextsharp, the email sends fine but with out the pdf attachment.

Here is my code :
Dim pdfFile As MemoryStream = New MemoryStream()
Dim d As Document = New Document(PageSize.A4, 60, 60, 40, 40)
Dim w As PdfWriter = PdfWriter.GetInstance(d, pdfFile)
w.Open()
w.Add(New Paragraph("do foo something "))
[Code] .....

View 1 Replies

Program To Send Out SMS From Tab Delimited Txt File?

Apr 21, 2012

I have written the following for sending sms's from a txt file through a http web service.The code works and the first 2 messages in the text file are sent , but I always get operation timed out when it trys to send the 3rd sms in the text file.If any one could have a look at my code and give me some sort of idea why it stops after the 2nd sms that would really be great

Dim objFS As New FileStream("c:datafile.txt", FileMode.Open, FileAccess.Read)
Dim objSR As New StreamReader(objFS)
Dim strline, fileline() As String

[Code].....

View 2 Replies

Send *.Hex File Via Serial Port To A MCU?

Sep 11, 2009

sending a hex file through serial port using vb.net? and i m not really sure the difference between sending data and sending a file, seems majority of the topics on the forum is about sending data via serial port.

View 2 Replies

Send A RTF File In Body Of An Email

May 23, 2012

My application generate reports as rtf-files. I want to send this file by email, but NOT as attachment, but inside the emailbody. And the receiver must see the formatted text. How can I do that?

View 2 Replies

Send An Image File Through COMPORT?

Sep 28, 2009

I would like to ask about sending an image file through serial port to a external embedded processor....

the way i think i want to do it is that i would like to open the image file in VB.NET as a binary file and then

1)either converting this binary file to a text file and then read the content of that text file to sent it through UART to that external processor or

2)Converting the binary file into an array and send that array through uart.[code]...

View 3 Replies

Send And Receive File With IO.Ports?

Apr 27, 2006

How Can send And receive File with SerialPort in vb.net 2005 i use this sample code for sending string , and now i will know how can send any File by serialport click here there are no sample code in microsoft site i Use "Virtual Serial Ports Driver XP " to Test my sample how can use the Zmodem , Ymodem ,Xmodem , etc in vb.net by serialport ?

View 5 Replies

Send Data To .vb File In Backend?

Dec 17, 2010

i am using thickbox in asp.net and everything works fine. I load it, have textboxes and dropdowns in it. I also made modal=true, so it only closes when i click the "Thank you" button. The problem is that behind in the aspx.vb file, i need the data from the thick box, so i can insert, update in my database. How can i do that? Right now all that is happening is that onclicking the button the thickbox closes, but how do i send data to .vb file in backend?

View 1 Replies

Send File From Application To My Website?

Apr 19, 2010

how to send a file from my application to my website if my computer happens to be connected to the internet. It's an FTP site. I used Visual Web Developer 2008 to build my site. I obviously have to do some digging of my own but maybe someone can tell me a few things to point me in the right direction.

View 1 Replies

Send File On A Computer Connected To LAN?

Jul 14, 2011

How to send file on a computer connected to LAN?

View 4 Replies

Send File With Windows Socket?

Jan 10, 2010

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].....

View 2 Replies

Send PostScript File To Printer?

Oct 7, 2010

I need to be able to send a PostScript file to a printer specified by the user. I am using a print dialog box to get the printer the user selects but now I need a way to send a PostScript file to that printer. I am able to send a PostScript file to a printer right now, but it only sends the file to the printer that was last selected. I am using Ghostview to view the PS file and to print it. This is why the file prints to the last printer selected.

Here is the code I am using to print the file in Ghostview:

If PrintDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then
Dim p As New ProcessStartInfo()
p.Arguments = PrintDialog.PrinterSettings.PrinterName

[Code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved