-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexis,

On 5/5/2011 2:19 PM, alexis wrote:
> I have a servlet that basically does
> 
> . creates an image
> . store the image on disk
> . returns an html <img> tag pointing to the stored image.
> 
> there's no way to return binary content (the image) from the servlet to the 
> ajax script.

What about JSON? Not that I think it's a terribly good idea, but it's
just a thought.

Another thought is possibly using a database, relational or otherwise,
rather than the file system. Of course, you'd have to write your own
servlet to access the image from the database instead of the filesystem,
so I'm not sure it buys you much over the other solutions presented already.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3DOjkACgkQ9CaO5/Lv0PDzmgCeK2tN3eH+aVY6ElmFiKRe+cj7
WZcAn0Yj9qSklAynFdBeyRsL/wl0TpWD
=41U2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to