39
Views
8
Comments
Change Image Link from Google Cloud Storage Permission to Outsystems (to be Public)
Question

I have a issue when I want upload photo to Google Cloud Storage (GCS), then I want get the photo link from Google Cloud Storage (GCS) . It will be must have access from Google Cloud Storage (GCS) . Do you know how to change public photo link from outsystems? 

How I can get the link photo after I upload the photo to Google Cloud Storage (GCS)  even though the photo in Google Cloud Storage (GCS)  is not public. Because I try it before, for getting the link photo there is a problem if I open the link in browser.


this is example link photo after I upload to Google Cloud Storage (GCS) , then I get the link using assignment

https://www.googleapis.com/download/storage/v1/b/boss-gcp-storage/o/4CD42C58D998BB1BCFA8BB7E1ED2668E?generation=1674702777995581&alt=media


2023-01-25 05-43-21
Murugan S S

Hi Monifa, 


Question not clear , could you please elaborate more about this 


Thanks

Murugan SS 

UserImage.jpg
Monifa Arini

I have add the question

2023-01-25 05-43-21
Murugan S S
https://www.outsystems.com/forums/discussion/34673/getting-image-url-from-binary-data/ Check this discussion is tis related to you
2021-10-09 07-57-44
Stefan Weber
 
MVP

Google Drive? Here is an article on how to construct a publicly available url for images stored in google drive https://daily-dev-tips.com/posts/host-images-via-google-drive/

Stefan

UserImage.jpg
Monifa Arini

Sorry, I mean Google Cloud Storage not Google Drive

2021-10-09 07-57-44
Stefan Weber
 
MVP


https://cloud.google.com/storage/docs/access-control/making-data-public

UserImage.jpg
Monifa Arini

If I want public from outsystems, how the way? Even though in GCS is not public. I mean, Can I setting public if I assignment in outsystems?

2021-10-09 07-57-44
Stefan Weber
 
MVP

The easiest way to do is to download the Binary from Google Storage and instead of using the link you use the Binary Data to display the image. You cannot use the link returned by Google Storage as it is just a reference link and does not contain authorization data.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.