Include SPS and PPS parameters in Encoded H264 Frames


I am trying to Encode YUV data to H264 data.
As I am streaming H264 data I am required to send SPS and PPS parameters.
I have no idea how to stream those parameters after getting from function NVGetSPSPPS.
Can anyone help me out.

Vikram Singh.