Hi,
How can I return a block of data from a native module to javascript.
The following causes some kind of converison:
obj->Set(String::New("name"), String::New(frag->getContent().getBytes(), frag->getContent().length()));
and the following does not compile:
obj->Set(String::New("name"), node::Buffer::New(frag->getContent().getBytes(), frag->getContent().length()));
thanks for help