Time to blog my multipart file upload version 2. In this version I am no longer using the MultiPartFormOutputStream.java (see my previous blog: http://lindaocta.com/?p=185) In this version, I use java dependencies: httpclient: download HttpClient and it’s dependencies from: http://hc.apache.org/httpclient-3.x/tutorial.html io: download from: http://commons.apache.org/downloads/download_io.cgi Transformer_two.java code: import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.PostMethod; …
Category Archive: java
Permanent link to this article: http://lindaocta.com/?p=199
Jul
02
Multipart file upload in java (Version 1)
Uploading Multipart file through java is not that easy. I need to write this code for the Transformer (I don’t have a chance to write the wiki yet ), the bridge between The Fascinator desktop and Ice-Service. Since I am trying my best to remember java syntax again, I am confuse which library to use. …
Permanent link to this article: http://lindaocta.com/?p=185