Re: Re: Re: problems sending files with webdav client lib

Raj Garikapati <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
Hi,

We have Oracle IFS (CMSDK) 9.0.4. Getting Service Unavailable (503) error
message when trying to use putMethod(path, InputStream). It worked well with
putMethod(path,File)

Code Snippet:
File f = new File("c:/hello.txt");
InputStream inputStream = new FileInputStream(f);
webdavResource.putMethod(serverPath, inputStream); 

Any help is appreciated.

Thank you,
Raj.



Michael Della Bitta wrote:
> 
> Looking through the Oracle forums, it seems like I'm not the only one
> running into this issue. Following the example provided in the last
> post of this thread ended up doing it for me:
> http://forums.oracle.com/forums/thread.jspa?messageID=1223864&#1223864
> 
> Thanks for your time,
> 
> Michael
> 
> On 6/19/06, Michael Della Bitta <[email protected]> wrote:
>> Marco,
>>
>> Sadly, that didn't change things for me. I'm still experiencing
>> putMethod() calls returning true and then the file doesn't appear in
>> the WebDAV repository. I'd actually be pretty surprised that supplying
>> a FileInputStream would work differently than supplying a File, but
>> I'm willing to try anything... Thanks for your suggestion.
>>
>> Is there any sort of logging or something like that I can configure?
>> Or should I resort to capturing packets?
>>
>> Michael
>>
>> On 6/19/06, Marco Ferretti <[email protected]> wrote:
>> > Hi,
>> >
>> > what I do ( and it works for me ) is to use the putMethod that takes a
>> > String and an InputStream as parameters .
>> > The String is the path where to store the file ... so what I'd do is
>> >
>> > result = webdavResource.putMethod(path, (InputStream) inputStream);
>> >
>> > where
>> >
>> > FileInputStream inputStream = new FileInputStream(toSend) ;
>> >
>> >
>> >
>> >
>> > hope it helps.
>> >
>> >
>> > Marco
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/problems-sending-files-with-webdav-client-lib-tf1799748.html#a5934040
Sent from the Jakarta Slide - User forum at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.