Board index » delphi » returning binary data from a COM method

returning binary data from a COM method

Hello,

Any one can help on how to return binary (gif image or bitmap) data from a
COM method ?

Thanks in advance

I

 

Re:returning binary data from a COM method


Quote
"Kayhan YAL?IN" <kayhan.yal...@finnet.gen.tr> wrote in message

news:3b40693c_2@dnews...

Quote
> Hello,

> Any one can help on how to return binary (gif image or bitmap) data from a
> COM method ?

> Thanks in advance

Delphi provides an IPicture parameter type that might work for your needs --
this type may not be compatible with clients written in other languages.

Another way would be to use a Variant result.   Use VarArrayCreate to create
a variant array of unsigned byte values to marshal the picture data.  Use
VarArrayLock to improve read/write performance into/outof the array.

HTH
Charles

Re:returning binary data from a COM method


Quote
"Charles McAllister" <char...@avimark.net> wrote in message

news:3b40d7a1$1_2@dnews...

Quote
> "Kayhan YAL?IN" <kayhan.yal...@finnet.gen.tr> wrote in message
> news:3b40693c_2@dnews...
> > Hello,

> > Any one can help on how to return binary (gif image or bitmap) data from
a
> > COM method ?

> > Thanks in advance

> Delphi provides an IPicture parameter type that might work for your
needs --
> this type may not be compatible with clients written in other languages.

> Another way would be to use a Variant result.   Use VarArrayCreate to
create
> a variant array of unsigned byte values to marshal the picture data.  Use
> VarArrayLock to improve read/write performance into/outof the array.

Here is a google search result that might help...
http://groups.google.com/groups?hl=en&safe=off&ic=1&th=e2a1cc34d74f87...
ekm=362639EC.AC87532%40Uni-Bremen.de#p

Re:returning binary data from a COM method


Thank you very much for all

I had used Varray -create and working perfect.

Regards

Quote
"Charles McAllister" <char...@avimark.net> wrote in message

news:3b40d7a1$1_2@dnews...
Quote
> "Kayhan YAL?IN" <kayhan.yal...@finnet.gen.tr> wrote in message
> news:3b40693c_2@dnews...
> > Hello,

> > Any one can help on how to return binary (gif image or bitmap) data from
a
> > COM method ?

> > Thanks in advance

> Delphi provides an IPicture parameter type that might work for your
needs --
> this type may not be compatible with clients written in other languages.

> Another way would be to use a Variant result.   Use VarArrayCreate to
create
> a variant array of unsigned byte values to marshal the picture data.  Use
> VarArrayLock to improve read/write performance into/outof the array.

> HTH
> Charles

Other Threads