Java POST help with binary data
Dear Friends,
Please help me
I need to POST some binary values using Java.
As i cannot use File directly, is there any alternative way to post the binary data using the dataoutputstream.
basically looking for creating some binary data and do the POST.
Any sample code will be very helpful.
Thanks,
Jeena
Re: Java POST help with binary data
why cannot use file upload directly?
you can use URLConnection class to send binary along with POST data. I don't have example here, unfortunately.
However, the rule is, open an OutputStream on the connection and write your binary data.
Re: Java POST help with binary data