In C# you have something like..
byte[] blob = System.Text.Encoding.UTF8.GetBytes(char [],....);
You may find eqvailent for managed C++.
Thanks,
Uday Takbhate [MSFT]
Microsoft Developer Support
--------------------
[quoted text, click to view] >From: aca02djr@sheffield.ac.uk
>Newsgroups: microsoft.public.dotnet.framework.interop
>Subject: How to convert char* to Byte[] in Managed C++
>Date: 31 Aug 2005 17:02:34 -0700
>Organization:
http://groups.google.com >Lines: 5
>Message-ID: <1125530999.029912.11240@o13g2000cwo.googlegroups.com>
>NNTP-Posting-Host: 81.132.130.11
>Mime-Version: 1.0
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1125532959 2070 127.0.0.1 (1 Sep 2005 00:02:39
GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Thu, 1 Sep 2005 00:02:39 +0000 (UTC)
>User-Agent: G2/0.2
>X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
NET CLR 1.0.3705),gzip(gfe),gzip(gfe)
>Complaints-To: groups-abuse@google.com
>Injection-Info: o13g2000cwo.googlegroups.com; posting-host=81.132.130.11;
> posting-account=hP-1RgwAAACeAH_-l27yderw8Qyc6MZd
>Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!news.glorb.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-fo
r-mail
[quoted text, click to view] >Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.framework.interop:9394
>X-Tomcat-NG: microsoft.public.dotnet.framework.interop
>
>I have a managed C++ function which returns a managed byte array - and
>i need the contents of said array to be the same as the contents of a
>char* array (which represents image data). How can I convert this
>unmanaged char* to a managed Byte[]?
>
>