axis: attachments: managed memory datasource

murugesh dour <[email protected]>
Newsgroups gmane.text.xml.soap.user
Message-ID <[email protected]>
halo,
I terribly need someones assistance to solve this.........
I am using one of the axis application "attachments". Here the ServiceClass receives the attachements and 'caches' in memory (as below)., I want to see the contents (files-attachments) in the disk on service side. So tried the method flushToDisk();and other methods from the 'Managed memory data source class', but i gives me only an empty file. Can someone help me see the attachments in disk.
 
merci d'avance.
 
----------------------------------------------------------------------------------------------------------------------------
 /**This class should store all attachment data in memory */
 static class MemoryOnlyDataSource extends org.apache.axis.attachments.ManagedMemoryDataSource{
    
       MemoryOnlyDataSource( byte [] in, String contentType) throws java.io.IOException{
         super( new java.io.ByteArrayInputStream( in) , Integer.MAX_VALUE -2, contentType, true); 
       }
       MemoryOnlyDataSource( String in, String contentType)throws java.io.IOException{
         this( in.getBytes() ,  contentType); 
       }
    }
--------------------------------------------------------------------------------------------------------------------------------

		
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.