Is it possible to preview the pdf file from GCP using java through the signed urls

0 votes
//As of now I can able to download the pdf file from GCP using the signed URL with the help of the below //code
BlobInfo blobInfo = BlobInfo.newBuilder(BlobId.of(bucketName, gcsFolderPrefix + fullFileName)).build();
    URL url = storage.signUrl(blobInfo, 15, TimeUnit.MINUTES, Storage.SignUrlOption.withV4Signature());
Nov 23, 2020 in GCP by ajith
• 120 points

edited Nov 24, 2020 by MD 1,376 views

1 answer to this question.

0 votes

Hi@ajith,

You can preview something if it is already downloaded. Everything will download first in your browser then you can see that. For example, if you have one file in GCP, then you can see the file with your browser. But internally, it will download the file first then it shows the output in the browser.

answered Nov 24, 2020 by MD
• 95,460 points

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Is it possible to require labels on creation of any of the GCP resources?

The labels are a simple way to group resources that are connected or related to others. For example you'll ...READ MORE

answered Nov 5, 2019 in GCP by anonymous
• 59,230 points
2,276 views
0 votes
1 answer

Is it possible to rename a project in GCP?

Yes, it is possible to rename your ...READ MORE

answered Sep 27, 2019 in GCP by Sirajul
• 59,230 points
21,228 views
0 votes
0 answers

how to send a pdf file as a response to frontend?

when a user upload a file to ...READ MORE

Apr 11, 2020 in Java by Abhishek
• 120 points
3,276 views
0 votes
1 answer
0 votes
1 answer

How to change the project in GCP using CLI command?

Hi@akhtar, If you configured GCP SDK in your ...READ MORE

answered Sep 13, 2020 in GCP by MD
• 95,460 points
2,677 views
0 votes
1 answer

How to authenticate with the correct account in GCP from Command Line?

Hi@akhtar, You can check your accounts from the ...READ MORE

answered Sep 24, 2020 in GCP by MD
• 95,460 points
528 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP