Skip to content

Subzero not serializing and compressing the Byte array object #14

Description

@mukul4u2005

I am not able to see the byte array object compressed by kryo it is having same size as normal serialization .

public class ImagePojo {

public String fileName;

public byte[] image;

public String getFileName() {
	return fileName;
}

public void setFileName(String fileName) {
	this.fileName = fileName;
}

public byte[] getImage() {
	return image;
}

public void setImage(byte[] image) {
	this.image = image;
}

}

SubZero.useForClasses(cfg, ImagePojo.class);
HazelcastInstance hzInstance = Hazelcast.newHazelcastInstance(cfg);

Please suggest.

I was thinking it will be using these package to compress:

import java.util.zip.DeflaterOutputStream;
import java.util.zip.InflaterInputStream;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions