大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
import oracle.jbo.domain.BlobDomain;
import oracle.cabo.ui.data.DataObject;
import java.io.InputStream;
在CO.java中,
DataObject fileUploadData =
(DataObject)pageContext.getNamedDataObject(
String fileName =
(String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
//BlobDomain uploadedByteStream =
(BlobDomain)fileUploadData.selectValue(null, fileName);//这句有问题,总是取出空值,改为下面的语句:
BlobDomain uploadedByteStream = (BlobDomain)pageContext.getParameterObject(fileName);
InputStream inputStream = uploadedByteStream.getInputStream();
[@more@]