File transfer program in java using TCP made Simple

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 106

  • @081suvetha8
    @081suvetha8 2 роки тому +3

    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❤️

  • @unholydiver1095
    @unholydiver1095 4 роки тому +10

    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 років тому +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 років тому +3

    This is probably gonna help me sort out the real-life project problem in my company.....thanks again

  • @alphanelmas1662
    @alphanelmas1662 3 роки тому +1

    This video is really useful for me and you explained the concept well maan thanks

  • @sucharitaghosh4511
    @sucharitaghosh4511 5 років тому +4

    Thanks for explaining each n everything u used into this

  • @mhmzdev
    @mhmzdev 4 роки тому +2

    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 ....

  • @joancamiloolmosduran1434
    @joancamiloolmosduran1434 4 роки тому +1

    My Friend thaks so much, you video help me with a homework
    Greetings from Colombia.

  • @OfficialB90
    @OfficialB90 3 роки тому +1

    Thank you so much man you saved me on my school project!

  • @null3081
    @null3081 3 роки тому +2

    First tutorial that worked :D
    Thanks a lot

  • @kunal_chand
    @kunal_chand 5 років тому +2

    God bless you man !!
    I loved the way you explained each and every function's properties.

  • @chinmaygopal9295
    @chinmaygopal9295 6 років тому +1

    I really loved this video. Keep it up man, short and to the point. Subscribed

  • @meriembr3923
    @meriembr3923 3 роки тому +1

    God bless you bro your are amazing thats help me

  • @buddikagunawardena2200
    @buddikagunawardena2200 3 роки тому

    Very good tutorial! Keep up the good work brother!

  • @hemanthmodani1631
    @hemanthmodani1631 3 роки тому +1

    Thanks a lot, i now got a clear idea

  • @farooqahmed-tu3pr
    @farooqahmed-tu3pr 5 років тому +1

    Very awesome explaining bro
    But I want many clients and single server

  • @kitsune2184
    @kitsune2184 5 років тому +2

    thank you for explaining everything so well

  • @merveillejora4991
    @merveillejora4991 10 місяців тому

    fast and efficient tutorial

  • @JerrinJoshua18
    @JerrinJoshua18 3 роки тому

    Thankyou it is very useful

  • @mediabuzz4559
    @mediabuzz4559 6 років тому

    Nice explanation

  • @jayantagarwal6339
    @jayantagarwal6339 5 років тому

    Great one

  • @saloniprajapati1019
    @saloniprajapati1019 6 років тому +1

    good explanation

  • @ddiegor4531
    @ddiegor4531 3 роки тому

    Awesome!!!!!!!!!!!!!, thank you so much

  • @RakibOFC
    @RakibOFC 3 роки тому

    Why did the client receive a 20KB file instead of a 1KB file? How to fix this problem?

  • @arkdtk
    @arkdtk 4 роки тому

    I don't know why but the client stream does not read anything. Can you help me?

  • @mclama_amine3724
    @mclama_amine3724 6 років тому

    Thanks my friend👍👍👍

  • @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

  • @SKTWoodDesign
    @SKTWoodDesign 5 років тому +1

    Do you have file transfer from client to server tutorial?

  • @roronoa_d_law1075
    @roronoa_d_law1075 5 років тому +1

    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

  • @Fireninja747
    @Fireninja747 6 років тому

    Hi, how would automate the process of calling fileclient after fileserver?

  • @supermariomistickgames4700
    @supermariomistickgames4700 4 роки тому

    Thanks this was helpful

  • @deema3861
    @deema3861 2 роки тому +1

    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🙏🏻

  • @thanhdatthanhdat7696
    @thanhdatthanhdat7696 4 роки тому +1

    Thank you very much

  • @kanavkohli2751
    @kanavkohli2751 6 років тому

    need a java program that read the files from ftp path.Any idea ?

  • @hatit8074
    @hatit8074 5 років тому

    How to get the file name as dynamic input brother? Am struggling with it.

  • @florisrobert
    @florisrobert 5 років тому

    Does this work for transferring files between 2 computers via a network?

  • @shitaldhanba1132
    @shitaldhanba1132 5 років тому

    In your F: folder, there is already rolly.txt file??

  • @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.

  • @mediabuzz4559
    @mediabuzz4559 6 років тому

    Is there any restrictions about size of file for sharing between client and server

  • @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

  • @saisandeep1966
    @saisandeep1966 5 років тому

    can we use the same program for transfer of video files by changing extension

  • @crazyksp8344
    @crazyksp8344 4 роки тому

    what does buf do?

  • @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..

  • @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

  • @mounikagirada5225
    @mounikagirada5225 4 роки тому

    how this can be done between two different system..?

  • @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 !

  • @wolfcompany2
    @wolfcompany2 2 роки тому

    How do I use this transfer for image file?

  • @thecodersbay8157
    @thecodersbay8157  6 років тому

    Frndz plzz do subscribe :)

  • @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 :)

  • @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

  • @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

  • @phamcaoson3698
    @phamcaoson3698 4 роки тому +1

    Love u so much

  • @sahanavagga
    @sahanavagga 4 роки тому

    why we didn't used byte array in client code

  • @ronnyaman4524
    @ronnyaman4524 6 років тому

    Will this require a internet network connections.

  • @Ever4u
    @Ever4u 4 роки тому

    nice sir,can u tell me how to stream audio from from pc to another pc in java

  • @padmavathy1869
    @padmavathy1869 10 місяців тому

    Udp program sir?

  • @abraham2961
    @abraham2961 5 років тому

    Can you help me to write a code to transfer file from local system to winscp server

  • @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."

  • @simonemastroianni1985
    @simonemastroianni1985 6 років тому

    How I can send a photo from client instead of server? Please is urgent

  • @bybono6542
    @bybono6542 5 років тому

    Doesn't work with different network right?

  • @hafizmuhammadadnan2411
    @hafizmuhammadadnan2411 5 років тому

    bro please guide us how can i send file from one pc to multiple pc by using socket ????

  • @dheepikap3734
    @dheepikap3734 6 років тому +1

    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)

  • @rohitpatil6276
    @rohitpatil6276 5 років тому

    hi is this working for transfer file from one server to other?

  • @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??

  • @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.

  • @apoorvaharlapur1998
    @apoorvaharlapur1998 5 років тому

    Want to send a file from client to server..plz make a video on it..

  • @sillypuppygurl
    @sillypuppygurl 5 років тому +1

    i love your voice :> no joke

  • @AamirK11
    @AamirK11 Рік тому

    Thanks

  • @Erwinsmith94040
    @Erwinsmith94040 3 роки тому

    Its work but size of file was changed we need to specify size in bytes

  • @manishasarkar5412
    @manishasarkar5412 6 років тому +2

    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?

  • @maissainfo8565
    @maissainfo8565 6 років тому +1

    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

  • @GunRotMG
    @GunRotMG 4 роки тому

    For fucks sake why is everyone using localhost and not a lan.

  • @tcetrox5691
    @tcetrox5691 6 років тому

    SIr i dont know hw to run your code in cmd pls help

  • @geethask7357
    @geethask7357 5 років тому

    Code s not working

  • @barath8190
    @barath8190 Рік тому

    Pls be my java tutor😫

  • @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?

  • @sherdil3069
    @sherdil3069 5 років тому +1

    very nice video sir , plz give me source code

    • @sherdil3069
      @sherdil3069 5 років тому

      email me please muhammadwakeel043@gmail.com

  • @pratibhayadav4916
    @pratibhayadav4916 2 роки тому

    Still error

  • @fauzifathurrahman2404
    @fauzifathurrahman2404 6 років тому

    this is Server to client not client to server ya.???

  • @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.

  • @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

  • @probaldeepsaikia
    @probaldeepsaikia 4 роки тому

    code?

  • @siddhantgour2622
    @siddhantgour2622 5 років тому

    not working

  • @prottaybadhon8112
    @prottaybadhon8112 3 роки тому

    source code pls

  • @kuvashneenaidoo4475
    @kuvashneenaidoo4475 4 роки тому

    can someone do my assignment for me :')