我尝试将Uint8List
字符串解码为Uint8List _bytes =
base64.decode('data:image/jpeg;base64,/9j/4AAQ .........');
Image.memory(_bytes);
template<typename TSignature>
class CAction;
template<typename TRetType, typename... Args>
class CAction<TRetType(Args...)> {
public:
TRetType func(Args... a)
{
cout << "non void" << endl;
myPrint(a...);
cout <<"\n\n";
TRetType nRet(0);
return nRet;
}
};
template<typename... Args>
class CAction<void(Args...)> {
public:
void func(Args... a)
{
cout << "void" << endl;
myPrint(a...);
cout << "\n\n";
}
};
但是出现错误,(字符错误:)
无效字符(第5个字符) 数据:image / jpeg; base64,/ 9j / 4AAQSkZJRgABAQAAAQABAAD / 2wCEAAkGBxITEhUSEhMVFRUV ...
如何摆脱这个问题?