Closed divyeshccl closed 5 months ago
You can get the content of the object by
$object = $this->service->getContainer('test')->getObject('test/test.jpg');
$stream = $object->download();
echo $stream->getContents();
You can get public URL via
$object = $this->service->getContainer('test')->getObject('test/test.jpg');
echo $object->getPublicUri();
But the file must be set public and some other settings must be set in Swift as far as I know.
Thanks @k0ka
I am using this to get the image
$object = $this->service->getContainer('test')->getObject('test/test.jpg')->download();
when I print $object I received this response. how to get the public URL?