🔴 #21: Streams and Buffer in Node JS with Example | Readable & Writable Streams in Node.JS in Hindi

Поделиться
HTML-код
  • Опубликовано: 20 сен 2020
  • Welcome, what is Streams Module in node js in Hindi?
    Streams are objects that let you read data from a source or write data to a destination in a continuous fashion. In Node.js, there are four types of streams −
    Readable − Stream which is used for a read operation.
    Writable − Stream which is used for a write operation.
    Duplex − Stream which can be used for both reading and write operation.
    Transform − A type of duplex stream where the output is computed based on input.
    Each type of Stream is an EventEmitter instance and throws several events at a different instance of times. For example, some of the commonly used events are −
    data − This event is fired when there is data is available to read.
    end − This event is fired when there is no more data to read.
    error − This event is fired when there is an error receiving or writing data.
    finish − This event is fired when all the data has been flushed to the underlying system
    Streaming means listening to music or watching a video in ‘real-time’, instead of downloading a file to your computer and watching it later
    🔴 Follow me on Instagram: / vinodthapa55
    ************ Must Watch Videos For Web Development ************
    ➡️ ReactJS Tutorial in Hindi 2020 Playlist Link: • React JS Tutorial in H...
    ➡️ Fat Arrow Function in JavaScript in Hindi 2020: • ES6 Tutorial #8: Fat A...
    ➡️ #22: React JS Project Netflix App Part #1 in Hindi in 2020: • #22: Props in React Js...

    ➡️ Install VS Code for ReactJS LINK: www.thapatechnical.com/2020/0...
    ➡️ Check Complete Reactjs in One video here 👇 • ReactJS For Beginners ...
    ➡️ HTML in One Video: • Learn HTML in One Vide...
    ➡️ CSS in One video: • Learn Complete CSS In ...
    ➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
    ➡️ JavaScript in One video: • JavaScript in One Vide...
    ➡️ ECMAScript 6 in One Video: • ES5 & ES6 | ECMAScript...
    ➡️ HTML5 in one video: • HTML5 Tutorial in One ...
    ➡️ CSS3 in one video: • Learn Complete CSS3 In...
    ➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
    ➡️ Jquery in One video: • jQuery in One Video in...
    ➡️ JSON in one video: • JSON in One Video in H...
    ➡️ ReactJS in one video: • ReactJS For Beginners ...
    ➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
    ➡️ NodeJS in one video: / ipnwakoibt
    ➡️ MySQL in one video: • Complete SQL & MySQL i...
    ********** CLICK HERE TO WATCH ************
    ➡️ Fetch API in JavaScript: • Fetch API in JavaScrip...
    ➡️ AJAX tutorial for beginners in Hindi: • AJAX tutorial for begi...
    ➡️ Async Await in JavaScript in Hindi: • Async Await in JavaScr...
    ➡️ Promises in JavaScript in Hindi: • Master The Promises in...
    ➡️ Callback Hell in JavaScript: • Callback Hell in JavaS...
    ➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
    ➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
    ➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
    ➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
    ➡️ Source Code Link: www.thapatechnical.com/2019/1...
    ➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
    ➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
    ➡️Plz show some love to My Siter RUclips Channel and Plz Subscribe Link: / @mayabeautyvlogs878
    **************** MUST WATCH VIDEOS *****************
    ➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
    ➡️ How To Become a Web Developer 2020: • How To Become a Web De...
    ➡️ How JavaScript Works: • How JavaScript Works i...
    ➡️ Follow me on Instagram: / vinodthapa55
    Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
    ➡️ Link: • Make Website Responsiv...
    Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
    Don't Forget to Follow me on all Social Network,
    Website Link: www.thapatechnical.com
    Instagram Link: / vinodthapa55
    Facebook Link: / vinodthapa55
    Twitter Link: / vb55thapa
    Facebook ThapaTechnical Page Link: vinodbahadur...

