cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

How to convert binary to concurrency::streams::istream;

Open YangGangAVA opened this issue 7 years ago • 1 comments

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;

YangGangAVA avatar Jan 16 '18 07:01 YangGangAVA

I face the same problem. Please, anyone can give the answer ??

tondd1 avatar Apr 07 '22 11:04 tondd1