Since it is not possible to upload data directly into the client without going through a server, I am wondering if it would be possible to have our servlet directly stream the data back to Flex and grab it with the UPLOAD_COMPLETE_DATA event.

On the Java end we are trying something like this:

//FileItem item;
InputStream in = item.getInputStream();
OutputStream out = response.getOutputStream();
out.flush();

We can get small text examples to work, but seem to have trouble when the data is an image or larger file. Images will work if we Base64 encode them, but they also break if the file size is too large. This may be because it just won't work. However, I am assuming someone else has tried this and I would love to know if there is a way to get it to work. We would prefer not to have to go through the process of saving a bunch of temporary files on the server only to simply send them back with a second call.

Thanks,

Kevin

Reply via email to