Hi All,

 

I am presently using the “manual method” for adding and receiving attachments for my web service. Some of my attachments are quite large and I would like to use the ManagedMemoryDataSource to optimize my implementation.

 

In testing when I construct a new instance of ManagedMemoryDataSource to use with my attachments I pass it an InputStream to read from and manage appropriately(either save to file or mem) but when I obtain an InputStream from the MMDS instance it has 0 bytes available.

 

 

InputStream is = dao.getData();

//is has data to read

 

ManagedMemoryDataSource mmds = new ManagedMemoryDataSource(is, ManagedMemoryDataSource.MAX_MEMORY_DISK_CACHED, “application/octet-stream”);

 

is= mmds.getInputStream();

//is has no data to read?????

 

Does anyone know how to use this class?

 

Many thanks,

 

Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552 ext 230

Fax: (613) 591-0523

1 (877) 388-6742

www.wrappedapps.com

 

<<image001.gif>>

Reply via email to