File file=new File(imgName);
byte[] originalImage=null;
try{ // here i read the original image to get the header
BufferedImage Image = ImageIO.read(file);...
Type: Posts; User: lanya1
File file=new File(imgName);
byte[] originalImage=null;
try{ // here i read the original image to get the header
BufferedImage Image = ImageIO.read(file);...
my code is to long i embed image bit to audio but when restore the image my byte restored correctly but i have problem with reconstruct the image
i get the the error reading png file so i skip 8...
i get the byte from buffered image and restore them from buffered image but i still have the same problem ,second i test it by image correlation measure to test their similarity the correlation...
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.image.WritableRaster;
import java.io.ByteArrayInputStream;
import java.io.File;
import...
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import java.awt.image.WritableRaster;
import java.io.ByteArrayInputStream;
import java.io.File;
import...
Hi
i have problem with converting gray image to byte array and byte array to image in java, the size of input image are difference
with the output image ,anybody can help me
hi , am converting gray image to byte array and v disice versa by using bytearrayoutputstream and inputstream but it didn't displayed image am try by getting width and hieght but tere difference...