Комментарии • 152

  • @ThapaTechnical
    @ThapaTechnical  3 года назад +18

    Good Morning guys :) Aj ka video is very useful and informative hai about What Exactly Streaming is? Plz LIKE and SHARE the video with your friends ok :) and for more plz 🔴 Follow me on Instagram: instagram.com/vinodthapa55/

    • @Bake-n-shine
      @Bake-n-shine 3 года назад

      Bhai Android Studio par kab video banaaoge we all are waiting.

    • @sourodipbiswas2001
      @sourodipbiswas2001 3 года назад +1

      nice video sir, but rstream not defined ka error aa raha hai... please help

    • @surendrabisht2523
      @surendrabisht2523 3 года назад

      video axha lga . like kr dia. 6:05 :D

    • @pavansaibitla9008
      @pavansaibitla9008 4 месяца назад

      but you didnot reply to comment for any doubts

  • @mathis-meth4229
    @mathis-meth4229 3 года назад +2

    bhai aapko bahut deep knowledge hai JavaSCript ki. Thnk you for sharing your knowledge with us :))

  • @sushilyadav-dm5rr
    @sushilyadav-dm5rr 3 года назад +1

    not enjoyment and not sorrow only see awesome ,fantastic nodejs video

  • @learn_Japanese_with_sam
    @learn_Japanese_with_sam 3 года назад +1

    Bhai apki saari videos is best.

  • @javascriptwar9525
    @javascriptwar9525 3 года назад +3

    It is a best things you share sir..❤

  • @rajarai1736
    @rajarai1736 3 года назад +4

    your teaching method is❤❤❤❤👏👏👏👏❤❤❤❤

  • @himanshuraj254
    @himanshuraj254 3 года назад +2

    Bhaiya Ji SuperHit😊👏👏🙏

  • @jhs003
    @jhs003 Год назад

    Itne details me to google bhi nhi batata...Your tutorials helps me a lot ...Thank you bhai

  • @jiteshthakare2687
    @jiteshthakare2687 3 года назад +11

    Hello vinod you are just awesome..... Can you give us a video where you can show how to build Amazon clone with react JS....like clever programmer..... because we understand properly when you explain in Hindi..... Your style of explaining is damn awesome bro..... please 🤞

  • @shivamvora2285
    @shivamvora2285 3 года назад

    This tutorial is very awesome

  • @mathis-meth4229
    @mathis-meth4229 3 года назад +8

    amazing video! very informative and in depth. Brother, can you please make a roadmap for how to learn SERVER-SIDE-PROGRAMMING?

  • @Asim_Ali4857
    @Asim_Ali4857 10 месяцев назад

    I enjoyed a lot in this video thanks sir

  • @rajuraj1257
    @rajuraj1257 3 года назад

    superb video. thanks

  • @deepikakapoor9607
    @deepikakapoor9607 3 года назад +5

    Thank you so much ☺️

  • @pratiksaria5830
    @pratiksaria5830 3 года назад

    I am Loving IT

  • @tahsinxeelani3107
    @tahsinxeelani3107 2 года назад +1

    underrated channel

  • @shvetakumar4376
    @shvetakumar4376 3 года назад +1

    Thanks for this sir

  • @spacewalk7988
    @spacewalk7988 3 года назад +1

    And boom 🔥🎉

  • @pritamchakraborty4407
    @pritamchakraborty4407 3 года назад

    You are great sir

  • @soumyaranjanpanda7532
    @soumyaranjanpanda7532 3 года назад

    Nicely explained sir

  • @Sp-px7gn
    @Sp-px7gn 3 года назад

    Awesome video sir

  • @sushilyadav-dm5rr
    @sushilyadav-dm5rr 3 года назад

    thanks for making vedio bro

  • @vivekpadelkar5624
    @vivekpadelkar5624 3 года назад

    nice work lad.....

  • @eramperwez4376
    @eramperwez4376 3 года назад

    Thanks alot sir

  • @Ajaysharma-ox9rr
    @Ajaysharma-ox9rr 2 года назад +3

    This was a pretty awsome video, can u make a video on streaming sql database using sequelize

  • @shaikhmohammod9446
    @shaikhmohammod9446 3 года назад

    you are awosame

  • @rnabyankitavasthi
    @rnabyankitavasthi Год назад

    this course in very good

  • @jholjhaldai7173
    @jholjhaldai7173 3 года назад +5

    a big request of your fan . I watched webdev simplified on Zoom clone but it had some issues. Pls show us a live video on how to do video live stream like zoom or Google meet with screen sharing option, Recording feature and user login system authorization. Thankyou

  • @shubhamnegi1996
    @shubhamnegi1996 3 года назад

    First review and nice video

  • @l_am_genius
    @l_am_genius 5 месяцев назад

    thanks sir😊

  • @avmalik3705
    @avmalik3705 2 года назад

    thk bhaiyaa

  • @priyanshuagrawal9204
    @priyanshuagrawal9204 Год назад +5

    instead of res.write , we should have used res.append (i think so), bcaz when another stream of data will come then the previous data will be overwritten.

  • @lightningemperor9377
    @lightningemperor9377 Год назад

    majaa aagyaa

  • @PrinceKumar-dp4ri
    @PrinceKumar-dp4ri 2 года назад

    Mast

  • @kumawatnaresh3451
    @kumawatnaresh3451 3 года назад

    🔥

  • @patelujwal5581
    @patelujwal5581 3 года назад +3

    sir...please make video on payment gateway ...

  • @mollamainuddin6485
    @mollamainuddin6485 3 года назад +4

    .on method to EventEmitter class ka method h ..to... server object on method ko kayse access kiya..???

  • @pfgdanish8852
    @pfgdanish8852 5 месяцев назад

    ye hard tha brother

  • @mrankushtechnical
    @mrankushtechnical 3 года назад +5

    You said that streams are object of EventEmitter but your are not creating any object of EventEmitter why ?

    • @datastructure_solved5839
      @datastructure_solved5839 3 года назад

      not sure but i guess its there when we created , rstream = fs.ReadStream();

    • @sonalisahoo5953
      @sonalisahoo5953 2 года назад +1

      @@datastructure_solved5839 HI,
      Like event.on("xyz", ()=>{}), we use "xyz" as event name and we call that event using event.emit("xyz");
      So i think the same way we are using server.on("request".....). But there is no calling to "request". Can u explain me then what does "server.on" do? Below is the code.
      server.on("request", (req, res) => {
      var fs = require("fs");
      fs.readFile("input.txt", (err, data) => {
      if(err) {return console.error(err);}
      res.end(data.toString());
      });
      });
      Thnk u.

  • @dreamerb1
    @dreamerb1 Год назад

    Vinod Bhai is the best

  • @badshahgaming7714
    @badshahgaming7714 3 года назад +6

    Plz plz make mongodb tutorial with node js after this...🙏🙏🙏🙏

    • @DigitalAman
      @DigitalAman 3 года назад +1

      jaroor

    • @onkar10046
      @onkar10046 2 года назад +1

      @@DigitalAman tu kyu reply de raha hai🤣😂😂

  • @monireol
    @monireol 3 года назад +2

    Sir How Can I Use Mongodb In Node Js.
    Please Make Video In Future.
    I Have To Learn :)

  • @unemployedcse3514
    @unemployedcse3514 3 года назад +1

    Bro I think you missed to explain flush callback(), rest vedio awesome bro

  • @Anonymous-cb6by
    @Anonymous-cb6by 3 года назад

    Sir please make a video on javascript intersectionObserver

  • @AbdulSamad-em4of
    @AbdulSamad-em4of 3 года назад +2

    sir have issue in res.write(chunkdata) i follow u step by step
    -------->>>>>>>>
    E:
    ode\streamModule\index.js:11
    res.write(chunkdata);
    ^
    ReferenceError: res is not defined
    at ReadStream. (E:
    ode\streamModule\index.js:11:5)

  • @ashiskanu7101
    @ashiskanu7101 3 года назад +2

    Server.on('request'
    Yea request kaha sea aya ??
    Or yea on exactly hea kia ??

  • @TOMGAMING-hy9hi
    @TOMGAMING-hy9hi 3 года назад +1

    sir me pura 4 din laga diya akhir ye streams and buffers hai kya kuch samaj nahi aa raha tha but apki video dekhane ke bad concepts clear hogaya but doubt abhi bhi hai kya node.js ka streams and buffers ka official documentation pura samjna jarrori hai as a developer ?

  • @Bake-n-shine
    @Bake-n-shine 3 года назад +1

    Bhai Android Studio par kab video banaaoge we all are waiting.

  • @iknokumfu1811
    @iknokumfu1811 3 года назад

    Bro I have Telegram bot that streams music in Telegram voice chat and iam using nodesoursce setup v.16x in that bro can u please suggest me which version is good for that kinda stuff????

  • @pratiksaria5830
    @pratiksaria5830 3 года назад

    Dai please create video on middleware in nodejs

  • @justforentertainment8393
    @justforentertainment8393 2 года назад +1

    Issue I written code but answer is not showing in local host server

  • @ehSamurai3483
    @ehSamurai3483 2 месяца назад

    Could you please make video on native stream

  • @subhajitbanik900
    @subhajitbanik900 Год назад

    Please give an example if image frames in stream

  • @usamanayab8381
    @usamanayab8381 Год назад

    we have made server.on(request , (err, data).
    but we are not triggering the request event, still it gives us data in browser..
    can anyone solve this confusion of mine?

  • @tushar351
    @tushar351 3 года назад

    Hey Thapa,
    I want to create a live broadcasting application. Where I will stream my screen and video and the users can see the live video. u can say like a cricket match. and I don't want the user's video. I will communicate with them through message. Can you guide me on what should I do?

  • @ShubhamGupta-ol5xy
    @ShubhamGupta-ol5xy Год назад +1

    hi why emit is not used here???.....

  • @ShafiqShaikh-nc7oo
    @ShafiqShaikh-nc7oo 5 месяцев назад

    Instra pista kaju badam gram masala share kardiya

  • @puneetsingh3448
    @puneetsingh3448 2 года назад

    Please Make video on lazy loading...

  • @techspider2528
    @techspider2528 3 года назад +1

    how to use node-fs shortcut?? How to enable it mine not working

  • @1981Praveer
    @1981Praveer 3 года назад +4

    @8.15 how did you add the shortcut. is it the feature of vscode ?, did you install any plugin in it >?

  • @mohitpatil7519
    @mohitpatil7519 Год назад

    sir please make a video for streaming using mongoose

  • @mugeesaleem3022
    @mugeesaleem3022 10 месяцев назад

    vinod I have a question this time How we get exact data without changing uft-8
    means we are not getting buffer data

  • @dhawalparmar7117
    @dhawalparmar7117 2 года назад

    Make video on video streaming bro

  • @knowledgeforall3360
    @knowledgeforall3360 3 года назад

    pls location tracker pe koi tutorial bnaen

  • @abhijeetgupta729
    @abhijeetgupta729 3 года назад +1

    res.write(chunkdata) after compiling am getting res is not defiened.
    would you help or comment it out for the response.

  • @akashrawat4417
    @akashrawat4417 3 года назад +2

    I have a doubt. How we can call an event without using EventListner clasd

    • @areejsajjad4581
      @areejsajjad4581 2 года назад

      It's not always necessary to use adEventListner .. there are many more methods like off, once etc

  • @harshdalsaniya3692
    @harshdalsaniya3692 3 года назад

    sir thell me that node shortcut extenssion....???

  • @ShubhamJain-qx9tv
    @ShubhamJain-qx9tv 3 года назад

    bhaiya aap ne ye node-fs kasa banaya ha mera to kaam nahi karr raha

  • @RajKadechaautoengineer
    @RajKadechaautoengineer 3 года назад

    Please cover ejs template language within series.

    • @mshahmirkhan
      @mshahmirkhan 2 года назад

      He already cover it. ejs is just file extension of react js

  • @poolman7786
    @poolman7786 6 месяцев назад

    How to stream a video plz do a video on that i am trying to do it but only buffer is shown

  • @ChandanKumar-wf5sx
    @ChandanKumar-wf5sx 3 года назад

    How to create a short cut?

  • @ygpointoffun9418
    @ygpointoffun9418 11 месяцев назад

    sir its is showing error thst end,write are not the functions

  • @jatinnandwani8427
    @jatinnandwani8427 2 года назад +1

    Bro one thing, The title of the video shows buffer, writable steam but you didn't talk about it and on the other hand, it does employ the full feature of steams. Please either choose correct titles or give full knowledge which is mentioned.

  • @parasnaulia9698
    @parasnaulia9698 Год назад

    Why we use server.on ....?

  • @rizwansiddiqui198
    @rizwansiddiqui198 Год назад

    I want to take data from
    Any server not from local directory
    We want like AWS-S3 bucket or cloudinary

  • @syedaliabidi7822
    @syedaliabidi7822 6 месяцев назад

    1:00

  • @ankitaggarwal8556
    @ankitaggarwal8556 5 месяцев назад

    [nodemon] app crashed - waiting for file changes before starting...
    How to solve this error?

  • @mr.luhar143
    @mr.luhar143 11 месяцев назад

    Sir server.on likha aapne to eventemitter ka use kyu nahi kiya ? Request bhi ak event hena🤔

  • @shaktii2181
    @shaktii2181 11 дней назад

    in 1st way when we read file, then we have to use utf-8 ? but you did not use that.

  • @jibanjyotinayak9359
    @jibanjyotinayak9359 2 года назад

    that node fs shortcut ,is it pre built in or u have done it personally.?

  • @dipusarker8072
    @dipusarker8072 3 года назад +2

    How we get node-fs shortcut ??????

  • @statuszone5443
    @statuszone5443 3 года назад

    Bhai Error AA rha hai ye
    events.js:292
    throw er; // Unhandled 'error' event
    ^
    Error: getaddrinfo ENOTFOUND 127.0.0.1
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
    Emitted 'error' event on Server instance at:
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1495:12)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:17) {
    errno: 'ENOTFOUND',
    code: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: ' 127.0.0.1'
    }

  • @umachauhan9665
    @umachauhan9665 3 года назад

    Sir please make a movie website with a movie please it's my request

  • @omeshdewangan3352
    @omeshdewangan3352 3 года назад +1

    If(error) return console.log()
    Samjh Nhi Aya...
    Isko Hum Jo Pahle Likhte The Simple Method Se Bhi Likh Sakte Hai....

    • @homedekstop2484
      @homedekstop2484 3 года назад

      its if statement, check out his Javascript series :)

  • @krishjgupta3017
    @krishjgupta3017 3 года назад

    Event to .then() ki tarh hai

  • @syedafatima168
    @syedafatima168 3 года назад

    Source code kaisy milyga bro?
    Apk whatsapp S no response

  • @yashgandhi-pg4rh
    @yashgandhi-pg4rh 5 месяцев назад

    Alert📢: there is a small mistake. Thapa Technical didn't use encoding in same line after the mentioned file path. Without encoding this code will run perfectly for small files but if you use larger files then page will keep loading.

  • @NipunRawat08
    @NipunRawat08 2 года назад

    buffer??

  • @navin_kg
    @navin_kg 3 года назад

    Mate I think this is my third time can you plz revert back of I can use the contents and convert it into my regional language so it will help the needy
    You may ask what for me ? (You may suggest it )

    • @Mohit-bk4nu
      @Mohit-bk4nu 3 года назад

      no you shouldn't, unless you're sharing ad revenue with him.

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 3 года назад

    *_NODE JS ME LIVE STREAM_* ❓ WOW
    *_PHP ME LIVE STREAM HOTA H_* ❓

  • @vishalkyadav3805
    @vishalkyadav3805 11 месяцев назад

    bro ye arrow kaise type kiya?

  • @imranjms
    @imranjms Год назад

    what is the name of the NODE-JS SNIPPET u just used in the 8:11 min bhai ?

  • @dhananjaybrahmane6386
    @dhananjaybrahmane6386 3 года назад

    that shortcut didnt work, what should i do?

  • @ahsannawab8548
    @ahsannawab8548 2 года назад +1

    8:16 not working

  • @ashoknandurka7204
    @ashoknandurka7204 2 года назад

    Bro how you got "input.txt" file there . Because You no where you created that file in streamModule folder

  • @RAKESHSINGH-mt6uk
    @RAKESHSINGH-mt6uk Год назад

    .on se to event define hote h n aur .emit se fire hote h aapne to kahi bhi .emit use nhi kiya naahi aapne event's ko require kiya fir kaise ye .on se event call ho gya plz anyone tell me yaar 😕😕

  • @sourodipbiswas2001
    @sourodipbiswas2001 3 года назад

    nice video sir, rstream not defined ka error aa raha hai... please help

  • @economicstock
    @economicstock Год назад

    stream nahi hua

  • @anuj60493
    @anuj60493 3 года назад

    Getting error server already in use.

  • @aryankhandelwal15
    @aryankhandelwal15 Год назад

    sir smg nahi aaya?