fixed a problem with the filestream

changed filestream to memorystream.
reference should be in the proj file now.