Reputation: 1397
I was successfully tested Blobstore upload tutorial. But it use serve method to view the file. I can't find any way to get file path. Normally in php when we upload a file we get the file path, so we can embed that file in html. How can I do that in BlobStore. I searched on stackoverflow and google, I could find python examples but I can't find any for java.
Upvotes: 0
Views: 1658
Reputation: 11706
As you can see in the tutorial example:
res.sendRedirect("/serve?blob-key=" + blobKey.getKeyString());
you have to create a link in your HTML page that looks like:
<a> href="/serve?blob_key=.... blob_key_of_this_blob ....>Serving the BLOB</a>
Upvotes: 5