Discuss this help topic in SecureBlackbox Forum


TElX509Certificate     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

Reads the certificate from the stream.


    int LoadFromStreamSPC(System.IO.Stream Stream, int Count /* = 0 */);

    Function LoadFromStreamSPC(ByVal Stream As System.IO.Stream, ByVal Count As Integer = 0) As Integer

    function LoadFromStreamSPC(Stream : TStream; Count : integer = 0) : integer;

    int32_t LoadFromStreamSPC(TStream &Stream, int32_t Count);
    int32_t LoadFromStreamSPC(TStream *Stream, int32_t Count);

    integer LoadFromStreamSPC(TStream $Stream, integer $Count)


  • Stream - The stream from which the certificate is loaded.
  • Count - Optional parameter that specified the number of bytes to be read. If this parameter is zero, the whole stream (from current position till the end) is read.

Return value

    0 on success.
    SPC error code otherwise.


    Use this method to read the certificate from the stream. The read operation is started at current stream position and finished when the end of the stream is reached or when the number of bytes specified in Count parameter is read. The certificate must have been saved in SPC (PKCS#7) format.

See also:     LoadFromStreamAuto     LoadKeyFromStreamPVK     LoadFromBufferSpc     LoadFromStream     SaveToStream    

Discuss this help topic in SecureBlackbox Forum