dbTalk Databases Forums  

File downloads and sub directories

sybase.public.sqlanywhere.ultralite sybase.public.sqlanywhere.ultralite


Discuss File downloads and sub directories in the sybase.public.sqlanywhere.ultralite forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paula
 
Posts: n/a

Default File downloads and sub directories - 12-18-2008 , 08:24 AM






Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #2  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM






I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #3  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #4  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #5  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #6  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #7  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #8  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #9  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
  #10  
Old   
Philippe Bertrand [Sybase iAnywhere]
 
Posts: n/a

Default Re: File downloads and sub directories - 12-19-2008 , 10:29 AM



I believe mobilink only supports one -ftr parameter but MobiLink will look in two places - it first looks for the file in the C:\MyDirectory\<ml user>\ directory then in the C:\MyDirectory\ directory (assuming -ftr C:\MyDirectory). This allows you to deliver different files to different users.

From the ULFileTransfer class > FileName property doc:
FileName must not include any drive or path information, or the MobiLink server will be unable to find it. For example, "myfile.txt" is valid, but "somedir\myfile.txt", "..\myfile.txt", and "c:\myfile.txt" are all invalid.

This is for security reasons.

If you start a second MobiLink on a different port, you can work around this.

---
Philippe Bertrand
Sybase iAnywhere

<Paula> wrote

Quote:
Hello,

I am using version 10.0.3807 of SQL Anywhere with VS .net
2005 C#.

I am using the ULFileTransfer object with a mobilink server
to download some files. I have the ml server setup with
-ftr C:\MyDirectory. I want to also download files from a
sub directory of C:\MyDirectory so I tried to append this to
the file name in the code "\NewFoler\AnotherFile.txt"
The server reports an error of could not find file
"\NewFolder\AnotherFile.txt". The file is located in that
sub directory.

Is what I want to do possible with one mobilink service? If
so, where did I go wrong?

Also, when this (or any error) happens, I don't get very
good error messages from the ULFileTransfer object - the
server log shows a nice error message. How do I get that
error?

Thank you in advance,
Paula

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.