[id3lib-devel] Need to send binary data to command line
Brought to you by:
t1mpy
From: Patrick <hum...@gm...> - 2011-02-11 18:43:35
|
Hello, I am trying to send the binary (raw) picture data stream out to the cli using cout or something equivalent. I tried this..... if ( myFrame = myTag.Find ( ID3FID_PICTURE ) ) { uchar buffer[ 4096 ]; myFrame->Field ( ID3FN_DATA ).Get ( buffer, sizeof ( buffer ) ); cout << "data: " << buffer << endl; } and this.... ID3_Field* img = myFrame->GetField(ID3FN_DATA); if (img) { uchar data[4096]; const uchar *p1; img->Get(data, 4096); p1=img->GetRawBinary(); cout << "data: " << p1 << endl; } But neither will print the binary characters onto the screen. Can someone help me with this. I would greatly appreciate it. Thanks! Pat |