AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lettura di file remoto

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Diego
Guest





PostPosted: Mon Sep 26, 2005 8:22 am    Post subject: Lettura di file remoto Reply with quote




Salve a tutti,

ho un piccolo problema, causato sicuramente dalla mia scarsa conoscienza di
java, se qualcuno potesse aiutarmi gliene sarei molto grado: allora...sto
leggendo un file dalla rete tramite una URLConnection e lo butto dentro un
ImputSream. Ad un tratto la connessione si interrompe. Devo poter riprendere
la lettura del file in un secondo momento dal punto in cui ero rimasto. Come
posso fare??

Qualunque suggerimento è ben accetto, anche se vengono usati classi
differenti da URLConnectione e ImputSream.

Grazie

--------------------------------
Inviato via http://arianna.libero.it/usenet/
Back to top
stefanomnn@yahoo.it
Guest





PostPosted: Mon Sep 26, 2005 1:42 pm    Post subject: Re: Lettura di file remoto Reply with quote



potresti memorizzarti il numero di byte a cui sei arrivato, e la volta
successiva scarti i byte gia letti...

Back to top
Diego
Guest





PostPosted: Mon Sep 26, 2005 2:50 pm    Post subject: Re: Lettura di file remoto Reply with quote



Il 26 Set 2005, 15:42, [email]stefanomnn (AT) yahoo (DOT) it[/email] ha scritto:
Quote:
potresti memorizzarti il numero di byte a cui sei arrivato, e la volta
successiva scarti i byte gia letti...


Non posso permettermi di scartare i byte già letti visto che il file che
devo scaricare è di grande dimensaioni. Sarebbe solo un enorme spreco di
tempo.


--------------------------------
Inviato via http://arianna.libero.it/usenet/

Back to top
Diego
Guest





PostPosted: Tue Sep 27, 2005 11:14 am    Post subject: Re: Lettura di file remoto Reply with quote

Ti ringrazio moltissimo...sono riuscito a farlo funzionare.
Comunque, forse dipende da quello che sto usando, non funziona con
"Content-Range" ma con "Range"... di "Content-Range" se ne frega
completamente.


Ciao e grazie.

--------------------------------
Inviato via http://arianna.libero.it/usenet/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.