org.apache.commons.httpclient.methods.multipart
Class ByteArrayPartSource
java.lang.Object
org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource
- PartSource
public class ByteArrayPartSource
extends java.lang.Object
A PartSource that reads from a byte array. This class should be used when
the data to post is already loaded into memory.
ByteArrayPartSource
public ByteArrayPartSource(String fileName,
byte[] bytes)
Constructor for ByteArrayPartSource.
fileName
- the name of the file these bytes representbytes
- the content of this part
Copyright (c) 1999-2005 - Apache Software Foundation