title: .net Upload image to google storage
body: <p>Greetings im trying to upload an image to Google Cloud storage in .net
  it works it uploads but the problem is when i upload it it appears like the image below</p>
  
  <p><a href="https://i.stack.imgur.com/08XjY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/08XjY.png" alt="enter image description here"></a>
  on the other hand if i upload from angular it uploads fine but i can access the image and it appears like this </p>
  
  <p><a href="https://i.stack.imgur.com/NKqpz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NKqpz.png" alt="enter image description here"></a>
  can anyone help me</p>
  
  <p>i use this code </p>
  
  <pre><code> Public Sub UploadFile(bucketName As String, local Path As String, storage As StorageClient, objectName As String)
      Using F = File.OpenRead(localPath)
          objectName = "z1.png"
          storage.UploadObject(bucketName, objectName, Nothing, F)
          Console.WriteLine(objectName)
      End Using
  End Sub
  </code></pre>
  
  <p>what i have notices the one in angular has access token automatically but the one in the.net does not </p>