This post is more than 5 years old
6 Posts
0
1668
How can I specify the output path of retrieved files?
Hi Graham,
I am working with the .NET sample solution to retrieve files from Centera. In the RetrieveContent project, as shown below, I am able to retrieve the files and I see the files are saved in the output path defined in the C# project properties, namely "bin\Debug\". I am wondering if I can specify the output path in the code to save the retrieved file elsewhere, for example, "C:\RetrievedFiles". In other word, is there a function parameter of which I can specify the output path. Or do I have to write my own code to copy the files and move to a desired location.
if (t.ToString() == "StoreContentObject")
{
String outfile = clipRef.ClipID + ".Tag." + 0;
FPStream streamRef = new FPStream(outfile, "wb");
t.BlobRead(streamRef, FPMisc.OPTION_DEFAULT_OPTIONS);
streamRef.Close();
FPLogger.ConsoleMessage("\nThe Blob has been stored into " + outfile);
t.Close();
gstuartemc
417 Posts
0
May 16th, 2011 10:00
I think you should find it fairly easy to prepend the desired path to the outfile string!
Graham L. Stuart
Principal Software Engineer
jchu2
6 Posts
0
May 16th, 2011 10:00
Yes, you're right. Thank you.