Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / January 2004

Tip: Looking for answers? Try searching our database.

send a binary file with sockets vb.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark - 06 Jan 2004 18:19 GMT
Trying to upgrade a VB6 winsock function to vb.net sockets. The sdk mentions
a TransmitFile function, but I find no usage sample for C# or VB. Must be an
easier way than Seek and Put (not in .net), and getting chunks. Have you any
pointers, besides trail and error, something like the WinTalk sample in the
sdk ?

Thanks
Feroze [MSFT] - 07 Jan 2004 05:03 GMT
TransmitFile is not supported in the current shipping viersion of the
runtime. You can use TcpClient/UdpClient or Socket class in
System.Net.Sockets namespace and accomplish the same.

feroze

Signature

Remove "user" from the email address to reply to the author.

This posting is provided "AS IS" with no warranties, and confers no rights

Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

> Trying to upgrade a VB6 winsock function to vb.net sockets. The sdk mentions
> a TransmitFile function, but I find no usage sample for C# or VB. Must be an
[quoted text clipped - 3 lines]
>
> Thanks
Chad Z. Hower aka Kudzu - 21 Jan 2004 12:14 GMT
> Trying to upgrade a VB6 winsock function to vb.net sockets. The sdk
> mentions a TransmitFile function, but I find no usage sample for C# or
> VB. Must be an easier way than Seek and Put (not in .net), and getting
> chunks. Have you any pointers, besides trail and error, something like
> the WinTalk sample in the sdk ?

http://www.indyproject.org/indy.html

Its free and open source. You can just use its WriteFile function, or open a
stream if you want and pass the stream to the Write method.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
     "Programming is an art form that fights back"

ELKNews - Get your free copy at http://www.atozedsoftware.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.