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,
|
<<image001.gif>>