diff --git a/src/storage/orm_avatar.cpp b/src/storage/orm_avatar.cpp index 07eed92..85c2432 100644 --- a/src/storage/orm_avatar.cpp +++ b/src/storage/orm_avatar.cpp @@ -74,13 +74,14 @@ namespace OpenWifi { Name = A.name; if(StorageService()->Type() == DBType::pgsql) { Poco::Data::LOBInputStream IL(A.avatar); - std::ostringstream os("",std::ios_base::binary); + std::ostringstream os; Poco::StreamCopier::copyStream(IL, os); std::string tmp = os.str().substr(2); AvatarContent.reserve(tmp.size()/2); - for(size_t i=0,j=0;i<(tmp.size() / 2); i+=2) { + for(size_t i=0,j=0;i