cpprestsdk
cpprestsdk copied to clipboard
How to convert binary to concurrency::streams::istream;
I want to use Azure blob upload binary, my code: { int i = 0x3333; int iLen = sizeof(i); void pData = &i; concurrency::streams::streambuf<uint8_t> temp; temp.putn((uint8_t)pData, iLen);// m_buffer is empty, throw "Invalid streambuf object" concurrency::streams::istream input_stream = temp; } i can`t find constructor in astreambuf.h in my sence;
I face the same problem. Please, anyone can give the answer ??