Re: Using POST to send bitmap image with Java
- From: Dave Miller <nonregistered@xxxxxxxxxxxx>
- Date: Fri, 30 May 2008 20:53:12 GMT
Dexter wrote:
In one of my Graphing programs written in Java, I am trying to send a
graphics image (.bmp) to HttpModule on the same server that hosts the
graphing applet.
I found some code on internet that helped me post text data to the
module.
Can someone suggest how I may post the graphics image binary data
using POST method
URL url = new URL("http://www.your-server.com");
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setDoInput(true);
connection.setDoOutput(true);
connection.connect();
DataOutputStream out =
new DataOutputStream(connection.getOutputStream());
// use one of write methods of out
out.flush();
out.close();
--
Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
.
- Follow-Ups:
- Re: Using POST to send bitmap image with Java
- From: Arne Vajhøj
- Re: Using POST to send bitmap image with Java
- From: Kenneth P. Turvey
- Re: Using POST to send bitmap image with Java
- References:
- Using POST to send bitmap image with Java
- From: Dexter
- Using POST to send bitmap image with Java
- Prev by Date: Re: gui builder
- Next by Date: Binary data garbled
- Previous by thread: Using POST to send bitmap image with Java
- Next by thread: Re: Using POST to send bitmap image with Java
- Index(es):
Relevant Pages
|
|