I would like to send an encrypted image over UDP, for that reason I would like to encrypt the image without compression using RC4. The reason I don't want compression is because I don't want the errors to multiply.
I am looking for a way to transform the image from BufferedImage to byte array without compression.
-
@HarryHarrison Can you give me a little bit more information about DataBufferByte since the oracle docs are not enough? For bufferedimages ill it store in an array the bytes for RGB for every pixels?user5588938– user55889382015-11-21 12:37:57 +00:00Commented Nov 21, 2015 at 12:37
-
How is DataBufferByte even related to this question? You need to explain further and improve the quality of your questionHarry Harrison– Harry Harrison2015-11-21 12:40:31 +00:00Commented Nov 21, 2015 at 12:40
-
@HarryHarrison DataBufferByte is used in the question you linked in the comments aboveuser5588938– user55889382015-11-21 12:42:18 +00:00Commented Nov 21, 2015 at 12:42
-
Sorry, didn't spot that in the other question as it's part of the attempt presented in the question which would be replaced by the code in the answer.Harry Harrison– Harry Harrison2015-11-21 12:46:07 +00:00Commented Nov 21, 2015 at 12:46
-
I would say you have two questions hereDaniel Alder– Daniel Alder2015-11-21 12:46:27 +00:00Commented Nov 21, 2015 at 12:46
|
Show 3 more comments