Author Topic: Get image data via SOAP  (Read 562 times)

michaelwechner

  • Sr. Member
  • ****
  • Posts: 110
    • View Profile
Get image data via SOAP
« on: July 19, 2010, 04: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

trevor

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
Re: Get image data via SOAP
« Reply #1 on: July 20, 2010, 12: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).

michaelwechner

  • Sr. Member
  • ****
  • Posts: 110
    • View Profile
Re: Get image data via SOAP
« Reply #2 on: July 20, 2010, 01: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

trevor

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
Re: Get image data via SOAP
« Reply #3 on: July 20, 2010, 02: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.

michaelwechner

  • Sr. Member
  • ****
  • Posts: 110
    • View Profile
Re: Get image data via SOAP
« Reply #4 on: July 20, 2010, 03:11:12 AM »
thanks for the clarifications

Cheers

Michael