Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Displaying pictures in image view from a self-signed certificate site

Hi everyone, is there a way to display pictures from a self signed certificate server in a image view. Something like this:



— asked June 30th 2010 by Marko Perutovic
  • https
  • imageview
  • self-signed
  • ssl

5 Answers

  • It's true if you use xhr. But if you put imageView property for image to a SSL certificate, like:
    it doesn't.

    — answered November 10th 2010 by Marko Perutovic
    1 Comment
    • what I am suggesting is that if you are really stuck, you can download the image to a temporary file and the assign that file to the image view.

      — commented November 10th 2010 by Aaron Saunders
  • Is it a requirement to access your image over SSL? The download speed over 3G or Edge networks will be adversely impacted by doing so. Can you serve static assets over HTTP?

    If SSL for images is a hard necessity of your app, we may need to look at modifying the ImageView code to support self-signed certificates. On Android especially, self-signed certificates cause special problems we had to address in HTTPClient specifically - could be we need to explore similar methods for ImageView.

    Other option would be to use XHR to fetch the image, store it on the filesystem, and reference the file in the image view.

    — answered November 10th 2010 by Kevin Whinnery
    1 Comment
    • Can you please confirm that it is not possible to access image files over SSL ? I am developing apps for my website, a full SSL website.

      — commented January 11th 2014 by René Gérard
  • It would be nice to do so, specially because of my other issue.

    I've tried every possible way to load them, but a link to picture is a very nice way…

    — answered November 10th 2010 by Marko Perutovic
  • I'd like to see this feature too. I mean to display pictures from a self signed certificate server without the need to request them via xhr and to store them on the device before. Some of my app users have self signed certificates server running which breaks all remote images. I can't influence whether they have self signed certificates or not.

    — answered December 30th 2011 by Jicks Steen
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.