KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: michaelwechner on July 19, 2010, 10:24:13 am

Title: Get image data via SOAP
Post by: michaelwechner on July 19, 2010, 10:24:13 am
Hi

I am trying to read the image data via SOAP. The method

http://www.konakart.com/javadoc/server/com/konakart/appif/ProductIf.html#getImage() returns the image name, e.g.

hello-world.jpg

which exists at

/Users/michaelwechner/konakart-5.0.0.0/webapps/konakart/images/hello-world.jpg

but how can I retrieve the actual data via the (SOAP) API?

Thanks for your help

Michael
Title: Re: Get image data via SOAP
Post by: trevor on July 20, 2010, 06:49:57 am
We don't have an API to fetch images. In order to display them you could:

Have them reside in the same webapp.
Have them on a web server and display them through a URL.
Use a servlet that receives the name as input and fetches them from wherever they are. With this approach you can also process them. (i.e. scale them if you need to).
Title: Re: Get image data via SOAP
Post by: michaelwechner on July 20, 2010, 07:53:26 am
Thanks very much for the quick feedback. I will write something like a small "servlet" in order to retrieve these images which
has the base path to the images configured.

Just being curious, is there any specific reason that this interface does not exist or do you consider such a feature
for the roadmap?

Thanks

Michael
Title: Re: Get image data via SOAP
Post by: trevor on July 20, 2010, 08:02:30 am
We just don't consider the KK server to be a good place to store images. We consider these images to be more related to the application and so also the responsibility of the application in terms of management. All we store in the product object is a pointer to these images so that the application can figure out which ones to display.
Title: Re: Get image data via SOAP
Post by: michaelwechner on July 20, 2010, 09:11:12 am
thanks for the clarifications

Cheers

Michael