|
Post by nosheen on Apr 6, 2013 10:12:15 GMT -4
public void saveTemplate(NFRecord template) { //Convert the template hereee.... Voter v=new Voter(); v.generatevoterno(template);
} i have this function behind the button how can i use this blob here??
|
|
|
Post by nosheen on Apr 6, 2013 10:32:13 GMT -4
No i do not want them to be same i just have to convert a single template in to the byte and just save that into the database...
|
|
|
Post by funnyboym13 on Apr 6, 2013 10:57:30 GMT -4
ry this template. It served me very well.
(author unknown)
/* string2wstring.h */ #pragma once
#include <string> #include <vector> #include <locale> #include <functional> #include <iostream>
// Put this class in your personal toolbox... template<class E, class T = std::char_traits<E>, class A = std::allocator<E> >
class Widen : public std::unary_function< const std::string&, std::basic_string<E, T, A> > { std::locale loc_; const std::ctype<E>* pCType_;
// No copy-constructor, no assignment operator... Widen(const Widen&); Widen& operator= (const Widen&);
public: // Constructor... Widen(const std::locale& loc = std::locale()) : loc_(loc) { #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6.0... using namespace std; pCType_ = &_USE(loc, ctype<E> ); #else pCType_ = &std::use_facet<std::ctype<E> >(loc); #endif
|
|
|
Post by nosheen on Apr 6, 2013 11:23:01 GMT -4
I can not understand the codee
|
|
|
Post by nosheen on Apr 7, 2013 13:06:23 GMT -4
any further soultion??
|
|
|
Post by funnyboym13 on Apr 9, 2013 16:07:57 GMT -4
Idk how can help anymore
|
|