Reputation: 1
I am looking for retreiving the image into the jsp.
I found this link.
But in this i am not able to retreive the image into my desired jsp, it is just displaying the image
Upvotes: 0
Views: 1123
Reputation: 1404
I suggest you to serve Image from Blobstore as an Image Service, It will give your image better performance, sizes etc.
See my Code Below.
ImagesService services = ImagesServiceFactory.getImagesService();
ServingUrlOptions serve = ServingUrlOptions.Builder.withBlobKey(blobKey); // Blobkey of the image uploaded to BlobStore.
String url = services.getServingUrl(serve);
You will get the URL for the image which you can easily put in the Image tag of HTML.
<img src="url" />
More you can learn about image service of AppEngine from here. GAE Image Services
Upvotes: 1