I developed a mass file up loader (a swing application) recently.One of the new requirements is to support uploading thousands of documents (GIF,JPG,PNG,DOCX,XLSX), each of these are like 3MB-10MB of size ...
i am developing a piece of code to generate a unique hexadecimal value from an input string. The output size must be less than 11 bytes which comes as requirement.Can someone ...
It may be a silly question, but if all you have is a single image file, why are you using an ObjectStream? If the file has been fetched from disk it probably came in as a stream of bytes, so why not just send those bytes straight to the server and convert to an object at the server end? If this ...
Pourang, 1) s.length() will give you the number of bytes. Since characters are one byte (at least in ASCII), the number of characters is the same as the number of bytes. Another way is to get the bytes themselves and count them s.getBytes().length. 2) As Strings are immutable, you would need to have a 100 byte array with data on hand ...