Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hey everybody,
i want to ask one question:
how i can send a file in lan using vb.net2008 or 2005 pllsss some help its long time im searching but dosn't any thing work well,pleeessss some help
Posted
Comments
Sergey Alexandrovich Kryukov 16-Jan-12 16:39pm    
Not enough information. You should know what you want to do. I provided some very general answer.
--SA
dodita 16-Jan-12 17:18pm    
i mean her that send file between client and serveur.Im creating server and client using winsock,okey so i want to send file from server to clien.that's the idea i try to convert the file to binary and send it to client but the client can't see what's writing in file because all the texte is in binary,so i want if u have code or juste direction to beggin the send.I wish u understand me know.

The question is not fully formulated. What does it mean "send"? Basically, it depends on what do you have on the other part which should play a role of the server. In all cases, you will be able to "send" the file to the server part.

If the FTP server is running you would need to use System.Net.FtpWebRequest, http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^]. If the server simply use file sharing service and share the files, your client part can simply copy the file. If HTTP server is running, you can upload the file using System.Net.HttpWebRequest class, http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^]. If a server computer runs some specialized service with possibility of sending files, you need to use its application-level protocol on the client side.

There is no such thing as "just send".

—SA
 
Share this answer
 
Comments
dodita 16-Jan-12 17:16pm    
send that's mean her that send file between client and serveur.Im creating server and client using winsock,okey so i want to send file from server to clien.that's the idea i try to convert the file to binary and send it to client but the client can't see what's writing in file because all the texte is in binary,so i want if u have code or juste direction to beggin the send.I wish u understand know.
 
Share this answer
 
Comments
dodita 17-Jan-12 16:29pm    
hey Mr.Javedsamrt
thnx for those web-site,but i wish if u know like this website in vb2005 or 2008 language because i never study c# language.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900