Тёмный

File transfer program in java using TCP made Simple 

Thecodersbay
Подписаться 926
Просмотров 99 тыс.
50% 1

In this video I have implemented Server Client program (Socket program) to transfer file in java using TCP.

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 114   
@081suvetha8
@081suvetha8 2 года назад
Thank you so much. I am struggling when I try to coding. After seeing ur video I got what the concept is thank you so much🥺.it comes from my heart❤️
@thecodersbay8157
@thecodersbay8157 2 года назад
I'm glad to be of service 😊😊😊
@unholydiver1095
@unholydiver1095 4 года назад
THANK YOU! This helped me out for a part of my project for a p2p network. Instead of blindly/cluelessly copying code, this video guided me to understanding how to implement the method. This is how it should be! Thank you for teaching us!
@eskooUTD
@eskooUTD 5 лет назад
This is what we're currently doing at Uni and I've been struggling for the past four weeks!! I'm happy I found this video 🙌😭🔥
@jayantagarwal6339
@jayantagarwal6339 5 лет назад
This is probably gonna help me sort out the real-life project problem in my company.....thanks again
@sucharitaghosh4511
@sucharitaghosh4511 5 лет назад
Thanks for explaining each n everything u used into this
@alphanelmas1662
@alphanelmas1662 3 года назад
This video is really useful for me and you explained the concept well maan thanks
@joancamiloolmosduran1434
@joancamiloolmosduran1434 4 года назад
My Friend thaks so much, you video help me with a homework Greetings from Colombia.
@mhmzdev
@mhmzdev 4 года назад
Still useful video after 3 years! Great work man!
@akhild1920
@akhild1920 4 года назад
Bro i did the same but the data in server is not transferred to client. Please help
@akhild1920
@akhild1920 4 года назад
And it's not creating the file in the client side. Please Help
@youtubevideostorage3381
@youtubevideostorage3381 3 года назад
@@akhild1920 Same here. The text file lines are just showed in the terminal but the file is not downloaded.
@androdeveloper7261
@androdeveloper7261 3 года назад
@@akhild1920 need some more details ....
@OfficialB90
@OfficialB90 2 года назад
Thank you so much man you saved me on my school project!
@meriembr3923
@meriembr3923 2 года назад
God bless you bro your are amazing thats help me
@prottaybadhon8112
@prottaybadhon8112 2 года назад
source code pls
@null3081
@null3081 3 года назад
First tutorial that worked :D Thanks a lot
@kunal_chand
@kunal_chand 5 лет назад
God bless you man !! I loved the way you explained each and every function's properties.
@deema3861
@deema3861 2 года назад
Thanks for your helpful videos, I wonder if there is a way to contact you, I want to ask some important questions if you don't mind🙏🏻
@chinmaygopal9295
@chinmaygopal9295 5 лет назад
I really loved this video. Keep it up man, short and to the point. Subscribed
@merveillejora4991
@merveillejora4991 8 месяцев назад
fast and efficient tutorial
@farooqahmed-tu3pr
@farooqahmed-tu3pr 5 лет назад
Very awesome explaining bro But I want many clients and single server
@hemanthmodani1631
@hemanthmodani1631 3 года назад
Thanks a lot, i now got a clear idea
@JerrinJoshua18
@JerrinJoshua18 2 года назад
Thankyou it is very useful
@copyrightlivia
@copyrightlivia 2 года назад
Thank you for this ♥️ Do you have tips on how, since i don't know the length of the file sent, the program sends parts of the file and then whoever receives it keeps reading until the file ends? For example, for big files
@buddikagunawardena2200
@buddikagunawardena2200 3 года назад
Very good tutorial! Keep up the good work brother!
@kitsune2184
@kitsune2184 4 года назад
thank you for explaining everything so well
@RakibOFC
@RakibOFC 2 года назад
Why did the client receive a 20KB file instead of a 1KB file? How to fix this problem?
@abraambutrous4632
@abraambutrous4632 3 года назад
Hi there. i just had a question about this video. Does the server accept multiple clients? and can these multiple clients communicate with each other.
@youtubevideostorage3381
@youtubevideostorage3381 3 года назад
Hi, I ran the same code in Intellij Idea and the output lines of the text are shown in the terminal but the file is not downloaded
@florisrobert
@florisrobert 5 лет назад
Does this work for transferring files between 2 computers via a network?
@SKTWoodDesign
@SKTWoodDesign 5 лет назад
Do you have file transfer from client to server tutorial?
@mediabuzz4559
@mediabuzz4559 6 лет назад
Is there any restrictions about size of file for sharing between client and server
@Ever4u
@Ever4u 4 года назад
nice sir,can u tell me how to stream audio from from pc to another pc in java
@ashishgupta8394
@ashishgupta8394 5 лет назад
You are reading and transfering whole file at once, what if file is too large to fit in memory?say 10gb+ file
@qnfrhaify
@qnfrhaify 4 года назад
@Thecodersbay Thanks for your Video! I just have one problem, that is a file with empty content. The file is successfully transferred, but no content in it. Can you help me out what might be the problem? I followed line after line. But I got this result. Thank you !
@saisandeep1966
@saisandeep1966 5 лет назад
can we use the same program for transfer of video files by changing extension
@sunnyjain630
@sunnyjain630 6 лет назад
ty for this video.....i have one doubt..........it is also appending no of null values in the output file!!
@Ajiq46
@Ajiq46 6 лет назад
how to remove the null values??
@padmavathy1869
@padmavathy1869 7 месяцев назад
Udp program sir?
@kathir8505
@kathir8505 2 года назад
sir its work in txt file successfully.. but i want read pdf file..i did replace txt to pdf ..it does not work sir..
@ddiegor4531
@ddiegor4531 2 года назад
Awesome!!!!!!!!!!!!!, thank you so much
@arkdtk
@arkdtk 4 года назад
I don't know why but the client stream does not read anything. Can you help me?
@Fireninja747
@Fireninja747 6 лет назад
Hi, how would automate the process of calling fileclient after fileserver?
@bybono6542
@bybono6542 4 года назад
Doesn't work with different network right?
@manishasarkar5412
@manishasarkar5412 5 лет назад
hey thanks your video helped alot but in my case the ttttt.txt file has been created but the data is not tranfered..the code is exact same with yours.can you tell what is the problem?
@thecodersbay8157
@thecodersbay8157 5 лет назад
You can find my code in the description, try to run that code it will work.
@manishasarkar5412
@manishasarkar5412 5 лет назад
​@@thecodersbay8157 its still showing the same..
@charliebolton5531
@charliebolton5531 5 лет назад
@@manishasarkar5412 I had the same problem because I didn't include the final line in the client class where it writes to the file
@qnfrhaify
@qnfrhaify 4 года назад
@@charliebolton5531 Hello Charlie, I have the same problem as above, Did you mean you added fo.write(inputBytes, 0, inputBytes.length); in the end?
@hatit8074
@hatit8074 4 года назад
How to get the file name as dynamic input brother? Am struggling with it.
@kanavkohli2751
@kanavkohli2751 6 лет назад
need a java program that read the files from ftp path.Any idea ?
@shitaldhanba1132
@shitaldhanba1132 5 лет назад
In your F: folder, there is already rolly.txt file??
@roronoa_d_law1075
@roronoa_d_law1075 5 лет назад
I don't understand how your file is 20 kB but your byte array is of length 2002 only edit : your file rolly is originally 1 kB ( 3:00 ) but when you transfer it as tttttt it's 20 kB ( 9:10 )
@thisisneeraj7133
@thisisneeraj7133 3 года назад
Hii as first he declared file as the input of 202 Byte which is 1 kb in general and then after sending he declared the byte buffer of 20002 byts eqls 19.5 kb or Rounded 20kb so thats why the input buffer of array plays an important role here
@mounikagirada5225
@mounikagirada5225 4 года назад
how this can be done between two different system..?
@ronnyaman4524
@ronnyaman4524 6 лет назад
Will this require a internet network connections.
@crazyksp8344
@crazyksp8344 4 года назад
what does buf do?
@deadlox.d
@deadlox.d 4 года назад
who said indian can't explain stuff well or there explanation is not understandable.... go ahead and watch this video i bet you will understand every concept on this topic :)
@wolfcompany2
@wolfcompany2 2 года назад
How do I use this transfer for image file?
@maissainfo8565
@maissainfo8565 6 лет назад
good work .i actually want bothe client and server to send and receive files.i tried to combine bothe codes but it did not work .any idea how i can do it!!
@rohitpatil6276
@rohitpatil6276 5 лет назад
MAISSA info if you done file tranfer between two server ...please help me also
@Erwinsmith94040
@Erwinsmith94040 3 года назад
Its work but size of file was changed we need to specify size in bytes
@jayantagarwal6339
@jayantagarwal6339 5 лет назад
Can u try to send an excel file to the client and then try to open it over there? You may face error like: "We found a problem with some content in 'Abc.xlsx'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes."
@kcreations5478
@kcreations5478 2 года назад
Bhai localhost mein sahi se kaam kar raha hai but agar router ke ip address deke transfer karta hun to file ki size chahe kuch bhi ho sirf 739bytes ka ek file ban raha hai aur uske andar ka content transfer nehi ho raha hai kuch solution hai to bata do please
@hafizmuhammadadnan2411
@hafizmuhammadadnan2411 5 лет назад
bro please guide us how can i send file from one pc to multiple pc by using socket ????
@rohitpatil6276
@rohitpatil6276 5 лет назад
hi is this working for transfer file from one server to other?
@ganeshkumar269
@ganeshkumar269 5 лет назад
I've successfully done it , but having trouble while doing b/w 2 diff PCs. The client cannot identify/recognise the server. Both PCs are connected to the same network.
@sherdil3069
@sherdil3069 5 лет назад
please send me code which you have done email muhammadwakeel043@gmail.com , i will work on your problem
@sahanavagga
@sahanavagga 4 года назад
why we didn't used byte array in client code
@aqeebkhan7493
@aqeebkhan7493 5 лет назад
what is the package ffile in your code? is this a user defined?if yes where is the code for it(can you send me)
@abhishektanwar8070
@abhishektanwar8070 5 лет назад
Nothing.Package is just a sub folder in the project. Don't think too much over it.
@AamirK11
@AamirK11 9 месяцев назад
Thanks
@dheepikap3734
@dheepikap3734 6 лет назад
How u created that server and client in same package
@thecodersbay8157
@thecodersbay8157 6 лет назад
Dheepika P After creating a package u can create many classes inside it (the client and server are two java classes)
@aakashv4594
@aakashv4594 4 года назад
Thank you It helped me a lot.If we specify the byte array size as 100 then only first 100 bytes of the txt file are sending for send the 1MB file with it .Is there a way of using the loops
@androdeveloper7261
@androdeveloper7261 3 года назад
Yes , there is
@simonemastroianni1985
@simonemastroianni1985 6 лет назад
How I can send a photo from client instead of server? Please is urgent
@apoorvaharlapur1998
@apoorvaharlapur1998 5 лет назад
Want to send a file from client to server..plz make a video on it..
@supermariomistickgames4700
@supermariomistickgames4700 4 года назад
Thanks this was helpful
@abraham2961
@abraham2961 5 лет назад
Can you help me to write a code to transfer file from local system to winscp server
@thanhdatthanhdat7696
@thanhdatthanhdat7696 4 года назад
Thank you very much
@mediabuzz4559
@mediabuzz4559 6 лет назад
Nice explanation
@saloniprajapati1019
@saloniprajapati1019 6 лет назад
good explanation
@thecodersbay8157
@thecodersbay8157 6 лет назад
saloni prajapati thanku 😊
@jayantagarwal6339
@jayantagarwal6339 5 лет назад
Great one
@mclama_amine3724
@mclama_amine3724 6 лет назад
Thanks my friend👍👍👍
@karthickbabu5433
@karthickbabu5433 6 лет назад
shall we do same process for image transfer?
@thecodersbay8157
@thecodersbay8157 6 лет назад
KARTHICK BABU yes just change the file name with image name
@karthickbabu5433
@karthickbabu5433 6 лет назад
i have done bt the image quality affects
@thecodersbay8157
@thecodersbay8157 6 лет назад
KARTHICK BABU ya because we made use of the TCP to send image
@karthickbabu5433
@karthickbabu5433 6 лет назад
when using filechooser hw can i find that the selected one is image or file?
@thecodersbay8157
@thecodersbay8157 6 лет назад
KARTHICK BABU Sorry I dont know about it
@doaata5476
@doaata5476 6 лет назад
????????/hi pleeeeese can you help me How can we run it between two computers?
@yatrikamrutiya9376
@yatrikamrutiya9376 4 года назад
You actually sending the content of the file.. not the actual file.... How to share the actual file through network using java?
@thecodersbay8157
@thecodersbay8157 6 лет назад
Frndz plzz do subscribe :)
@sherdil3069
@sherdil3069 5 лет назад
very nice video sir , plz give me source code
@sherdil3069
@sherdil3069 5 лет назад
email me please muhammadwakeel043@gmail.com
@fauzifathurrahman2404
@fauzifathurrahman2404 6 лет назад
this is Server to client not client to server ya.???
@phamcaoson3698
@phamcaoson3698 4 года назад
Love u so much
@barath8190
@barath8190 Год назад
Pls be my java tutor😫
@sillypuppygurl
@sillypuppygurl 5 лет назад
i love your voice :> no joke
@tcetrox5691
@tcetrox5691 6 лет назад
SIr i dont know hw to run your code in cmd pls help
@pianoblader4263
@pianoblader4263 6 лет назад
use an ide ;/
@bekirfurkankesgin597
@bekirfurkankesgin597 5 лет назад
Thanks for explain all kind of things. I have a question, I am trying to make an application file server and file client, they are always can send file and receive, but not to close socket connection, I use this way; www.imageurl.ir/images/97242150243110244356.png, I am waiting your response, thanks.
@geethask7357
@geethask7357 5 лет назад
Code s not working
@pratibhayadav4916
@pratibhayadav4916 Год назад
Still error
@probaldeepsaikia
@probaldeepsaikia 4 года назад
code?
@siddhantgour2622
@siddhantgour2622 5 лет назад
not working
@prottaybadhon8112
@prottaybadhon8112 2 года назад
source code pls
@GunRotMG
@GunRotMG 4 года назад
For fucks sake why is everyone using localhost and not a lan.
@kuvashneenaidoo4475
@kuvashneenaidoo4475 4 года назад
can someone do my assignment for me :')
Далее
Hamming Code made Simple
7:59
Просмотров 7 тыс.
Java Socket Programming - Multiple Clients Chat
40:18
Просмотров 182 тыс.
When Khabib dropped Conor McGregor 👀 #nocommentary
00:59
Multithreading in Java Explained in 10 Minutes
10:01
Просмотров 935 тыс.
Simple TCP Chat Room in Java
39:05
Просмотров 96 тыс.
Sockets and Pipes Look Like Files (Unix/fdopen)
12:45
SFTP File Transfer using Java JSch
11:05
Просмотров 17 тыс.
C++ Network Programming Part 1: Sockets
1:13:52
Просмотров 127 тыс.
Java Socket Programming Client Server Messenger
16:28
Просмотров 104 тыс.