Hi Damian

One thought, which doesn't directly address your question but might provide
an alternative (possibly simpler?) method to achieve what you want to do:

How about creating a datastream, type "External" or "Redirect" for your
IMAGE_URL - ie a Fedora datastream that acts as a proxy for the IMAGE_URL?

You could then reference this Fedora datastream directly in the method.

Optionally you could reference the Fedora datastream URI (eg
info:fedora/ns:pid/experiment_image) in the RELS_EXT rather than the
external URL.

(this also potentially has the benefit of introducing a level of
indirection, so if for instance you had to change the external service that
is currently providing these images, you would just update what the Fedora
datastream points to).

Regards
Steve

> -----Original Message-----
> From: Damian Kaliszan [mailto:dam...@man.poznan.pl] 
> Sent: 03 November 2010 08:58
> To: Steve Bayliss
> Cc: fedora-commons-users@lists.sourceforge.net
> Subject: Using ImageManip srv to manipulate image with URL 
> stored in RELS-EXT
> 
> 
> Dear Steve, All!
> 
> I  use  FC  to store some measurements (from real instruments) values.
> One  of  them  is  image  URL  of  the experiment. I store this URL in
> RELS-EXT (MY:PID->MY:PRED->IMAGE_URL) datastream
> I'd  like to use built-in Imagemanip service to get the original image
> resized/cropped etc.
> 
> How to pass IMAGE_URL from RELS_EXT (or DC if it's better) to 
> Imagemanip?.....
> 
> Similarly as it was done in example CollectionImpl with 
> 'list' disseminator
> http://myserver:port/saxon/SaxonServlet?source=(LIST)&styl
e=(XSLT)&clear-stylesheet-cache=(CLEAR_CACHE)"/>
But here LIST & XSLT are different datastreams (called LIST & XSLT)
So.. In my case it would be something like:

http://myserver:port/saxon/Imagemanip?url=(RELS-EXT#MY:PRED)&op=resize..
...."/>

Then, under the method getChangedImage I'd have the appropriate method
called  from WSDL (that I would have to create of course...like in the
Collection example)

http://myserver:port/fedora/objects/MY:PID/methods/getChangedImage


Is it possible at all? If so, could you please help me with that?


Best regards,
Damian



------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to