title: OpenCV to use in memory buffers or file pointers
body: <p>The two functions in openCV cvLoadImage and cvSaveImage accept file path's as arguments. </p>
  
  <p>For example, when saving a image it's <strong>cvSaveImage("/tmp/output.jpg", dstIpl)</strong> and it writes on the disk.</p>
  
  <p>Is there any way to feed this a buffer already in memory? So instead of a disk write, the output image will be in memory. </p>
  
  <p>I would also like to know this for both cvSaveImage and cvLoadImage (read and write to memory buffers). Thanks!</p>
  
  <hr>
  
  <p>My goal is to store the Encoded (jpeg) version of the file in Memory. Same goes to cvLoadImage, I want to load a jpeg that's in memory in to the IplImage format. </p>