I have an two network applications the 'server' take an image (gif) and transmits that image over the network connection as a string.
Basically I have a string that contains the gif information and I want to load that into a wxAnimationControl.
m_sRawMapData is the string containing the gif data
AnimationCtrl1 is the control to display that data
I am trying to use the Load function of the wxAnimationCtrl which takes a wxInputStream
http://docs.wxwidgets.org/3.1/classwx_a ... 21a59eb634
I have tried several things but I dont seem to understand how to use a wxInputStream
Code: Select all
wxInputStream is(wxString(m_sRawMapData));
//is.Read(m_sRawMapData.c_str(), m_sRawMapData.size());
AnimationCtrl1->Load(is, wxANIMATION_TYPE_GIF);
AnimationCtrl1->Play();
I also tried searching but could not find an example of going to a string to a wxInputStream.
Thanks in advance