Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Failed to display photo in Amazon S3 Bucket  RSS feed

 
gah hon
Greenhorn
Posts: 28
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Eclipse Development Tool to develop the JSP file.
And the file will be upload photo into particular bucket name in Amazon S3.
When the time I am execute the program through the Eclipse to test every functions (upload to S3 and retrieve all of the files from S3 to display on screen), and it is success to display on the Eclipse Development Tool.
But when after I export the application into WAR file and upload into my Amazon instance, I execute the application on my local computer (not instance) browser and it display the broken images again.
Any idea?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we possibly help without seeing the code? I can only guess that the URLs you are using for tine images are page-releative or similarly malformed. See the JspFaq for how to use server-relative URLs for resources.
 
gah hon
Greenhorn
Posts: 28
C++ Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:How can we possibly help without seeing the code? I can only guess that the URLs you are using for tine images are page-releative or similarly malformed. See the JspFaq for how to use server-relative URLs for resources.


Hi there, I had resolved the problem. This is because of the page is unsafe/contain security information. Therefore, I just need to press "Proceed anyway" with the unsafe site, and refresh the page, everything will be displayed accordingly and correctly. Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!