diff --git a/registration-processor/init/registration-processor-packet-receiver-stage/src/main/java/io/mosip/registration/processor/packet/receiver/service/impl/PacketReceiverServiceImpl.java b/registration-processor/init/registration-processor-packet-receiver-stage/src/main/java/io/mosip/registration/processor/packet/receiver/service/impl/PacketReceiverServiceImpl.java index 6ef30cac0fb..f16aa1f0c9c 100644 --- a/registration-processor/init/registration-processor-packet-receiver-stage/src/main/java/io/mosip/registration/processor/packet/receiver/service/impl/PacketReceiverServiceImpl.java +++ b/registration-processor/init/registration-processor-packet-receiver-stage/src/main/java/io/mosip/registration/processor/packet/receiver/service/impl/PacketReceiverServiceImpl.java @@ -527,7 +527,8 @@ public MessageDTO processPacket(File file) { DirectoryPathDto.LANDING_ZONE); } else if(landingZoneType.equalsIgnoreCase(LandingZoneTypeConstant.OBJECT_STORE)) { - boolean result =objectStoreAdapter.putObject(landingZoneAccount, registrationId, null, null, packetId, encryptedInputStream); + boolean result = objectStoreAdapter.putObject(landingZoneAccount, registrationId, null, null, + packetId, new ByteArrayInputStream(encryptedByteArray)); if(!result) { throw new ObjectStoreNotAccessibleException("Failed to store packet : " + packetId); }