Byte Stream in Java जावा में बाइट स्ट्रीम
Byte Stream in Java is used to read and write 8-bit binary data like files, images, audio, and video. जावा में बाइट स्ट्रीम का उपयोग 8-बिट बाइनरी डेटा को पढ़ने और लिखने के लिए किया जाता है, जैसे फाइल, इमेज, ऑडियो और वीडियो। बाइट स्ट्रीम दो प्रकार की होती हैं:- InputStream (इनपुट स्ट्रीम) OutputStream (आउटपुट स्ट्रीम) 1️⃣ InputStream (इनपुट स्ट्रीम) InputStream is a superclass that reads data from a source like file, device, or socket. InputStream एक सुपरक्लास है जो डेटा को किसी स्त्रोत (फाइल, डिवाइस, या सॉकेट) से पढ़ती है। 🔹 Common Methods of InputStream Method Description (English) विवरण (Hindi) int read() Reads next byte of data अगली बाइट को पढ़ता है int available() Returns number of available bytes उपलब्ध बाइट्स की संख्या लौटाता है void close() Closes the stream स्ट्रीम को बंद करता है 2️⃣ OutputStream (आउटपुट स्ट्रीम) Outp...