Feature #508

Create a servlet that accepts an image upload and provides a URL to download the image.

Added by Andy Dufilie about 6 years ago. Updated about 6 years ago.

Status:ResolvedStart date:09/26/2011
Priority:ImmediateDue date:10/10/2011
Assignee:Kyle Monico% Done:

100%

Category:Admin Console and ServletsEstimated time:25.00 h
Target version:1.0
Complexity:Medium OIC Priority:
Required by:Grand Rapids, Michigan

Description

Our proposed solution to provide an image download is a servlet that accepts a base64 string and saves the file temporarily. This servlet would be separate from Weave (a separate .WAR file) and would be called via ajax. To use it, JavaScript would request a base64 encoded image from Weave and then post it to the servlet. We are not sure what you want to do with the image after that, but this solves the feature request. This solution can be replaced with a PHP script or some other servlet that just accepts a base64 string and does something else with it, eliminating the need to provide an image download.

29ad568d-c770-43a9-9709-27c9b2ba82df.png - corrupted image file (391 KB) Chris Stefanich, 10/18/2011 12:37 PM


Related issues

Related to Weave - Feature #70: Add an option to get a base-64 encoded image from Weave through JavaScript Resolved 07/20/2011
Related to Weave - Feature #350: Visualization Thumbnail Servlet Rejected 08/09/2011

History

#1 Updated by Andy Dufilie about 6 years ago

  • Priority changed from Normal to High

#2 Updated by Andy Dufilie about 6 years ago

  • Priority changed from High to Immediate

#3 Updated by Kyle Monico about 6 years ago

  • Status changed from Open to In Progress
  • Assignee set to Kyle Monico

#4 Updated by Andy Dufilie about 6 years ago

  • Estimated time set to 30.00

#5 Updated by Andy Dufilie about 6 years ago

  • Estimated time changed from 30.00 to 25.00

#6 Updated by Kyle Monico about 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

#7 Updated by Kyle Monico about 6 years ago

  • Status changed from Resolved to In Progress
  • % Done changed from 100 to 0

Oops. I updated the wrong issue ID earlier. Sorry!

#8 Updated by Kyle Monico about 6 years ago

  • Due date set to 10/10/2011
  • Start date changed from 09/12/2011 to 09/26/2011

#9 Updated by Andy Dufilie about 6 years ago

  • Description updated (diff)

#10 Updated by Chris Stefanich about 6 years ago

We imagined that the servlet would save an image file and return a path to that file so we can use the file either for the user to download it, for us to create a PDF with, or to solve the Firefox printing issue by replacing the object with the image in a print.css file.

#11 Updated by Andy Dufilie about 6 years ago

Ok, thanks for the info.

#12 Updated by Kyle Monico about 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

This service is provided in a separate GIT repository

https://github.com/IVPR/Misc

The README contains an example function of how to use it from Javascript using JQuery.

#13 Updated by Chris Stefanich about 6 years ago

I am having some trouble setting this up to create a good image. I used the jquery example from the github page to create an image from the MapTool:

http://pastie.org/2718646

Attached is a resulting PNG file, it can not be read as an image.

#14 Updated by Andy Dufilie about 6 years ago

  • Target version set to 1.0

Also available in: Atom PDF