You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2008/05/20 12:12:39 UTC
svn commit: r658188 - /webservices/axis2/trunk/c/samples/server/mtom/mtom.c
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);
}