axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r658188 - /webservices/axis2/trunk/c/samples/server/mtom/mtom.c
Date Tue, 20 May 2008 10:12:39 GMT
Author: nandika
Date: Tue May 20 03:12:39 2008
New Revision: 658188

URL: http://svn.apache.org/viewvc?rev=658188&view=rev
Log:
mtom.c sample updated

Modified:
    webservices/axis2/trunk/c/samples/server/mtom/mtom.c

Modified: webservices/axis2/trunk/c/samples/server/mtom/mtom.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/mtom/mtom.c?rev=658188&r1=658187&r2=658188&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/mtom/mtom.c (original)
+++ webservices/axis2/trunk/c/samples/server/mtom/mtom.c Tue May 20 03:12:39 2008
@@ -118,17 +118,12 @@
                         data_handler_res = axiom_data_handler_create(env, NULL, NULL);
                         
                         buff = AXIS2_MALLOC(env->allocator, sizeof(axis2_byte_t)*buff_len);
-	/*		if (!buff)
-			  {
-			    AXIS2_LOG_ERROR (env->log, AXIS2_LOG_SI,
-					     "malloc failed, not enough memory");
-			    return AXIS2_FAILURE;
-			  }*/
+
 
                         memcpy(buff, input_buff, buff_len);
 
                         axiom_data_handler_set_binary_data(data_handler_res, env, buff, buff_len);
-
+						axiom_data_handler_set_content_type(data_handler_res, env,"image/jpeg");
                         axis2_msg_ctx_set_doing_mtom (msg_ctx, env, AXIS2_TRUE);
                         ret_node = build_response2(env, data_handler_res);
                     }



Mime
View raw message