public class ISCFileItem
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
byte[] | get() |
java.lang.String | getFileName() |
java.io.InputStream | getInputStream() This method always returns the InputStream associated with the originally uploaded file. |
long | getSize() |
public byte[] get()
public java.io.InputStream getInputStream()
InputStream newStream = someFunctionThatReturnsAnInputStream(); dsRequest.getValues().put("myField", newStream);
- Returns:
- uploaded file an InputStream
- See Also:
DSRequest.getUploadedFileStream(java.lang.String)
-
getSize
public long getSize()
- Returns:
- size of the uploaded file in bytes
-
getFileName
public java.lang.String getFileName()
- Returns:
- filename as it appears in the upload field on the client (typically includes full path to file on the user's machine)