Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

file transfer

Posted on 1998-07-22
4
Medium Priority
?
160 Views
Last Modified: 2013-11-13
I want to read files with different extensions like .pdf and .xls and store the data into a buffer then send it through the network and at the recieving end I want to save the file with the same extensions. Can anybody let me know how I can implement it using VB.

Briefly I want to transfer the files of different types.

0
Comment
Question by:monalisa
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 40 total points
ID: 1466481
You can use the Winsock control to transfer files. First, send a header that specifies the file name and size. Then read the file, and send it in peices. the receiving side will save it using the name you specified
0
 
LVL 4

Expert Comment

by:Chizl
ID: 1466482
Hey Mike you would have a piece of example code to support that would you?   I have tried that, which I know it can be done, but have had many problems.  The file would get corrupted to the point of unusable.
0
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1466483
I don't have any code for that, but post your code here, and i'll try to see what's wrong with it.
0
 

Author Comment

by:monalisa
ID: 1466484
Same is the problem with me too.   I want to know how can I get  
the entire file to be transferred. I have no problem while transferring the data.

Can you help me out with some code.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question