python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
I have this error: struct.error: unpack requires a buffer of 4 bytes when trying to decode a .wav file
Basically what I'm trying to do is get information about the .wav file and output it so i found this Stack Overflow question and followed the second most popular post because it seemed to be what i wa...
PrisTheMan
Votes: 0
Answers: 0
How can I undo this Base64 encoding? (Scala)
I have a piece of code which does some encoding like so:
def byteBufferToString(b: ByteBuffer): String = java.util.Base64.getEncoder.encodeToString(bb.array)
I'd also like another method which does t...
user3685285
Votes: 0
Answers: 0
How to properly read data from a SSLSocket and write them into a ByteBuffer
I'm trying to get data from TCP SSL Socket and write them into a ByteBuffer ( For "seekability" purposes ).
Currently i'm doing this way:
private SSLSocket sock;
private ByteBuffer bf;
t...
heph2
Votes: 0
Answers: 0
How to convert short array to BitSet with 2 bit precision in Java?
I have a short array {0,2,3,1,…} which I would like to convert to a BitSet.
Expected bits in bitset: 00 10 11 01 …
Every two bit in the bitset should represent a short. (2-bit precision)
This should w...

Jotschi
Votes: 0
Answers: 2