# A3DPDFImageCreateFromStream

A3DStatus `A3DPDFImageCreateFromStream`(A3DPDFDocument *pDoc, const A3DUTF8Char *pcStream, const A3DInt32 iLengthStream, const A3DPDFEImageFormat eFormat, A3DPDFImage **ppImage)
  `A3DStatus` A3DPDFImageCreateFromStream(`A3DPDFDocument`* pDoc, const `A3DUTF8Char`* pcStream, const `A3DInt32` iLengthStream, const `A3DPDFEImageFormat` eFormat, `A3DPDFImage`** ppImage)

  Function to create an image object from a file.

  The image object is primarily created with this function, and it should be positioned on the page with the function `A3DPDFPageInsertImage2()`.

  Parameters

  > pDoc: The Document object to work with.

  > pcStream: The buffer.

  > iLengthStream: The length of the buffer.

  > eFormat: Format of the image. It is mandatory to be specified for a buffer.

  > ppImage: The Image object created.

  Returns

  > A3D_SUCCESS in case of success or an error code

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...