Empty BLOB Error message when using COPYSTREAM

navmattnavmatt Member Posts: 3
I'm trying to use the COPYSTREAM function to copy a BLOB from one field to another. I know that the source field is indeed populated in each case, but each time I use COPYSTREAM I get the following error message:

"You cannot stream an empty BLOB ()."

Here's the code in question:
// My source field.
ExcelBuf."Actual Body".CREATEINSTREAM(GroupInStream);

// My destination field.
MasterGroup."Actual Text".CREATEOUTSTREAM(GroupOutStream);

COPYSTREAM(GroupOutStream,GroupInStream);

Any help on this would be greatly appreciated.

Thanks,

Matthew

Answers

  • AdrianAkersAdrianAkers Member Posts: 137
    Try CALCFIELDS on your source field BLOB first...

    Not 100% sure but if I remember correctly you have to do this to "see" the contents of the blob...
  • navmattnavmatt Member Posts: 3
    Thanks for the tip Adrian.

    I did a CALCFIELDS on my field and I was able to use COPYSTREAM to move my BLOB data from field to another.

    Thanks,

    Matthew
Sign In or Register to comment.