Hi,
I'm already struggling for a while with converting the following .net code to Progress (Drag-and-Drop Attached File From Outlook (97 and above) to C# Window Form).
The idea is to Drag&Drop some attachments from outlook to a progress .net form and then save those files in the DB.
It looks like this can work but I can not convert the code.
My biggest problem (I think) is the following part of that code.
byte [] fileGroupDescriptor = new byte[512];
theStream.Read(fileGroupDescriptor,0,512);
// used to build the filename from the FileGroupDescriptor block
StringBuilder fileName = new StringBuilder("");
// this trick gets the filename of the passed attached file
for(int i=76; fileGroupDescriptor!=0; i++)
{ fileName.Append(Convert.ToChar(fileGroupDescriptor));}
theStream.Close();
It looks like theStream in my code is a valid-object and is of the type MemoryStream and his length is 336 (so I guess that looks fine).
The problem is how to know the filename of that (and that is the code I mentioned here that I can't convert correctly so I get a name)
Regards
I'm already struggling for a while with converting the following .net code to Progress (Drag-and-Drop Attached File From Outlook (97 and above) to C# Window Form).
The idea is to Drag&Drop some attachments from outlook to a progress .net form and then save those files in the DB.
It looks like this can work but I can not convert the code.
My biggest problem (I think) is the following part of that code.
byte [] fileGroupDescriptor = new byte[512];
theStream.Read(fileGroupDescriptor,0,512);
// used to build the filename from the FileGroupDescriptor block
StringBuilder fileName = new StringBuilder("");
// this trick gets the filename of the passed attached file
for(int i=76; fileGroupDescriptor!=0; i++)
{ fileName.Append(Convert.ToChar(fileGroupDescriptor));}
theStream.Close();
It looks like theStream in my code is a valid-object and is of the type MemoryStream and his length is 336 (so I guess that looks fine).
The problem is how to know the filename of that (and that is the code I mentioned here that I can't convert correctly so I get a name)
Regards