googleapis/elixir-google-api

Copying Object in GCS

Praveen019283 opened this issue · 0 comments

I am trying to copy object(image) using GoogleApi.Storage.V1.Api.Objects.storage_objects_copy from one bucket to another
Getting error : Unsupported content with type: application/octet-stream

I tried to change the contentType from application/octet-stream to image/jpeg. It was successful.
When i query object by using GoogleApi.Storage.V1.Api.Objects.storage_objects_get, i can verify about content Type being image/jpeg.

Still when i try to copy object, it throws above error..