• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

# in source of Image component

 
Ranch Hand
Posts: 62
Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

This might be a silly doubt for you Flex gurus; kindly forgive my ignorance as I am a newbie to Flex :-(. The issue is I have a Image component in my mxml. The 'source' of the same is a url of a png file from some other system. If I use the url in my web browser directly it works. But if I use the same in my Image component the image does not show up. The only reason I can see is because the source url contains '#' in it as the png name contains that. So the source value is something like: "http://ea123:8080/something/new#value#01.png".

Can this be the reason? If so, what can be done to solve it? Thanks a zillion.

Warm Regards,
Jisha
 
Ranch Hand
Posts: 95
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hitting image URL in browser doesn't require crossdomain.xml but loading image in Image component require crossdomain.xml.

http://stackoverflow.com/questions/2096820/loading-external-images-from-another-domain

Adobe specs:
http://help.adobe.com/en_US/flex/using/WSc5cd04c102ae3e97-33ad5caa12c719dc7c8-8000.html

When you load images at runtime, you should be aware of the security restrictions of Flash Player or AIR. For example, you can reference an image by using a URL, but the default security settings only permit applications built in Flex to access resources stored on the same domain as your application. To access images on other servers, ensure that the domain that you are loading from uses a crossdomain.xml file.


 
Jisha Anand
Ranch Hand
Posts: 62
Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for your reply Iftikhar Arain

So you mean to say it is a security issue and not a specific one related to '#' in my url right? Even I thought the same & did put crossdomain.xml to see if it is working fine.

But the thing is the issue exist only for those images which have '#' in their url and the other images are loading without any errors. This problem exists even if I put crossdomain.xml in the server of the images

So I think the issue is specific for character like '#' rather than an generic problem. But I am not yet able to find any solution for this
 
Iftikhar Arain
Ranch Hand
Posts: 95
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anand,

Would it be possible for you to post the code, specially the URLs you are trying to load the images from?

Regards,
iftikhar
 
Everybody's invited. Even this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic