What is the syntax for getting a Blobstore Android download URL?

I have a Blobstore download to work on GWT, but now I need an Android application to load on Blobstore. I saw this post explaining how to download once when I have a URL, but it doesn’t show the receipt of the URL: Using Google BlobStore with an Android app

My questions:

  • What url can i send?
  • What is the get syntax for blobstore?

thank

+1
source share
1 answer

I have it like this:

Widget.presenter.java:

uploadButton.addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 //init action
 imageService.getBlobStoreUploadUrl(new AsyncCallback<String>() {
      @Override
      public void onFailure(Throwable caught) {
        Window.alert("Oups Error at ImageUploaderPresenter");
      }
      @Override
      public void onSuccess(String result) {
        uploadForm.setActionUpload(result);
        uploadForm.submit();
      }
    }
  });
}

ImageServiceImpl.java:

@Override
public String getBlobStoreUploadUrl() {
    //Map the UploadURL to the uploadservice which will be called by
    //submitting the FormPanel
    return blobstoreService.createUploadUrl("/imageUpload");
}
0
source

All Articles