Forum: Q & A

Thread: Question about PTViewer and linking images

back to threads list | this thread is closed
Search the forums:
Author  Message 
Bernie

Posts: 10
Location: Oviedo, Spain
Registered: 17 Oct 2005
Question about PTViewer and linking images
Posted: 9 Feb 2008 at 22:24 GMT
Hi all.

It's been a long time since my last visit here but I have a question for you.
In my free 360 website [360.atspace.com/] they allow only 200kb file size uploads; as you can see it's a very little amount of space to put a panorama. So I'd like to use my (paid) flickr account to put my panoramic images and link them to the applet code. The problem is I don't know how to do it properly.

In the applet a typical line is like this:
<param name="file" value="image.jpg">

What I want to do is linking my flickr image (i.e. an url) to the applet.
I've tried:
<param name="url" value="farm3.static.flickr.com/whatever.jpg">
but doesn't seem to work out.

Is this possible? If so, how can be done?

I don't even know if I have explained it properly...


Thanks in advance.
alert moderator
puzz

Posts: 12
Location: Poreč, Croatia
Registered: 22 May 2007
Re: Question about PTViewer and linking images
Posted: 10 Feb 2008 at 6:19 GMT
updated: 10 Feb 2008 at 6:30 GMT
You can't do that. Java applets run in a secure sandbox -- ie they have some security limitations. One is that the applet can download files only from the server where the applet is hosted. Applets can dowload files from other servers only if they are signed with a valid certificate and if the local java installations allow them to do that.

So, the only way to do that is to have the ptviewer.jar on the same server on flickr ;(

I tried the same thing with images on Amazon S3 server. But it didn't work. So, i had to copy the html file with applet-code and ptviewer.jar on the same server (look Vincen's panorama at: www.panoye.com/panorama-show.185.html -- click on "Full panorama (java)" on the right side).

PS. Nice panoramas!
alert moderator
Bernie

Posts: 10
Location: Oviedo, Spain
Registered: 17 Oct 2005
Re: Question about PTViewer and linking images
Posted: 10 Feb 2008 at 8:31 GMT
Thank you so much puzz.
Now, at least, I know it can't be done.

By the way, that website you pointed me out, panoeye, looks great! I think I'm going to register right now!

Thanks again. Regards from Spain.
alert moderator