Search code examples
javaimagespark-java

How to upload and download Images in to spark?


How can I upload and download images with spark as our web layer?

I found this example but it heavily relies on Jetty being the container and does not work for Tomcat.

Would love to see a full example.


Solution

  • Why not just use a standard servlet with built in functionality?

    Sample Spark Servlet Here

    Sample Java Code Here