Hi, I have a char array containing a PDF. I need to load it into a GInputStream variable.
From what I understand, I need to load it in a GOutputStream first through g_output_stream_write, then use g_output_stream_splice to copy it to a GInputStream variable.
However, g_output_stream_write always fails. I guess I am mistaking the way to do it. Could somebody point me out to the correct way?
Is there a way to load a char array into a GInputStream?