void process(char* data, int length) { //the data is a image }
TMemoryStream * MemoryImageStream=new TMemoryStream; MemoryImageStream->Position=0; MemoryImageStream->Write(photo,len);
TMemoryStream * MemoryImageStream=new TMemoryStream(len); MemoryImageStream->Position=0; MemoryImageStream->Write(photo,len);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)