File transfer program in java using TCP made Simple

  Рет қаралды 99,484

Thecodersbay

Thecodersbay

Күн бұрын

Пікірлер: 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
@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 ....
@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.
@OfficialB90
@OfficialB90 3 жыл бұрын
Thank you so much man you saved me on my school project!
@sucharitaghosh4511
@sucharitaghosh4511 5 жыл бұрын
Thanks for explaining each n everything u used into this
@null3081
@null3081 3 жыл бұрын
First tutorial that worked :D Thanks a lot
@farooqahmed-tu3pr
@farooqahmed-tu3pr 5 жыл бұрын
Very awesome explaining bro But I want many clients and single server
@meriembr3923
@meriembr3923 3 жыл бұрын
God bless you bro your are amazing thats help me
@prottaybadhon8112
@prottaybadhon8112 3 жыл бұрын
source code pls
@kunal_chand
@kunal_chand 5 жыл бұрын
God bless you man !! I loved the way you explained each and every function's properties.
@RakibOFC
@RakibOFC 3 жыл бұрын
Why did the client receive a 20KB file instead of a 1KB file? How to fix this problem?
@SKTWoodDesign
@SKTWoodDesign 5 жыл бұрын
Do you have file transfer from client to server tutorial?
@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🙏🏻
@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
@wolfcompany2
@wolfcompany2 2 жыл бұрын
How do I use this transfer for image file?
@chinmaygopal9295
@chinmaygopal9295 6 жыл бұрын
I really loved this video. Keep it up man, short and to the point. Subscribed
@padmavathy1869
@padmavathy1869 9 ай бұрын
Udp program sir?
@mediabuzz4559
@mediabuzz4559 6 жыл бұрын
Is there any restrictions about size of file for sharing between client and server
@buddikagunawardena2200
@buddikagunawardena2200 3 жыл бұрын
Very good tutorial! Keep up the good work brother!
@florisrobert
@florisrobert 5 жыл бұрын
Does this work for transferring files between 2 computers via a network?
@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 :)
@saisandeep1966
@saisandeep1966 5 жыл бұрын
can we use the same program for transfer of video files by changing extension
@kanavkohli2751
@kanavkohli2751 6 жыл бұрын
need a java program that read the files from ftp path.Any idea ?
@mounikagirada5225
@mounikagirada5225 4 жыл бұрын
how this can be done between two different system..?
@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
@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..
@sahanavagga
@sahanavagga 4 жыл бұрын
why we didn't used byte array in client code
@hemanthmodani1631
@hemanthmodani1631 3 жыл бұрын
Thanks a lot, i now got a clear idea
@hafizmuhammadadnan2411
@hafizmuhammadadnan2411 5 жыл бұрын
bro please guide us how can i send file from one pc to multiple pc by using socket ????
@apoorvaharlapur1998
@apoorvaharlapur1998 5 жыл бұрын
Want to send a file from client to server..plz make a video on it..
@Ever4u
@Ever4u 4 жыл бұрын
nice sir,can u tell me how to stream audio from from pc to another pc in java
@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??
@bybono6542
@bybono6542 5 жыл бұрын
Doesn't work with different network right?
@kcreations5478
@kcreations5478 3 жыл бұрын
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
@arkdtk
@arkdtk 4 жыл бұрын
I don't know why but the client stream does not read anything. Can you help me?
@ronnyaman4524
@ronnyaman4524 6 жыл бұрын
Will this require a internet network connections.
@Fireninja747
@Fireninja747 6 жыл бұрын
Hi, how would automate the process of calling fileclient after fileserver?
@shitaldhanba1132
@shitaldhanba1132 5 жыл бұрын
In your F: folder, there is already rolly.txt file??
@ashishgupta8394
@ashishgupta8394 6 жыл бұрын
You are reading and transfering whole file at once, what if file is too large to fit in memory?say 10gb+ file
@abraham2961
@abraham2961 5 жыл бұрын
Can you help me to write a code to transfer file from local system to winscp server
@Erwinsmith94040
@Erwinsmith94040 3 жыл бұрын
Its work but size of file was changed we need to specify size in bytes
@kitsune2184
@kitsune2184 4 жыл бұрын
thank you for explaining everything so well
@merveillejora4991
@merveillejora4991 10 ай бұрын
fast and efficient tutorial
@hatit8074
@hatit8074 5 жыл бұрын
How to get the file name as dynamic input brother? Am struggling with it.
@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
@rohitpatil6276
@rohitpatil6276 5 жыл бұрын
hi is this working for transfer file from one server to other?
@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)
@JerrinJoshua18
@JerrinJoshua18 3 жыл бұрын
Thankyou it is very useful
@abraambutrous4632
@abraambutrous4632 4 жыл бұрын
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.
@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 !
@simonemastroianni1985
@simonemastroianni1985 6 жыл бұрын
How I can send a photo from client instead of server? Please is urgent
@mediabuzz4559
@mediabuzz4559 6 жыл бұрын
Nice explanation
@jayantagarwal6339
@jayantagarwal6339 5 жыл бұрын
Great one
@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.
@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
@saloniprajapati1019
@saloniprajapati1019 6 жыл бұрын
good explanation
@thecodersbay8157
@thecodersbay8157 6 жыл бұрын
saloni prajapati thanku 😊
@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
@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."
@manishasarkar5412
@manishasarkar5412 6 жыл бұрын
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 6 жыл бұрын
You can find my code in the description, try to run that code it will work.
@manishasarkar5412
@manishasarkar5412 6 жыл бұрын
​@@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?
@doaata5476
@doaata5476 6 жыл бұрын
????????/hi pleeeeese can you help me How can we run it between two computers?
@mclama_amine3724
@mclama_amine3724 6 жыл бұрын
Thanks my friend👍👍👍
@tcetrox5691
@tcetrox5691 6 жыл бұрын
SIr i dont know hw to run your code in cmd pls help
@pianoblader4263
@pianoblader4263 6 жыл бұрын
use an ide ;/
@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
@sherdil3069
@sherdil3069 5 жыл бұрын
very nice video sir , plz give me source code
@sherdil3069
@sherdil3069 5 жыл бұрын
email me please muhammadwakeel043@gmail.com
@ddiegor4531
@ddiegor4531 3 жыл бұрын
Awesome!!!!!!!!!!!!!, thank you so much
@barath8190
@barath8190 Жыл бұрын
Pls be my java tutor😫
@supermariomistickgames4700
@supermariomistickgames4700 4 жыл бұрын
Thanks this was helpful
@AamirK11
@AamirK11 11 ай бұрын
Thanks
@geethask7357
@geethask7357 5 жыл бұрын
Code s not working
@fauzifathurrahman2404
@fauzifathurrahman2404 6 жыл бұрын
this is Server to client not client to server ya.???
@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
@thanhdatthanhdat7696
@thanhdatthanhdat7696 4 жыл бұрын
Thank you very much
@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?
@probaldeepsaikia
@probaldeepsaikia 4 жыл бұрын
code?
@thecodersbay8157
@thecodersbay8157 6 жыл бұрын
Frndz plzz do subscribe :)
@pratibhayadav4916
@pratibhayadav4916 Жыл бұрын
Still error
@sillypuppygurl
@sillypuppygurl 5 жыл бұрын
i love your voice :> no joke
@phamcaoson3698
@phamcaoson3698 4 жыл бұрын
Love u so much
@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.
@prottaybadhon8112
@prottaybadhon8112 3 жыл бұрын
source code pls
@siddhantgour2622
@siddhantgour2622 5 жыл бұрын
not working
@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
Thecodersbay
Рет қаралды 7 М.
Java Socket Programming - Multiple Clients Chat
40:18
WittCode
Рет қаралды 189 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Python Sockets Simply Explained
39:33
NeuralNine
Рет қаралды 168 М.
Simple TCP Chat Room in Java
39:05
NeuralNine
Рет қаралды 100 М.
How to run java code for file transfer using socket
9:19
Akilandeswary G
Рет қаралды 971
TLS Handshake Explained - Computerphile
16:59
Computerphile
Рет қаралды 570 М.
TCP Socket Programming in Java
20:43
Arul Xavier V M
Рет қаралды 16 М.
Java Socket Programming Client Server Messenger
16:28
WittCode
Рет қаралды 110 М.
Java Socket Programming 4 - Multi-client interactive sessions
23:17
David Dobervich
Рет қаралды 145 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН