First I create Memory BIO like this
BIO *mem = BIO_new(BIO_s_mem());
BIO_puts(mem, "Hello World\n");
and get the pointer like this
BUF_MEM *bptr;
BIO_get_mem_ptr(mem, &bptr);
My doubt is how can I write and read by using bptr pointer?
Is this possible..?