Hi,
yes i got it to work... try something like this...
byte[] bytes = (byte[])dataRow[column.ColumnName];
string dataAsString = HexEncoding.SetBytes(bytes); //You have to find a
HexEncoding class via google
IAxaptaContainer container =
(IAxaptaContainer)this.Axapta.CallStaticClassMethod("BinData",
"stringToData", dataAsString, null, null, null, null, null);
Von: [email protected]
[mailto:[EMAIL PROTECTED] Im Auftrag von
rolandandgerry
Gesendet: Mittwoch, 13. Februar 2008 03:07
An: [email protected]
Betreff: [development-axapta] AxaptaBuffer and AxaptaContainer
Hi all,
Wondering if anybody has been able to pack an image or other binary
file into an AxaptaBuffer and then into an AxaptaContainer?
I can do:
AxaptaRecord record = Axapta.CreateAxaptaRecord("SrmMediaFile");
AxaptaContainer byteContainer = Axapta.CreateAxaptaContainer();
AxaptaBuffer buffer = Axapta.CreateAxaptaBuffer();
byte[] data = MediaFileValueConverter.GetFileData(MediaFile);
buffer.SetData(data);
byteContainer.AddRange(buffer.GetData());
and insert it into the database but then i can't seem to get the
stored image to display back in the client.
any help is much appreciated.
regards,
roland
[Non-text portions of this message have been removed]