Recover disk image via callback

Asked

Viewed 95 times

1

Well, I am developing a feature that aims to upload an image (this step has already been accomplished) and soon after I "recover" the same to perform the selection of some color in it (Colorpicker with Canvas), just like this example.

The problem is that I don’t know how to recover such image which lies in a folder on my server to use with the colorpicker mentioned above.

For example:

I’m using an image upload plugin called Dropzone, when I upload the image it lies in a folder inside the server on EX disk:.

/app/joocebox-img/logo/logo_01.jpg 

So I wanted it on itself callback successful upload plugin bring the image so that I just embed in the Colorpicker for the user to perform the color selection.

It would be possible to do this without creating an "image server", as this shows article?

I’m using Javaee + Spring MVC

  • 1

    You can use the File API to load the file in Javascript, since the user is already selecting the image.

  • Hummm @Viníciusgobboa.deOliveira I’ll read the documentation. I’ve never worked with her (at least for now).

1 answer

1


Well, I ended up solving the problem by choosing a simple colorPicker jquery itself. I chose this approach for lack of time in the project and even to give the user a greater breadth.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.