Hi!
You can expose your own links instead (like /download/{clientid}/{fileid}).
Check if the user is logged in as appropriate and then serve the blob:
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException {
BlobKey blobKey = new BlobKey(req.getParameter("blob-key"));
blobstoreService.serve(blobKey, res);
}
source:
http://stackoverflow.com/questions/1994242/trying-to-retrieve-file-from-blobstore-and-send-it-as-mail-attachment-using-googl
On Sat, Sep 17, 2011 at 5:25 AM, Stefanos Antaris <[email protected]>wrote:
> Hi to all developers,
>
> i am developing a new web application for a company and i am using blobs to
> upload and serve some files. However, i have noticed that if i already have
> the blob item's link i can download the file. As the enterprise's policy is
> to download the file whoever have already paid for this, i need to have some
> restrictions the blob items and the items should be downloadable only to the
> appropriate users and not to the public. Can this be done?
>
> Thanks in advance,
> Stefanos Antaris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/_ICZnqYxM_sJ.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
--
Bruno Fuster
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.