Independent JPEG Group's JPEG software發佈的jpeg library之前一直只能從檔案讀取jpg的檔案,版本Version 8 以上已經支援從記憶體內存讀取,這對於在網路存取圖檔時很方便。
jpeg_stdio_src (j_decompress_ptr cinfo, FILE * infile); //從檔案讀取
jpeg_mem_src (j_decompress_ptr cinfo,unsigned char * inbuffer, unsigned long insize); //從記憶體讀取