Hi,
I am having a package.
I need to get the package and upload to s3 bucket
I am using the following code
Resource resource = resolver.getResource(packagePath);
File asset=resource.adaptTo(File.class);
S3BucketConnector.uploadPackageToS3(asset);
Where package path will be /etc/packages/Query/query-1.14792.0.zip
resource is returing JcrNodeResource, type=nt:file, superType=null, path=/etc/packages/Query/query-1.14792.0.zip
After adapting asset is always null.
How to proceed with this??