You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Massimo Redaelli <ma...@aia.ch> on 2016/06/23 16:15:57 UTC

[fileupload] accessing the base64 encoded file

Hello!

I'm using fileupload for a page that sits in between the actual server receiving the call and the browser.
So what I'm doing at the moment is:
- Parsing the request with parseRequest
- Getting the file with fileItem.get()
- checking a few things
- encoding it in Base64
- calling the final webservice of the actual server, basically forwarding the data

I wonder if it's possible to skip the decoding-encoding mess, and just get the base64 data straight :)

Thanks for any hint.

M.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


AW: [fileupload] accessing the base64 encoded file

Posted by Massimo Redaelli <ma...@aia.ch>.
Well, the checks don't have to be on the data itself, but might for instance be on authentication issues. 
Or the size of the uploaded data.

M


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [fileupload] accessing the base64 encoded file

Posted by Benedikt Ritter <br...@apache.org>.
Hello Massimo

Massimo Redaelli <ma...@aia.ch> schrieb am Do., 23. Juni 2016 um
18:16 Uhr:

> Hello!
>
> I'm using fileupload for a page that sits in between the actual server
> receiving the call and the browser.
> So what I'm doing at the moment is:
> - Parsing the request with parseRequest
> - Getting the file with fileItem.get()
> - checking a few things
> - encoding it in Base64
> - calling the final webservice of the actual server, basically forwarding
> the data
>
> I wonder if it's possible to skip the decoding-encoding mess, and just get
> the base64 data straight :)
>

How can you do your checks if the data is still encoded?

Benedikt


>
> Thanks for any hint.
>
> M.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>