Solved

file transfer

Posted on 1998-07-22
4
154 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
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 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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now