Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

File Transfer

Posted on 2000-04-14
28
Medium Priority
?
218 Views
Last Modified: 2010-04-04
I want to make a program that does the equivalent to ICQ File Transfer.

ie. a client selects a file to send and the receiver has the option to choose the folder to receive to.

I need this program to run on a land using TCP.

I only have Delphi 4 Standard, so I am currently using the freeware FPIette ICS components although i am prepared to use winshoes although i would prefer not to.

0
Comment
Question by:frangers99
[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
  • 10
  • 9
  • 7
  • +2
28 Comments
 

Expert Comment

by:haehnen
ID: 2718849
HI,
you can use the Ftp-Components from ICS.
Look at the ICS-Homepage for more Information.
bye
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2719075
0
 

Expert Comment

by:airboy
ID: 2719781
I am pretty sure you will find all you need for your file transfers at this site
http://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=10104621 
Bye!!
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 3

Expert Comment

by:bryan7
ID: 2719941
I'm just wondering airboy.. no offense.. are you blind ?
0
 

Author Comment

by:frangers99
ID: 2721134
can either of you explain that code, i've seen it before but is there a comopnent that does most of the work or is that the easiest way?
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2721188
it uses fpiette's component to do so.. it's very easy in a few steps:

1. side1 connects to side2
2. side2 asks the file transmision to start
3. side1 gets a piece of the file and sends it (let's say 8kb)
4. when side2 has received the 8kb it asks side1 for the next piece
5. side1 sends next 8kb piece....
6.. back to step 4 until file is complete..

I have made this once.. but a bit more complex...
you can have 2 connections.. 1 for file transmision only
and 2 for passing file name and size, make pause/resume.
etc..

0
 

Author Comment

by:frangers99
ID: 2721608
but there aren't any components, it would make life easier
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2721622
in fact there are.. FTP server and FTP client in fpiette's package
0
 

Author Comment

by:frangers99
ID: 2721682
i have had a look at those components but it works the opposite way, I want my client to send the files and the server to receive them, i spose FTP does that, what's the most effective way to go about this problem
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2725242
? the opposite way ? ftp can server can RECEIVE and SEND files...
so it's ok for your needs..
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2725248
? the opposite way ? ftp server can RECEIVE and SEND files...
so it's ok for your needs..
0
 

Author Comment

by:frangers99
ID: 2725319
yeah sorry, i wrote the wrong thing, do you have any sample code, then you get the points.
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2725441
well, I'm doing an FTP client with it.. but the code is long..
I can do it.. but ics already has 2 samples.. on is an ftp CLIENT sample.. and the other is an ftp SERVER sample.. you can compile and run them at the same time and try it .. server as localhost.. then look at the sources.. they are quite clear and easy and with some explanations..

but if you want I can do the samples to show you..
0
 

Author Comment

by:frangers99
ID: 2729954
just what code do you use to send a file to the client if you are the server?
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2744211
your awnser is at

http://www.angelfire.com/ok/GODARES/downl.html

it is pretty easy to modify it exactly to your needs... but if you want me to do it 4 u don't reject my awnser but give an extra comment, and raise the points a bit.

greetz

Ares

comments or questions to

god_ares@yahoo.com
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2744244
btw

i'm using d4 pro  no extra components
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2746120
frangers.. look at the FTP server DEMO from fpiette... it's all there..
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2746322
Well ftp is not quite icq... now is it? i'm not using fpiette's stuff...
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2762719
so how about it???
0
 

Author Comment

by:frangers99
ID: 2763107
just got back from a holiday, i'll check it out
0
 

Author Comment

by:frangers99
ID: 2778879
I don't have the majority of the components required
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2778898
? what do you mean ? install the full ics package..
0
 

Author Comment

by:frangers99
ID: 2779793
no, I ment in rejection to God Ares answer of the program file_trans that you can modify.
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2785480
so what is the problem? You don't have the components i have used? Install d4 pro... i haven't used anything fancy.
0
 

Author Comment

by:frangers99
ID: 2787410
i have d4 standard
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2787457
well if you don't have the components i have used.. too bad..

i'm shure FPIette has a tcp/ip component just send over the filename filesize and blocks of 1024bytes let

so you can write a program that does the icq transver

person1                  person2
filename >
                       < okfilename
filesize >             < okfilesize

 
(okfilesize should be make by a button click   that is for accepting the transver)

repeat                   repeat
 if filesizeleft
  >=1024
  send 1024k >     
                    < ok1024            
 else
  send remaining  
                   <okremaining

done:=done or timeout
until done               until done



why 1024 bytes ?   it's easy to make a calculation like  4 kb/s
0
 
LVL 3

Accepted Solution

by:
bryan7 earned 150 total points
ID: 2788384
0
 
LVL 7

Expert Comment

by:God_Ares
ID: 2790158
yep that should be it... didn't test it do...


frangers99 i wish you the best, you should give bryan7 the points, but don't forget to compress!!!! sending a screen can be HUGE
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

715 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