Solved

file transfer

Posted on 1998-07-22
4
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 20 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

751 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