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!?
Yahoo! Mail is new and improved - Check it out!

Reply via email to