Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 25322 invoked from network); 14 Aug 2007 20:12:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2007 20:12:16 -0000 Received: (qmail 25349 invoked by uid 500); 14 Aug 2007 20:12:13 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 25330 invoked by uid 500); 14 Aug 2007 20:12:13 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 25319 invoked by uid 99); 14 Aug 2007 20:12:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 13:12:13 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aswathsn@gmail.com designates 209.85.162.182 as permitted sender) Received: from [209.85.162.182] (HELO el-out-1112.google.com) (209.85.162.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 20:12:09 +0000 Received: by el-out-1112.google.com with SMTP id r23so328068elf for ; Tue, 14 Aug 2007 13:11:48 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=EwTWjex5YABgXssOEbmqoC6p0Jwa65bhZNrnuqjDg4nQVeSVL0b5KzHCA/5gbca0zEmhvBE1+a606+bkQ5T3cT+N/2lVkrQyAoSEgobvPOGWVlIuZkpWmaeR8CT9VeO6RznC5I26XFk4xkRlDt7TFxkHk4auFWIbCLhWBesHwMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UjZEE+lxXBIC8dlkFLGq3jydZZK+KUxMfY6bu1EAs5bz4q5WajOhCYyYYU5++m8m5hYW0v6x3tWKy3wBqMthuw5SYQXmJhjrYmvuu+83Kz8uZGCW5Q6QHndpv87yl+Qw69TJySiAvKgjlztuote8IGTpGvC7l2q5A8yCLJ369oQ= Received: by 10.142.12.14 with SMTP id 14mr762930wfl.1187122307166; Tue, 14 Aug 2007 13:11:47 -0700 (PDT) Received: by 10.142.104.13 with HTTP; Tue, 14 Aug 2007 13:11:47 -0700 (PDT) Message-ID: <489947c0708141311x357050f2v927244e283957e81@mail.gmail.com> Date: Tue, 14 Aug 2007 16:11:47 -0400 From: "Subra A Narayanan" To: "Apache AXIS C User List" Subject: Re: Axiom Questions In-Reply-To: <46C1F493.5060706@wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_77886_24906892.1187122307129" References: <489947c0708121732h528ec40p674da3e8c2d82b5@mail.gmail.com> <46BFE0DC.4070605@wso2.com> <489947c0708130417p25e0ecc6h70b7d24a1aaeb9d6@mail.gmail.com> <46C0430B.7050001@wso2.com> <489947c0708141017g6dd53fa5we16021956d18a4cb@mail.gmail.com> <46C1F493.5060706@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_77886_24906892.1187122307129 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dumindu, Thanks for the reply! I am going to try it out for myself but just wanted to make sure that this was a no issue :-) Thanks again! Subra On 8/14/07, Dumindu Pallewela wrote: > > Subra A Narayanan wrote: > > Hey Kaushalye, > > > > I noticed that ip_stream is of type axis2_byte_t. Looking at the > > definition of axis2_byte_t in axutil_utils_defines.h, I realized that it > > is nothing but a char. I am wondering if I read a part of a binary file > > from disk using pread and store the read data in void *buffer and then > > type cast the buffer in to a axis2_byte_t, if that will cause a problem? > > It should not. Because you give the length of the buffer alongside the > buffer itself. FYI, the axiom_data_handler_set_binary_data function > signature is as follows: > > axiom_data_handler_set_binary_data( > axiom_data_handler_t *data_handler, > const axutil_env_t *env, > axis2_byte_t* input_stream, > int input_stream_len) > > > BTW, you could try this out and see for yourself ;) > > -Dumindu. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > ------=_Part_77886_24906892.1187122307129 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Dumindu,

Thanks for the reply! I am going to try it out for myself but just wanted to make sure that this was a no issue :-)

Thanks again!

Subra

On 8/14/07, Dumindu Pallewela <dumindu@wso2.com> wrote:
Subra A Narayanan wrote:
> Hey Kaushalye,
>
> I noticed that ip_stream is of type axis2_byte_t. Looking at the
> definition of axis2_byte_t in axutil_utils_defines.h, I realized that it
> is nothing but a char. I am wondering if I read a part of a binary file
> from disk using pread and store the read data in void *buffer and then
> type cast the buffer in to a axis2_byte_t, if that will cause a problem?

It should not. Because you give the length of the buffer alongside the
buffer itself. FYI, the axiom_data_handler_set_binary_data function
signature is as follows:

axiom_data_handler_set_binary_data(
     axiom_data_handler_t *data_handler,
     const axutil_env_t *env,
     axis2_byte_t* input_stream,
     int input_stream_len)


BTW, you could try this out and see for yourself ;)

-Dumindu.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


------=_Part_77886_24906892.1187122307129--